Zen Cart – Product disappears when sold out

Reading Time: < 1 minute

When the remaining product is purchased, for example your last keyboard, the quantity changes from 1 to 0 but you find that the product disappears from the website and not marked as sold out.

To enable this:

Always take a backup of your database

1) Go to configuration
2) Click Stock
3) Set the following option to ‘Product Status in Catalog when Out of stock should be set to’ = 1 Leave Product Status On
4) Show sold Out image in place of Add to cart = 1

Please follow and like us:

Disable backorder – Zen Cart

Reading Time: < 1 minute

When a customer purchases a number of the same item but there is not enough in stock, the customer receives the below message but allowed to continue to checkout.

Products marked with *** are out of stock.
Items not in stock will be placed on backorder

1) Login to your Zen Cart admin panel
2) Access the configuration menu
3) Click on Stock
4) Amend ‘Allow Checkout’ to FALSE

Please follow and like us:

Zen Cart – Show qty box in shopping cart

Reading Time: < 1 minute

1) Backup your site
2) Locate includes/templates/template_default/templates/tpl_shopping_cart_default.php
3) Locate the below code:

if ($product[‘flagShowFixedQuantity’]) {
    echo $product[‘showFixedQuantityAmount’] . ‘<br /><span>’ . $product[‘flagStockCheck’] . ‘</span><br /><br />’ . $product[‘showMinUnits’];
  } else {
    echo $product[‘quantityField’] . ‘<br /><span>’ . $product[‘flagStockCheck’] . ‘</span><br /><br />’ . $product[‘showMinUnits’];
  }

4) Replace with the below code:

echo $product[‘quantityField’] . ‘<br /><span>’ . $product[‘flagStockCheck’] . ‘</span><br /><br />’ . $product[‘showMinUnits’];

Please follow and like us: