FAQ Home
Show all FAQs
My shopping cart always says that it is empty when I try to put an item in it.
Below is an exhaustive list of reasons that could ever cause the cart to give an "Empty" message. The most likely listed first.
1. Be sure your "temp" directory and your "shopperid.dat" file are both writable (chmod 666 or 777 on Unix). These files are the cart's memory. If it can't write to these files, then it will have "amnesia". Go here:
http://www.YourName.com/cgi-bin/cart.pl?write_test
(Replace "YourName.com" with your domain name.)
2. If PV#23 is set too low. Keep it at least set to "1". No lower than that.
3. If your shopper has cookies disabled in their browser.
4. If PV#39 is set to 0 (IP addresses) and your shopper is connected to the net with a proxy server that changes their IP address while they are still connected to the net. It's recommended to have PV#39 set to 1.
5. If you use a mix of URLs in your FORM tags and Host Variable #1 like so:
http://www.YourName.com/cgi-bin/cart.pl
http://YourName.com/cgi-bin/cart.pl
Notice that one URL has "www." and the other doesn't. You need to decide on a URL and use the same URL throughout your site in all your FORM tags. That URL needs to match the URL set in Host Variable #1.
6. After you place an order. The "Secure Online Credit Card Transaction" and "COD" payment options cause the cart to delete your basket contents after and order is completed. This is standard. See Personal Variable #23 in the ReadMe for details on this.
http://www.dansie.net/cart_readme.html
7. Also, check your product forms that you are using. The submit button tag needs to contain: NAME="add" like so:
<INPUT TYPE=SUBMIT NAME="add" VALUE="Put in Shopping cart">
If you are using a custom image as a submit button then make sure you have these two tags in your forms:
<INPUT TYPE=HIDDEN NAME="add" VALUE="1">
<INPUT TYPE=IMAGE SRC="http://www.YourSite.com/add.gif" NAME="Order">
8. You have exceeded disc space on your website.
9. Your browsers cache settings are set to use cached copies too often rather than request a fresh copy from the server.
10. Disable the Add and Redirect feature of PV#49. I have seen that cause problems with some browsers.
11. Your server could be misconfigured where the environment variable REQUEST_METHOD always yields "get" even when the request method was "post".
12. If you have modified the cart.pl script.
Dansie FAQ Wizard 2.0 http://www.dansie.net