Results 1 to 3 of 3

Hybrid View

  1. #1

    Default 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

  2. #2
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,927
    Plugin Contributions
    4

    Default 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.

  3. #3
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,927
    Plugin Contributions
    4

    Default 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

 

 

Similar Threads

  1. Display Product Add to Cart Button without option 2
    By icemanchai in forum Customization from the Admin
    Replies: 1
    Last Post: 29 Nov 2010, 12:00 PM
  2. Display Product Add to Cart Button Not Working
    By embreak in forum Basic Configuration
    Replies: 8
    Last Post: 25 Jan 2008, 07:36 PM
  3. Display Product Add to Cart Button
    By marcink in forum General Questions
    Replies: 1
    Last Post: 2 Dec 2007, 07:50 PM
  4. Replies: 4
    Last Post: 15 Oct 2007, 06:51 PM
  5. Replies: 3
    Last Post: 14 Sep 2006, 07:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg