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:
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.Code:$showFixedQuantity = (($show_products_quantity_max == 1 /*or zen_get_products_qty_box_status($products[$i]['id']) == 0*/) ? true : false);
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).


Reply With Quote
