Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Shopping Cart: Update Qty Button Issue

    Been looking and testing... can't find a solution:

    What do I need to do so that the Update Qty Button does not show in the shopping cart next to products that have a Min/Max of 1? In other words, they don't have a qty box to edit so there's no reason for the update button there... however, I do want to have it appear next to products that do not have a max limit of 1 and therefore have the qty box available.

    Hope that makes sense!

    Thanks in advance for your help.

    Cheers,

    Becky

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

    Default Re: Shopping Cart: Update Qty Button Issue

    In the Stock settings ... this would change the location for all products ...
    Show Shopping Cart - Update Cart Button Location
    Show on Shopping Cart Update Cart Button Location as:

    1= Next to each Qty Box
    2= Below all Products
    3= Both Next to each Qty Box and Below all Products
    that also is used to work with the delete button as well ...

    If you don't want to see it on products with max 1 only you would have to customize the code ...

    Perhaps setting the update button to below the list of products would work for you?
    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!]
    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
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: Shopping Cart: Update Qty Button Issue

    Quote Originally Posted by Ajeh View Post
    In the Stock settings ... this would change the location for all products ...


    that also is used to work with the delete button as well ...

    If you don't want to see it on products with max 1 only you would have to customize the code ...

    Perhaps setting the update button to below the list of products would work for you?
    Hi Linda,

    Yeah, customize the code... the magic words! "-) Actually I have played at that this afternoon but couldn't get it to do what I wanted.

    I read through the process that creates $display_button (I think that is what the shopping_cart page echoes) and tried a myriad of conditional statements in tpl_shopping_cart_default. Could totally get rid of it, or get rid of it on the item with the qty box but leave it on the no-qty box items. ?? hehe. I tried using the $product['flagShowFixedQuantity'] and $product['showFixedQuantityAmount'] and even $product['quantityField'], all in various tests... nada. I even flat out said "if product id is X" and that didn't work the way I expected.

    This is truly confusing me.. in the last 3 days I've hammered out some major mods that I thought were over my head and now I can't get something this simple to work. Could it be the 16 pots of coffee I had today?

    Can you give me some direction on what I should be doing here?

    Thanks a lot Linda!

    Becky

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

    Default Re: Shopping Cart: Update Qty Button Issue

    You could alter the $buttonUpdate to be '' when $show_products_quantity_max = 1 ...
    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!]
    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
    Jan 2005
    Location
    Minneapolis MN, USA
    Posts
    136
    Plugin Contributions
    1

    Default Re: Shopping Cart: Update Qty Button Issue

    Quote Originally Posted by Ajeh View Post
    You could alter the $buttonUpdate to be '' when $show_products_quantity_max = 1 ...
    Morning Ajeh!

    Thanks for the suggestion!

    Ultimately I got it to work, but I couldn't use what you suggested... probably because I'm doing it wrong. "-)

    Here's what works -- at least in testing:

    In tpl_shopping_cart_default this is the original...
    Code:
      if ($product['buttonUpdate'] == '') {
        echo '' ;
      } else {
        echo $product['buttonUpdate'];
      }
    I changed it to...
    Code:
      if ($product['flagShowFixedQuantity'])
    That worked. Shows properly across different "test clients" and products, updates the field, hasn't deleted any other products, etc.

    I thought I tried that last night and didn't get the correct results. It's possible that my system was getting clunky... I've had a lot of problems running this new version of ZC with Xampp using Opera 9xx on this computer; runs much better on a clunky old notebook so I know it's not ZC but something about this system. Anyway I'll stop rambling and make coffee!!

    If you know of any reason that won't work in "real life", please let me know.

    Thanks again for your help, Linda!

    Cheers,

    Becky

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

    Default Re: Shopping Cart: Update Qty Button Issue

    I was higher up in the code in the /pages/shopping_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!]
    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 "Update Qty" button not working in shopping cart
    By inlayout in forum General Questions
    Replies: 4
    Last Post: 8 Jan 2013, 02:03 PM
  2. "Update Qty" button not working on my shopping-cart page
    By KismetDesign in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2009, 04:02 AM
  3. Shopping Cart - update prod Qty box?
    By stride-r in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 May 2009, 09:30 PM
  4. Can't update QTY in shopping cart
    By dwdusharme in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 9 Jan 2009, 12:49 AM
  5. Shopping Cart Qty Box doesn't update
    By littlegdesigns2004 in forum General Questions
    Replies: 0
    Last Post: 7 Nov 2007, 12:01 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