Great, Brilliant, Fantastic!!
All working as it should now. Went through the install again, don't know what I did different but it all sprung into life.
Thanks again for your help.:D
Printable View
Great, Brilliant, Fantastic!!
All working as it should now. Went through the install again, don't know what I did different but it all sprung into life.
Thanks again for your help.:D
How about using an extra_definitions file versus the two file additions. Might aid in upgrades/revisions.
Make a file for YOUR_ADMIN/includes/languages/english/extra_definitions/quick_quantity_update.php with the following:Works a charm with 1.5.5e and thru PHP 7Code:<?php/*
$Id: quick_quantity_update.php, v 1.2 2016/09/18 $
By swguy > 09.18.2016
Powered by Zen-Cart (www.zen-cart.com)
Portions Copyright (c) 2006 The Zen Cart Team
Released under the GNU General Public License
available at www.zen-cart.com/license/2_0.txt
or see "license.txt" in the downloaded zip
DESCRIPTION: Quick Quantity Update Definitions
*/
define('TEXT_INFO_HEADING_CHANGE_QUANTITY', 'Change Quantity');
define('TEXT_CHANGE_QUANTITY_INTRO', 'Please set the quantity for:<br /> %s.');
define('ICON_CHANGE_QUANTITY', 'Change Quantity');
?>
Working great! Installed on 1.5.1
Quick Quantity Update has now been updated for 1.5.6.
Updated for 1.5.6c.
Does 'Quick Quantity Update' appear to work with Zen Cart version 1.5.7?
I haven't done the merges yet - the core files have changed a lot.
Quick Quantity Update has been updated to support Zen Cart 1.5.7.
I noticed a small bug with updating the quantities using this on a 1.5.7c build.
If the sub-category has more than one page, you can only use this to update quantities on the first page. Attempting to update quantity on subsequent pages results in it looping back to page 1, and not updating the quantity.
This can be overcome by setting the Maximum Categories Products Display List number in the Maximum Values settings to a number higher than the number of products in any given sub-category.
Please revert to smaller number of products per page and try this fix:
under
<!-- bof That Software Guy Quick Quantity Update -->
change
<?php echo '<a href="' . zen_href_link(FILENAME_CATEGORY_PRODUCT_LISTING, 'cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=change_quantity') . '">'; ?>
to
<?php echo '<a href="' . zen_href_link(FILENAME_CATEGORY_PRODUCT_LISTING, 'cPath=' . $cPath . '&pID=' . $product['products_id'] . '&action=change_quantity') . '">'; ?>
(You're basically changing $products->fields to $product.)