[SOLVED] Gallery cart creates two orders - one if ordered from thumbnail view, another if ordered from single photo view.

battledingo
battledingo's picture

Joined: 2006-08-25
Posts: 39
Posted: Fri, 2006-08-25 14:46

hi

I have a problem with gallery cart V 0.43 running on Gallery V 1.5.

The problem is that the cart will have two separate orders when people order from the thumbnails & the large single photo view.

I tried remove the "add to cart" buttons from the thumbnail section of the album, however it became complicated as the "view cart" remembers the photos ordered from the thumbnail view & not from the single photo view.

I tried to paste the "add to cart" button from the large single photo view to the thumbnail view but I didn't quite cut it. The album's admin drop down menu (delete photo, make highlight photo etc) now doesn't work. Also the first photo on every album page can't be ordered as it is still linked to the thumbnail checkout.

I have spent nine hours on this & can't find the problem in the forum. I have also upgraded the shopping cart, however the problem remains. (maybe the answer is in the cart_config.php or the html_wrap folder because they remain the same after the upgrade)

Help me obi wan kenobi, your my only hope...

thanks in advance,

battledingo

 
battledingo
battledingo's picture

Joined: 2006-08-25
Posts: 39
Posted: Sun, 2006-08-27 13:56

Nogodess has solved my problem (she is wonderful):

It's a session issue.

[long explanation-feel free to skip to the end]

If, in admin, you turned on the per-session debug, you'd notice that the debug info printed on the bottom of the page on all pages, except when you added a large photo to the cart-there the info vanishes.

It is there on the large photo page, and if you click your 'view cart' button, you'll see it on the cart page too (and you get what you think of as the 'thumb' cart).

So, the culprit is sessions, and the clue is when you add a large photo to the cart.

If you compare that form button on the large page to the 'view cart' button, you'll notice one big difference:

add to cart action: "http://www.yourdomain.com/
view cart uri: "http://www.yourdomain.com/

and when I looked at the address bar I noticed the difference in the uri as well (that probably would have been easier :)
[end long explanation]

You need to check your gallery config file and your gallery cart config file and ensure either they all use the 'www' or none do. That www (or lack thereof) makes 2 different sessions.

-Ng_