Steffen Posted January 15, 2011 Share Posted January 15, 2011 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) Link to comment Share on other sites More sharing options...
rocky Posted January 16, 2011 Share Posted January 16, 2011 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 More sharing options...
Steffen Posted January 16, 2011 Author Share Posted January 16, 2011 Worked like a charm! Thanks Link to comment Share on other sites More sharing options...
nasjam Posted February 19, 2014 Share Posted February 19, 2014 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 More sharing options...
nasjam Posted February 20, 2014 Share Posted February 20, 2014 Hello I fixed this problem. I did followings: For hiding the product discount table, simply write this CSS - #discounts_block{display: none;} in the last lines of this file - root/themes/css/product.css Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now