Share via E-Mail
Share on Google Buzz
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Your cart is empty



threesixty3d
member
Posts: 15


Hello EJ support team, is it normal that the EJ cart works only with a website that is online?

I've tested the cart buttons with a Xampp server that I use for development and that is configured to match the settings of the hosting server).
When testing in the lan, the View Cart button always says "Your cart is empty". But it works when I put the website online.
Tests have been made accessing the page from localhost and from another computer in the lan, using various browsers (ie, firefox), of course with an empty cache.

No idea, maybe there's a reason for that, like a design or safety choice you made perhaps? ... Is it a feature, a bug, or my fault?
Thank you,
-m


#
POSTED ON: January 12, 2010 @ 04:34 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3486


Yes, our cart will only work in a regular browser on a live site with an actual domain name in the URL. It will not work in the "preview" mode of any Web-design software, nor on a local copy of a page that isn't on a server, nor on a site accessed by a URL using a numeric IP only. This is because the cart needs to set a cookie in the buyer's browser in order to track their cart contents, and cookies can only be set for a specific domain name.


#
POSTED ON: January 12, 2010 @ 16:05 GMT -7
MODIFIED ON: January 12, 2010 @ 16:06 GMT -7




threesixty3d
member
Posts: 15


Good to know, thank you!


#
POSTED ON: January 12, 2010 @ 23:57 GMT -7




threesixty3d
member
Posts: 15


Wait a minute ... the cart works when I drag the php file in firefox, without executing it from the server.
Which means that it DOES WORK in the "preview" mode of web-design software etc.
It just doesnt work in the LAN or if I access on localhost via http.

Repro: take two "Add to Cart" and "View Cart" button codes from your test product, paste both in notepad, save it as html.
You'll notice that they will work if you open the html from file://, but not from http:// (at least it happens here on various computers and browsers, all with empty cache).


#
POSTED ON: January 13, 2010 @ 11:27 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 3486


By "preview mode", I meant to refer to a mode of the Web design software itself, where you can use that app to see (sometimes roughly) how the page would look without loading it in an actual browser like Firefox. Your design software may not even have that mode available, but the ones that do are all over the map in terms of how faithfully their preview mode works like any actual browser, so it's really not ideal for testing/troubleshooting.

The cart may appear to "work" fine from a local copy, as long as you have an active Internet connection, you'll probably find that the cart can only hold one item at a time immediately after it's added, but that item will be gone when you View Cart or add another item to the cart.

At any rate, the conditions I described (live page, real browser, live Internet connection) are those in which the cart has been developed and tested to work. We can't vouch that our cart would work properly or even at all outside of those conditions, so we don't recommend testing your cart or troubleshooting any issues unless you're doing so within the expected environment. :^)


#
POSTED ON: January 13, 2010 @ 20:32 GMT -7




enzo
member
Posts: 2


Hello, my view cart is allays empty on a live website. Can you please check: http://75.125.133.82/~thesolar/index.php/store/

was testing on two computers, cleaning cache etc.


#
POSTED ON: August 12, 2011 @ 14:07 GMT -7




E-JunkieMonster
E-Junkie Crew
Posts: 431


Hi Enzo,

Our cart needs to be used on a live website with a named domain. Your URL has 75.125.133.82 in place of a domain name, so our cart won't be able to retain anything that is added to it when used from that site.


#
POSTED ON: August 12, 2011 @ 17:41 GMT -7




enzo
member
Posts: 2


That makes sense. I will wait that my domain becomes active. Thank you.


#
POSTED ON: August 13, 2011 @ 01:45 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam