Results 1 to 4 of 4

Hybrid View

  1. #1
    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...

  2. #2
    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