Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Update cart only on shopping cart page

    Hi
    Hope someone can en-light me on this one:

    ON v151 I had the qty box in the product info page.
    On this new version, I want to remove it, and so I did like this:

    I guess this one should be set to 1 ( configuration->productInfo)

    Product Quantity Box Status - Adding New Products = 1

    And in the layout product type:

    Show Quantity in Shopping Cart = 0

    Then I updated all products

    UPDATE `products` SET `products_qty_box_status`=0 WHERE `products_qty_box_status`=1

    Ok, So in product info page (actually I'm using the bookx product type, but the option is the same ), the quantity boxes are off.
    Cool !

    But on the shopping cart page , I think, or I wanted that a customer could update the qty....just there.
    There's a column for the update, but only with a input hidden field....

    Is this possible ? Or to have this quantity update on main_page shopping cart, I also must have the boxes in the product info page ?

    Thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  2. #2
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Update cart only on shopping cart page

    well, just remember that probably the simple way, is just to hide it with css....
    Not sure if there's a "formal" way to do it, but in the mean time, I've done so.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Update cart only on shopping cart page

    You can also modify the data that forces the shopping cart to display without the ability to modify the cart quantity.

    Either in: includes/modules/pages/shopping_cart/header_php.php you can modify this line:
    Code:
    $showFixedQuantity = (($show_products_quantity_max == 1 or zen_get_products_qty_box_status($products[$i]['id']) == 0) ? true : false);
    To something like:

    Code:
    $showFixedQuantity = (($show_products_quantity_max == 1 /*or zen_get_products_qty_box_status($products[$i]['id']) == 0*/) ? true : false);
    Or you can use the closing/end notifier to modify the associated variable ($productsArray and either or both of its two array values) to be set by the associated logic.

    Alternatively, you could modify includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php to always display the desired edit field for updating. I would suggest that either of the first two options be considered and then in the effort to minimize core file edits, might suggest developing the observer to listen to the end of header notifier and work on the value(s) as seen fit for your condition(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Update cart only on shopping cart page

    Thanks for the reply !
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

 

 

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. Changing update cart and delete button in shopping cart to text.
    By k1ra in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2014, 10:52 PM
  3. update button on shopping cart page has been disabled
    By mzimmers in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 15 Mar 2010, 01:28 AM
  4. 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
  5. Update button not working in Shopping Cart page
    By dealbyethan.com in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2007, 06:05 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