Showing a Quantity Box on the Shopping Cart Page When Disabled on the Product Page
Monday, September 1st, 2008Sometimes for design purposes, you may not want to have a quantity box on the product information page. When an item of this type is added to the shopping cart, a customer is not able to update the quantity on the shopping cart page. The only way to add more of this item to the cart is to go back to the product information page and add another item from there.
To allow the quantity to be updated directly from the shopping cart page, open includes/templates/template_default/templates/tpl_shopping_cart_default.php.
Look for:
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
} else {
echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
}
And Replace With:
echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
Save and upload the file to includes/templates/YourCustomTemplate/templates/
Check the work by adding an item to the shopping cart, you should now be able to update the quantity on the shopping cart page.
