Zen Cart Logo
Forums / Upgrading to 1.5.x / Multiple Product Add to Cart not working

Multiple Product Add to Cart not working

Views: 1,826

Results 1 to 7 of 7
23 Apr 2014, 7:36 PM
#1
estherd avatar

estherd

New Zenner

Join Date:
Apr 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Multiple Product Add to Cart not working

I am working on a copy of a clients site as we have upgraded from 1.3.8a to 1.5.1 . Everything seems to have gone well except that the add to cart button is not adding to the cart.

We have a multiple products layout but when you try to add any number of products to the cart, the add to cart button just redirects you to the same page.

If you need to see what's going on here is an example page: http://www.cardblanks.com/canzencart/index.php?main_page=index&cPath=1_2_345

I cannot see anything wrong with the Add to Cart form information or the Quantity inputs and the server log is not showing any errors at all for this site. But any guess or possible avenues I should try and pursue are very welcome.

Thanks in advance :smile:

23 Apr 2014, 8:39 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Multiple Product Add to Cart not working

estherd:

I am working on a copy of a clients site as we have upgraded from 1.3.8a to 1.5.1 . Everything seems to have gone well except that the add to cart button is not adding to the cart.

We have a multiple products layout but when you try to add any number of products to the cart, the add to cart button just redirects you to the same page.

If you need to see what's going on here is an example page: http://www.cardblanks.com/canzencart/index.php?main_page=index&cPath=1_2_345

I cannot see anything wrong with the Add to Cart form information or the Quantity inputs and the server log is not showing any errors at all for this site. But any guess or possible avenues I should try and pursue are very welcome.

Thanks in advance :smile:

Considering that this was an upgrade, typical information that should also be provided is how the upgrade was performed. (Fresh install with features added in, or were files merged to do the upgrade?)

Don't know what you would consider easiest, but comparing the files of a fresh install to your upgraded files would more than likely reveal the issue. And not just the core to the core, but also the core/default to the templated overrides.

Otherwise it is possible that the code called when the add item(s) to cart may not match the upgrade version, or the code that generates the selection boxes may not havebeen updated/loaded fully. The other typical change from the older versions of ZC to the newer is that now the POST command is often used as compared to the previous GET command and therefore with this mix the values do not get updated on the next load.

Hope that helps a little. I apologize for not providing a specific fiilename as I am working frommemory at the moment.

30 Apr 2014, 2:10 AM
#3
estherd avatar

estherd

New Zenner

Join Date:
Apr 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Re: Multiple Product Add to Cart not working

Hi, Sorry for my delay in responding to you. My thread reply editor wasn't working and it took a little bit for me to figure out how to get it going again.
I upgraded the site by uploading the new version files over the old and then running the database upgrade.
I did think there was a change in some files between versions to make this happen but I have no idea where to start from. What folder/file would I need to look in? I have looked for everything i can think of but haven't found the problem yet some input and/guidance would be helpful.
Thanks!

30 Apr 2014, 3:55 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Multiple Product Add to Cart not working

estherd:

I upgraded the site by uploading the new version files over the old and then running the database upgrade.This was your first mistake and not recommended by any person, FAQ, WIKI, or tutorial on this site.:(
You will need to do the upgrade correctly to begin with. You can look at https://www.zen-cart.com/content.php?148-how-do-i-upgrade-my-zen-cart-site or http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading but the latter is probably the best.

30 Apr 2014, 5:35 PM
#5
estherd avatar

estherd

New Zenner

Join Date:
Apr 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Re: Multiple Product Add to Cart not working

dbltoe:

This was your first mistake and not recommended by any person, FAQ, WIKI, or tutorial on this site.:( You will need to do the upgrade correctly to begin with. You can look at https://www.zen-cart.com/content.php?148-how-do-i-upgrade-my-zen-cart-site or http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading but the latter is probably the best.

The second link says to "Replace all the Zen Cart php files/folders/images/everything in your live store with the new files" how do I do that without uploading it over the old files?

1 May 2014, 4:25 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Multiple Product Add to Cart not working

estherd:

The second link says to "Replace all the Zen Cart php files/folders/images/everything in your live store with the new files" how do I do that without uploading it over the old files?

In step c3 of Keep My Store Live it says to do that AFTER creating and finalizing the new/upgraded version in another directory. It also has other steps and ideas.

For now, do step c9:P and read the entire thread. Make notes of what you perceive it to say. Reread and decide which way to go.

1 May 2014, 8:56 PM
#7
estherd avatar

estherd

New Zenner

Join Date:
Apr 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Re: Multiple Product Add to Cart not working

Deep breath taken :)

I am starting again from scratch. I have copied my website again into a brand new folder. This copied version of the site (linked to a different but duplicated database) is not working 100% correctly and I figure I must fix that before I move forward.
 
If (read when) I need further help, I will start a new thread with a relavent title.
 
Thank you for all your help so far.