Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Adjust Quantity in the Shopping Cart

    Currently in my cart I do not show the quantity box on the product listing or in the product info pages simply due to the nature of our products. In the shopping cart, the quantity does show, but there is no box to update the quantity. This means if a customer adds the item to the cart twice, they have to delete it and then re-add it. I know there is a better way, but I cant seem to find the correct switch in the admin.

    Any thoughts?

    zencart 1.3 (i know, i know . . . i need to upgrade, but with 1.4 right around the corner . . . . )

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adjust Quantity in the Shopping Cart

    If you are only allowed 1 and are hidding the quantity box ... set the maximum to 1 and that is all that can be added to the cart ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Adjust Quantity in the Shopping Cart

    That doesn't really solve the problem either. What I am selling our typically high dollar items ($500 - $3000). Its unusual for someone to buy more than one item, but it does happen (someone bought 3 pendants today for Christmas gifts).

    My point is, why turn off the ability to adjust the number of items in the cart, regardless of whether they have to add them one at a time? Why force them to have to delete all of the items and start over?

    Thanks


    Quote Originally Posted by Ajeh View Post
    If you are only allowed 1 and are hidding the quantity box ... set the maximum to 1 and that is all that can be added to the cart ...

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adjust Quantity in the Shopping Cart

    If you don't want the Quantity box hidden ... why are you setting it up to hide it?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Adjust Quantity in the Shopping Cart

    IMHO, there are times where it makes sense to hide the quantity box on the product info page. But I cant think of any scenario where preventing the customer from changing the quantity in the shopping cart is a good idea. But maybe Im wrong . . . .

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adjust Quantity in the Shopping Cart

    The main reason for that is if you hide it on product info for a product you do not want it anywhere as you have set the quantity to order to 1 ...

    What it sounds like you are trying to accomplish is not show it anywhere except the shopping_cart and that there isn't a limit to start with on how many a customer can order to start with ... is that correct?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adjust Quantity in the Shopping Cart

    On the tpl_shopping_cart_default.php the part that controls the display based on the settings on the Product for hidding the quantity box or hidding the quantity box because the maximum is set to 1 is managed in this IF statement:

    PHP 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'];
      }
    ?>
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 Adjust minimum quantity in shopping cart
    By linuxguy2 in forum General Questions
    Replies: 4
    Last Post: 19 Jan 2014, 09:26 AM
  2. v150 Where do I adjust [help (?)] that is shown in the shopping cart
    By schobook in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jul 2012, 07:36 PM
  3. 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
  4. Show quantity in cart only when the product is already in shopping cart
    By e81ny in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 8 Sep 2007, 03:34 PM
  5. adjust quantity for max qty order in shopping cart
    By peeceelee in forum Bug Reports
    Replies: 3
    Last Post: 22 Aug 2006, 10:03 PM

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