I have a customer auction script and it has a bug.
The script has got 3 types of selling ways:
- Traditional Auction: 1 item to sale.
- Dutch auction: +1 items to sale.
- Buy it now: 1 or more items to sale.
When the people win the dutch auction the fee is charged to the seller account properly. It is a percentage set on admin panel.
For example percentage of final value is 5%. If the seller sold 5 items in 100$ the total final value will be 500$, the fee is up to 25$. It is added to invoice table and all run perfectly.
When the people buy through buy it now method the fee is charged to the seller account properly. It is a percentage set on admin panel too. Same process as above (Dutch Auction)
When the people win an item through Traditional Auction (only 1 item) there is a bug. The fee is charged but with a wrong value, always 0.00$. There is something wrong in that code, seems to be a bad multiplication of quantity requested x0 instead of x1 or missing code. I don't know.
I located the code in both files (Buy it Now process and auctions (traditional and dutch work in the same file). But i don't understand it.
I have the files involved in all process but I haven't got access to server or ftp because they didn't give me owing to the fact that the bug is small.
Thank you very much.