Welcome to WebmasterWorld Guest from 54.145.173.36

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

OK in chrome and firefox, error in IE

your cart is empty error

   
2:55 pm on Sep 8, 2010 (gmt 0)



I have recently written (or should I say written for me)a very simple shopping cart.It's a very basic shopping cart written in javascript and PHP. We are only selling various amounts of one item with differing postal costs. It works just fine in Chrome and Firefox but comes up with an error message in Internet explorer, i.e. 'your cart is empty' when going to pay via Paypal.

Anyone experienced this error before or have any idea what the problem may be?

Thanks for your response.
4:39 pm on Sep 8, 2010 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Well, you are way into specifics here. Basically - sounds like a javascript problem with the browser not remembering the shopping cart values. Run with the script error console on in your browser and look for problems.
10:22 pm on Sep 8, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



I just had to post and say "of course" to your title. You would need to get way more specific to get any real help. Can you post the script?
3:00 pm on Sep 9, 2010 (gmt 0)

5+ Year Member



Also it is worth mentioning that is is very unlikely to be a problem caused by PHP as this is a server side language and runs independently of the browser, so as Brett says check your Javascript. Also, while we are on the subject of Javascript - you say the cart is "written in javascript and PHP" - remember that Javascript can be disabled in the browser so you need to ensure that the cart gracefully degrades if Javascript gets disabled.
6:55 pm on Sep 9, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Mods please splice these threads [webmasterworld.com]