Loading...

Hiding the 'In stock:' section on the 'Product details' page

We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.

  • This article is available only for CS-Cart versions:
  • 1.3.5
  1. Open the product_details.tpl file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/products_pages directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
  2. Find the following part of code there:
    <div class="form-field product-list-field">
              <label>{$lang.in_stock}:</label>
              <span id="product_amount_{$product.product_id}">{$product.amount}&nbsp;{$lang.items}</span>
          </div>

    and replace it with this one:
    <div class="form-field product-list-field" style="display:none">
              <label>{$lang.in_stock}:</label>
              <span id="product_amount_{$product.product_id}">{$product.amount}&nbsp;{$lang.items}</span>
          </div>
  3. Save the file and check the result.
    NOTE: If some of the objects on the pages need to be hidden add the style="display:none" part of code to the HTML tag of this object.
Home / Knowledge base / Catalog / Hiding the 'In stock:' section on the 'Product details' page