Jump to content
narancsital

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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