Jump to content

Quantity text on product page


spondishy

Recommended Posts

So you want to remove the word "Items"?

 

You don't say what version of PS v1.6 you are using, so I am assuming PS v1.6.0.9.  Yes it matters.. 

 

Edit the file "\themes\default-bootstrap\product.tpl" and locate these lines of code.  Should start at line 200

{if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)}
    <!-- number of item in stock -->
    <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}>
        <span id="quantityAvailable">{$product->quantity|intval}</span>
        <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span>
        <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span>
    </p>
{/if}

Remove the 2 span lines from this code so that the word Item or Items do not appear.

        <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span>
        <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span>


 

Link to comment
Share on other sites

×
×
  • Create New...