eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 
Removing Decimals from Currency (and cookie-login) (Read 617 times)
Raymes
eAuction User
**
Offline

I love Perl

Posts: 5

Removing Decimals from Currency (and cookie-login)
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
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Removing Decimals from Currency (and cookie-lo
Reply #1 - 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.
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
thom2002
eAuction Novice
*
Offline

I love Perl

Posts: 2

Re: Removing Decimals from Currency (and cookie-lo
Reply #2 - 02/20/04 at 19:44:17
 
hi,

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

except for one little thing Smiley


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

Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only