PSdilemma Posted November 4, 2013 Share Posted November 4, 2013 Hi everyone, I have been searching the forum but couldn't find answer. I am on PS 1.5.4.1. In the backend under the price tab I would like to remove the "Pre-tax retail price" and "Tax rule" fields. In the prices.tpl I have commented the related codes but I get a blank page when I click the price tab and even can't move to other tab. Even just commenting the "Pre-tax retail price" causing the same problem. I must be doing something wrong. I have tried both methodes: {* COMMENT *} and <!-- COMMENT --> This is an example for commenting the "Pre-tax retail price": {* <tr> <td class="col-left"> {include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"} <label>{l s='Pre-tax retail price:'}</label> </td> <td style="padding-bottom:5px;"> <input type="hidden" id="priceTEReal" name="price" value="{toolsConvertPrice price=$product->price}" /> {$currency->prefix}<input size="11" maxlength="14" id="priceTE" name="price_displayed" type="text" value="[spam-filter]toolsConvertPrice price=$product->price}|string_format:'%.2f'}" onchange="noComma('priceTE'); $('#priceTEReal').val(this.value);" onkeyup="$('#priceType').val('TE'); $('#priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return; calcPriceTI();" />{$currency->suffix} <p class="preference_description">{l s='The pre-tax retail price to sell this product'}</p> </td> </tr> *} What else should I do? Thanks Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 hello if you've got blank page, please turn on error reporting, will see what's goin on there. your comment method is OK Link to comment Share on other sites More sharing options...
PSdilemma Posted November 4, 2013 Author Share Posted November 4, 2013 hello if you've got blank page, please turn on error reporting, will see what's goin on there. your comment method is OK Thank you Vekia for your reply. I have turned on the error reporting but I see nothing. It doesn't show any error I have attached a file to show how it looks when I click on prices. The way I am turning on the error reporting is via the file defines.inc.php define('_PS_MODE_DEV_', true); @ini_set('display_errors', 'on'); I have turned on the similar two instances. Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 ok i checked it, it's because these fields are necessary for prestashop back office. without these fields prestashop displays javascript errors: what to do? if I were you, i will add there <tr style="display:none;"/> Link to comment Share on other sites More sharing options...
PSdilemma Posted November 4, 2013 Author Share Posted November 4, 2013 ok i checked it, it's because these fields are necessary for prestashop back office. without these fields prestashop displays javascript errors: what to do? if I were you, i will add there <tr style="display:none;"/> Thank you Vekia. That did the trick. I have replaced the <tr> with <tr style="display:none;"> (without the forward slash) No comment require in this case. Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 thank you for confirmation, im glad that it works for you now im going to mark this thread as [solved] best regards Link to comment Share on other sites More sharing options...
Recommended Posts