Zen Cart Logo
Forums / Bug Reports / Display Product Add to Cart Button=1 Bug

Display Product Add to Cart Button=1 Bug

Locked

Views: 1,624

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 May 2007, 11:51 PM
#1
biendavid avatar

biendavid

New Zenner

Join Date:
Jan 2005
Posts:
5
Plugin Contributions:
0

Display Product Add to Cart Button=1 Bug

I had an issue where adding items to my shopping cart did not work when using Display Product Add to Cart Button=1. I had to change includes\classes\shopping_cart.php to the following and it worked.

L1708: $productIds = $_POST['products_id'];
L1709: while ( list( $key, $val ) = each($productIds) ) {

I'm testing this on Zen-Cart 1.3.7 on PHP 5.

Bien
Magic Sing - Magazines - Baby Einstein

13 May 2007, 12:43 PM
#2
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,878
Plugin Contributions:
3

Re: Display Product Add to Cart Button=1 Bug

I have been unable to reproduce any problem.

Can you give some more information on the error returned.

Can you post some details of the server (php/mysql versions etc)

Can you try this. Revert your code to what it used to be and change by adding

reset($_POST)

before the line

while ( list( $key, $val ) = each($productIds) ) {

to see if that fixes as well.

13 May 2007, 1:09 PM
#3
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,878
Plugin Contributions:
3

Re: Display Product Add to Cart Button=1 Bug

oops.

that should have been

reset($_POST['products_id'])

before the line

while ( list( $key, $val ) = each($_POST['products_id']) ) {

apologies