Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1

    Default Update cart Quantity

    I stumbled on a curious problem. I can't get the item quantities to update in the cart. i tried uploading a fresh copy of tpl_shopping_cart_default.php but it didn't seem to help. Switching to classic has the same problem. I haven't monkeyed around too much in there, where might the culprit be hiding?

    Thanks for the guidance,

    jessica

    www.dogwerksonline.com Try adding "A Classic White" from the strands section which has 100 units in stock and then updating the quantitiy on the shopping cart page.

  2. #2
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Update cart Quantity

    Did you try logging into the Admin and going to:
    Configuration > Product Info >Product Quantity Box Status and making sure it is "on"?
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3

    Default Re: Update cart Quantity

    If you mean this line:

    Product Quantity Box Status - Adding New Products

    Its already set to 1 (on)

  4. #4
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Update cart Quantity

    Yes. Have you also looked at the way each product is setup (from within the Admin)?

    I have a demo cart running, and the one product that does not allow me to "add to the quantity" from the shopping cart page is setup as such (to get to this section you will need to go to the actual product in question and edit it. From the edit screen, scroll down and you will find the section that looks like the following:

    --------------------------
    Product Priced by Attributes: Yes No
    Tax Class:
    Products Price (Net):
    Products Price (Gross):
    Product is Virtual: Yes, Skip Shipping Address No, Shipping Address Required
    Always Free Shipping: Yes, Always Free Shipping No, Normal Shipping Rules
    Special, Product/Download Combo Requires a Shipping Address
    Products Quantity Box Shows: Yes, Show Quantity Box No, Do not show Quantity Box
    Warning: Does not show Quantity Box, Default to Qty 1
    ---------------------------

    Make sure you have selected "Yes" (see above red highlight) for "Product Quantity Box Shows.

    If that is set to "no", then the default qty will be set to 1 and the product will not be able to be updated (quantity wise) by the customer when checking out.

    Be sure to check your "buy now" option as well. I suspect that you have it set to default to 1 as the qty (which as stated above would be one cause of the issue you are experiencing).
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  5. #5

    Default Re: Update cart Quantity

    Ewwww! Yucko, I can't allow people to update their cart quantity without ALSO showing that quantity box on my category page OR turning off the prices or somehow disabling the update quantity button on the cart page (its silly to have an update cart button with instructions and not be able to use it)

    That's kind of a bummer. I'm getting way too good at chopping up code :)

    Thanks for the direction!

  6. #6
    Join Date
    Jun 2006
    Posts
    82
    Plugin Contributions
    0

    Default Re: Update cart Quantity

    Is there a way to do this universally? I have around 2000 products. Do you mean I have to manually correct each one? help!


  7. #7
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Update cart Quantity

    Just found what I think is a solution to this problem. I wanted to allow customers to edit the quantity box in their shopping cart, disregarding the fact that I only allow them to add one at a time from the product info page and product listing pages.

    The solution was found by commenting out some lines in templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

    At around line 67 you will find the following:
    Code:
    <?php
      if ($product['flagShowFixedQuantity']) {
        echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
      } else {
        echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
      }
    ?>
    Delete or comment out the if statement and what would be processed if the statement was true. We want to leave the code after the else statement. This will ensure that the quantity field will always be update-able in the shopping cart page. I just commented the said lines out so that reversal is easy:

    Code:
    <?php
    //  if ($product['flagShowFixedQuantity']) {
    //    echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
    //  } else {
        echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
    //  }
    ?>
    Last edited by johnswan; 25 Oct 2007 at 08:24 AM. Reason: typos

  8. #8
    Join Date
    Mar 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: Update cart Quantity

    Thank you! I just came across this same problem of products with 'Show Products Quantity Box' set to OFF not allowing the Qty box to be editable in the shopping cart.

    This custom code did the trick. It works great with the product Attribute Grid mod now, since that mod uses it's own quantity boxes.

    Quote Originally Posted by johnswan View Post
    The solution was found by commenting out some lines in templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

    At around line 67 you will find the following:
    Code:
    <?php
      if ($product['flagShowFixedQuantity']) {
        echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
      } else {
        echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
      }
    ?>
    Delete or comment out the if statement and what would be processed if the statement was true. We want to leave the code after the else statement. This will ensure that the quantity field will always be update-able in the shopping cart page. I just commented the said lines out so that reversal is easy:

    Code:
    <?php
    //  if ($product['flagShowFixedQuantity']) {
    //    echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
    //  } else {
        echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
    //  }
    ?>

  9. #9
    Join Date
    May 2008
    Posts
    30
    Plugin Contributions
    0

    Default Update cart Quantity I'm not the only one

    hi,
    I'm stumbling on the same problem as here

    Simply Customers watching the shopping cart cannot update the product quantity.

    I tried to search a bit in the code and I didn't find any codeflow who check for the action=update_products.

    I've found that main_chart_actions.php in include/ isn't executed (it contains code that would update the cart)

    any idea ?

    thanks

    Alessandro
    Last edited by Kim; 16 Jan 2009 at 05:42 PM.

  10. #10
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    application error Re: Update cart Quantity

    I have a question in regards to the Update button.

    Currently I have an update button beside each item in the cart, and also an update button below the list of items.

    Can that button be removed ?

    My site is on my locals host so I have not links to offer, but I'm using the cherry_zen template.


    Thanks..
    Mike

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Update Button of Shopping Cart Reduces Quantity in Cart
    By mc12345678 in forum Bug Reports
    Replies: 2
    Last Post: 29 Jul 2016, 12:26 PM
  2. shopping cart - hide the Cart Quantity Update button when not needed
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Oct 2009, 04:28 AM
  3. Quantity update empties cart
    By daisytwist in forum General Questions
    Replies: 2
    Last Post: 10 Apr 2009, 12:37 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