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

  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.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.