Welcome to WebmasterWorld Guest from

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)

New User

5+ Year Member

joined:Sept 8, 2010
votes: 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 Sept 8, 2010 (gmt 0)

Administrator from US 

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

joined:Sept 21, 1999
votes: 12

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 Sept 8, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0

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 Sept 9, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Dec 5, 2008
posts: 94
votes: 0

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 Sept 9, 2010 (gmt 0)

Senior Member

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

joined:Nov 28, 2004
votes: 0

Mods please splice these threads [webmasterworld.com]