Suljettu

Php bug in auction script. The code is located in 2 files, one works and other doesn't work

Hello,

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.

Taidot: PHP

Näytä lisää: wrong invoice, works people, i.t. works, invoice seller, i don t know, bug types, work auction scripts, custome auction script, dutch auction script, coding auction, php auction, perfectly me, invoice works, up works, t , t-, t, php invoice, one fee, missing people, invoice example, in process access, c# bug, c bug, be bad t

Tietoa työnantajasta:
( 20 arvostelua ) GeorgeTown, Cayman Islands

Projektin tunnus: #437833