Jump to content

(SOLVED) Quantity discount


Recommended Posts

Hello

I want quantity discount to be available, but I don't want it shown on the product page. I would much rather explain the discount with text!

How do I remove the visibility of quantity discount? Any help is much appreciated!

(See picture if in doubt)

36885_Pj1VQC0MVqahcWZ5m9gU_t

Link to comment
Share on other sites

Change lines 294-325 (in PrestaShop v1.3.6) of product.tpl in your theme's directory from:

>
{if $quantity_discounts}
<!-- quantity discount -->
</pre>
<ul>
{l s='Quantity discount'}
</ul>
<br><div>
{$quantity_discount.quantity|intval} 
               {if $quantity_discount.quantity|intval > 1}
                   {l s='quantities'}
               {else}
                   {l s='quantity'}
               {/if}

               {if $quantity_discount.id_discount_type|intval == 1}
                   -{$quantity_discount.value|floatval}%
               {else}
                   -{convertPrice price=$quantity_discount.real_value|floatval}
               {/if}

</div>
<br>{/if



to:

>
{*{if $quantity_discounts}
<!-- quantity discount -->
</pre>
<ul>
{l s='Quantity discount'}
</ul>
<br><div>
{$quantity_discount.quantity|intval} 
               {if $quantity_discount.quantity|intval > 1}
                   {l s='quantities'}
               {else}
                   {l s='quantity'}
               {/if}

               {if $quantity_discount.id_discount_type|intval == 1}
                   -{$quantity_discount.value|floatval}%
               {else}
                   -{convertPrice price=$quantity_discount.real_value|floatval}
               {/if}

</div>
<br>{/if}*

Link to comment
Share on other sites

  • 3 years later...

Hi


 


Can someone please help me. I wanted to do the same "hide quantity discount table" and I used same coding as above but when I go to my website, I can still see quantity discount table. 


 


Am I doing anything wrong? because I am new to this.


 


That is how I did it, please tell me if I am doing anything wrong:


 


1. I log in to my hosting account.


2. Went to "File Manager".


3. Dowloaded "product.tpl"


4. Edit the coding above and saved it.


5. Uploaded "product.tpl" again via File Manager and it overwrite on product.tpl which was on File Manager.


 


I have also deleted browser cookies but I can still see quantity discount table. 


 


Any help will be much appreciated


 


Thank you


 


Nasjam


Link to comment
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...