View Single Post
  #12  
Old 03-14-2016, 08:59 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Hiding product weights and inventory quantities

This is how I hide stock quantities - I don't want my competitors knowing how much inventory I keep.

1) Look&Feel>>Webmaster mode

2) Edit Template: /default/en/product/details/stock/body.tpl

Comment out the quantity tag using {** *} here is the template:
================================================

{* vim: set ts=2 sw=2 sts=2 et: *}

{**
* Product stock
*
* @author Qualiteam software Ltd <info@x-cart.com>
* @copyright Copyright (c) 2011-2015 Qualiteam software Ltd <info@x-cart.com>. All rights reserved
* @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement
* @link http://www.x-cart.com/
*}

<div class="product-stock {getFingerprint()}">
{if:isInStock()}
<span class="stock-level product-in-stock">
<span class="in-stock-label">{t(#In stock#)}</span>


{**
<span class="product-items-available">({t(#X items available#,_ARRAY_(#count#^getAvailableAmount()))} )</span>
*}


</span>
{else:}
{if:isOutOfStock()}
<span class="stock-level product-out-of-stock">{getOutOfStockMessage()}</span>
{end:}
{end:}
</div>
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote