If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Suddenly having problems with add-to-cart adding more of previous product on me!

Suddenly having problems with add-to-cart adding more of previous product on me!

Locked

Started by gomlers on 2 Sep 2008, 6:52 PM · Views: 962

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Sep 2008, 6:52 PM
#1
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Post #1 by gomlers

Hello all, I don't know if this is a bug or not, but I thought this was the best place to post, so...

When I click a sub-category, I get a list of that sub-category's products.

Now, when I press "Buy Now" zencart put that product into the shoppingcart.

  • All good!

(My store is set up, so that it doesn't automatically go to the cart, it stays on the page where the "Buy Now" button is)

But the BUG(?) is when I try to add another product to the cart, the store just adds another one of the first product I added..

So if I...
first add productA,
then add productB
then add productC
... I end up having 3x productA in my cart. (And not product B or C at all)

What the heck??

  • I'm running 1.38a
  • It might have gone bad when I installed the "Recovery Cart" mod. At least I know it hasn't always been like this..
  • I have a handfull of other mods installed, but none of them should affect my shop in this kind of way..

Does anyone have any clue what has happend? Please...!??

2 Sep 2008, 7:24 PM
#2
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Post #2 by gomlers

Addon to post:

If you would like to see the problem, you could of course visit my site :blush:

http://www.tilbryllupet.no/bryllup-bord-pynt-pynt-bryllupsbordet-2-c-1_13.html

  • As soon as you press "Buy Now", you will see that all the other products in the listing adopts the ID of the product that you added to the cart.

  • AND the category title gets replaced with the product-title you just added..

2 Sep 2008, 7:40 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

One or more of your customizations has caused all the buy-now links to point to the same product number.
You'll need to research the changes made by your customizations and/or addons to find out what has broken things.
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

You might even try turning off various addons just in case they are what's causing it. But I suspect your problem is in something you (or an addon) have changed in the code. The SEO Url mods often cause odd problems.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Sep 2008, 7:52 PM
#4
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Post #4 by gomlers

Thanks DrByte, I'm debugging everything right now, and I'll come back to post the solution when I find it..

I found it.. It looks like the SEOurls is the error-source.. strange actually.. I never noticed the problem before now..