Shopping cart, wrong entry

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

Version: S-Mart 1.9.2

After adding an item to the cart and reviewing it (I am using an automated shop...) there are two entries, the one I added (second) and an empty one (0$) as the first one. After recalculating or adding a second item the wrong one disappears... Anyone has the same "problem" or a solution?

-- Hans-Juergen Thiess (hjthiess@christshop.com), November 30, 1997

Answers

Ok, got no answer but some mails which "said": "I have the same problem". However, there was no problem with 1.9.1. that's why I use the function which creates the cart-file from this (1.9.1)version now in 1.9.2. This works because I don't use the features the 1.9.2 version deals with in this function (in addition to the one in 1.9.1) in my installation. Nevertheless, the function should be fixed...

Hans-Juergen

-- Hans-Juergen Thiess (hjthiess@christshop.com), December 10, 1997.


I have version 1.9.2 and I am having the exact same problem. When a new person uses the script it has a weird empty entry in the cart. What do I do to fix this? Please help!

-- Kevin Drummond (drummond@connext.net), January 29, 1998.

I don't know if this is really how to fix it - but it seems to work for me. I can't guarantee that it is the right way to fix it but here's what I did...

In the "sub list_items {" - about twenty lines down from the begining of that sub I changed the "$i=1;" to "$i=2;"

Here is an example with an extra line above and below to help you place the right line: ___________________________ ORIGINAL:

print "Item NamePriceQuantity";

for ($i=1;$i<$SIZE;$i++) { $_=$LINES[$i];

___________________________ FIXED: print "Item NamePriceQuantity";

for ($i=2;$i<$SIZE;$i++) { $_=$LINES[$i];

-- Andrew Farrell (neovision@usa.net), February 08, 1998.


Moderation questions? read the FAQ