Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Plugin Contributions
    0

    Default add multi products

    1.39f when i add multi products to the shopping_cart ,it's can't work.

    i modify classes\shopping_cart.php.

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

    change to

    $array_p = array();
    $array_p=$_POST['products_id'];

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

    and ok...


    why????????

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: add multi products

    So you are saying that if you make the changes you suggest, then it works? Do you think you found a bug?

    How are you adding multiple products to the cart? Did you make any other changes?
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3
    Join Date
    Sep 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: add multi products

    Quote Originally Posted by BlindSide View Post
    So you are saying that if you make the changes you suggest, then it works? Do you think you found a bug?

    How are you adding multiple products to the cart? Did you make any other changes?
    correct, make than changes then it works

    but i wonder why ??

    i think that a bug ,because i used a bran-new v1.39f
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	1.jpg 
Views:	35 
Size:	27.6 KB 
ID:	8161   Click image for larger version. 

Name:	2.jpg 
Views:	46 
Size:	24.2 KB 
ID:	8162   Click image for larger version. 

Name:	3.jpg 
Views:	43 
Size:	33.3 KB 
ID:	8163  


  4. #4
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: add multi products

    Alright, I'm going to set up a clean install of 1.3.9f and see if I can make the same thing occur.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  5. #5
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: add multi products

    I'm sorry, lele, but I was not able to reproduce the error you are seeing. I installed a fresh copy of 1.3.9f and followed the same steps from your screenshots.

    Do you have any 3rd party custom addons installed? If you do, remove them and try again.

    Otherwise, you can try to install v1.3.9f again. Make sure you download a fresh copy and upload it to your server.

    [edit] I also don't think that your fix is doing anything...

    Code:
    $array_p = array();
    $array_p=$_POST['products_id'];
    
    while ( list($key, $val) = each($array_p) ) {
    All it does it move the existing values from $_POST['products_id'] to $array_p. You've definitely got something else going on.
    Last edited by BlindSide; 28 Sep 2010 at 05:36 PM.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  6. #6
    Join Date
    Sep 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: add multi products

    it's so strange .

    i set up a clean install of 1.3.9f from zen-cart.com,

    and the problem also exists..

    and i changed it to:
    PHP Code:
    $array_p=$_POST['products_id'];
       while ( list( 
    $key$val ) = each($_POST['products_id']) ) { 
    the problem resolved.....

    just add:
    PHP Code:
    $array_p=$_POST['products_id']; 
    i did not modify
    PHP Code:
    list( $key$val ) = each($_POST['products_id']) 
    it's so strange....

    JUST I HAVE THE problem?


    I USE AppServ .

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: add multi products

    Quote Originally Posted by lele View Post
    JUST I HAVE THE problem?
    Yes, just you.
    Quote Originally Posted by lele View Post
    I USE AppServ .
    I would recommend something more contemporary such as XAMP.
    .

    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.

  8. #8
    Join Date
    Sep 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: add multi products

    Quote Originally Posted by DrByte View Post
    Yes, just you.
    I would recommend something more contemporary such as XAMP.
    i'll try.

    Thank you.!

 

 

Similar Threads

  1. want ot remove 'add selected products to cart' on multi products page
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 9 Mar 2013, 07:24 AM
  2. multi add function? is it possible?
    By sungmo in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2011, 12:30 PM
  3. multi-store add-on question
    By oliverec in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 22 Mar 2011, 09:04 PM
  4. Multi-Product Add to Cart
    By phineas77 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Feb 2009, 09:55 PM
  5. Use add multi products form for products with attributes!
    By yellow1912 in forum General Questions
    Replies: 3
    Last Post: 5 Feb 2008, 02:16 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR