Hi there!
I hope someone can help me, as I'm driving myself mad trying to figure out what's happening!
I'm a complete newbie at this but I'm trying to fix an inventory system that's malfunctioning. Basically, whenever someone
goes through with a purchase, instead of the amount of stock being taken off the 'instock' amount in the database, it's
updating the database to that amount - for example, starting with 10 items instock, if 3 are purchased, instead of updating
the inventory
by -3 (to 7), it's updating the inventory
to -3 (thus saying my instock amount is -3), and being totally new
to all this and editing someone elses script, I'm not sure what I need to change!
This appears to be the section of the checkout perl file that is supposed to be updating the inventory:
At least I hope this is the right code and that this post is in the correct area of the forum - it's a perl file so I'm
assuming the coding is as well! If it's in the wrong place, please feel free to move it. I also have another post regarding
displaying pound symbols on here, if more than one plea for help at once isn't allowed just let me know and I'll post at a
later date.
Anyways, any and all advice will be very gratefully recieved, I look forward to some help
