The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> Removing Decimals from Currency (and cookie-login)
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1074673144

Message started by Raymes on 01/21/04 at 09:19:04

Title: Removing Decimals from Currency (and cookie-login)
Post by Raymes on 01/21/04 at 09:19:04

Good day, everyone.

I have had some serious difficulties with this.  I've successfully customised my script so that it no longer requires decimals(ie. cents) before accepting a bid, but i can't seem to do the same thing for posting of new items.  Basically, the reason why i need to do this is because I'm customising the auction site for use as an auction site for virtual items in exchange for game currency, which does have not cents. I know setting allow_cents=0 will fix it, but i want to make it so that people can just put 100 in the post items page without doing 100.00.

Furthermore, I am hoping for some assistance with implementing a cookie login-script for eAuctions.  

Last, but not least, I'd like to thank Dieter for cleaning up and improving the everyauction script.. and the result is just AWESOME.. Thanks alot, Dieter, without you, i'd have had a much more terrible time setting it up.

Raymes
Fyi, the site name is ppauctions.alucinari.com

Title: Re: Removing Decimals from Currency (and cookie-lo
Post by Forum Admin on 01/21/04 at 11:18:22

Removing decimals
is possible but it's hard to do.
There are a lot of instances where the .00 is used by the code.

See:
sub proc_bid
sub check_item_data
sub parsebid
sub form_currency

Login script
eAuction v. 1.6.2 will have a 'SessionLogin'
using cookies is not a good idea because some users don't like cookies and switch them off.

Title: Re: Removing Decimals from Currency (and cookie-lo
Post by thom2002 on 02/20/04 at 19:44:17

hi,

I just setup the script and got it working...

except for one little thing :)


I cannot set the bid increment to use decimals.

I can set $1 or $2 or $3 etc.

But I cannot set it to increment for example $0.25 or $1.50.

Should I be able to do this?


Thom


Title: Re: Removing Decimals from Currency (and cookie-lo
Post by koi_carp on 02/20/04 at 21:21:04

Hi
In eConfig161 these are my setting


# Config-Section-04
# The Config-Variables of: form_currency
#-#############################################
  $config{'currency'}            = 0;      # 0 = USA | 1 = Others
  $config{'cur_symbol'}      = '£';      # Your Currency-Symbol
  $config{'allow_cent'}            = 1;      # 0 = No |  1 = Yes

Hope this helps
koi_carp
www.hotbids.co.uk the new FREE auction site

Title: Re: Removing Decimals from Currency (and cookie-lo
Post by thom2002 on 02/20/04 at 21:53:25


koi_carp wrote:
Hi
In eConfig161 these are my setting


# Config-Section-04
# The Config-Variables of: form_currency
#-#############################################
  $config{'currency'}            = 0;      # 0 = USA | 1 = Others
  $config{'cur_symbol'}      = '£';      # Your Currency-Symbol
  $config{'allow_cent'}            = 1;      # 0 = No |  1 = Yes

Hope this helps
koi_carp
www.hotbids.co.uk the new FREE auction site




Yes, That was it :D

Thank you.

best wishes

Thom

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.