Jump to content

How to hide the product quantity in the product pack


Recommended Posts

How to hide the product quantity in the product pack? 

I have got a product pack wich contain 3 pcs other product. There is a quantity under the product image, for example 1x or 2x. 

I would like to hide this quantity on every page. 

Please help. 

Thanks in advanced!

Share this post


Link to post
Share on other sites

This is at \themes\classic\templates\catalog\_partials\miniatures\pack-product.tpl:

<div class="pack-product-quantity">
    <span>x {$product.pack_quantity}</span>
</div>

 

  • Like 1

Share this post


Link to post
Share on other sites

Thank you for your answer. I am sorry but I didn't find this file: \themes\classic\templates\catalog\_partials\miniatures\pack-product.tpl

I search it with winscp, but I couldn't find it. I have got the default-bootstrap theme. Is this the problem? 

Thank you! 

Share this post


Link to post
Share on other sites

I thought you were running PS 1.7.

Check here: \themes\default-bootstrap\product-list.tpl

{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
	{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
</a>

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More