FedericoDM Posted April 29, 2016 Share Posted April 29, 2016 Prestashop 1.6.1.5 Hi there I have a problem with the US Taxes I have putted ; PRODUCT TAX ON GROUP TAX ON TAXES ALL ENABLED (USA) TAXES RULES ALL ENABLED (USA) ZONES ALL ENABLED (USA) COUNTRIES ALL ENABLED (USA) STATES ALL ENABLED (USA) I have made the product.tpl's procedure, but when I Force the compilation and try to make a check out of an item, appears ERROR 500, so back to Never recompile and the Tax still at 0%. How can I resolve? Thanks. Link to comment Share on other sites More sharing options...
shokinro Posted April 29, 2016 Share Posted April 29, 2016 try to enable error displaying mode by setting _PS_MODE_DEV_ to true in file /config/defines.inc.php and see what is the detailed error for the 500 error. you will see where is the problem and how to fix that. Link to comment Share on other sites More sharing options...
FedericoDM Posted April 29, 2016 Author Share Posted April 29, 2016 Ok done the error is this; Fatal error: in /home/itbrot5/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 266 Link to comment Share on other sites More sharing options...
shokinro Posted April 29, 2016 Share Posted April 29, 2016 there must be some more detailed error message, that's all you got? Link to comment Share on other sites More sharing options...
FedericoDM Posted April 29, 2016 Author Share Posted April 29, 2016 (edited) Uh no just that one.. maybe I should modify some file .ini ? Edited April 29, 2016 by FedericoDM (see edit history) Link to comment Share on other sites More sharing options...
FedericoDM Posted April 29, 2016 Author Share Posted April 29, 2016 (edited) I have puttedthis on product.tpl file on 265 line {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}{if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if}{/if} this is the all code same above {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}{if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if}{/if} then, on 287 {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if}{/if} this is the all code <span id="old_price_display"><span class="price">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction|floatval}{/if}</span>{if $productPriceWithoutReduction > $productPrice && {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if}{/if}</span> When I try to put Never recompile template files and click on my product appears half white page, without infos and block cart But I have resolved it replacing the product.tpl but the problem of the taxs remains Edited April 29, 2016 by FedericoDM (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted April 30, 2016 Share Posted April 30, 2016 I guess something is incorrect in your code. are you sure that all the Smarty variables you used in your code are available? (set in controller)? Link to comment Share on other sites More sharing options...
shokinro Posted April 30, 2016 Share Posted April 30, 2016 your following code is wrong, there is syntax error, you have to remove { , the brackets does not match. {if $productPriceWithoutReduction > $productPrice && {if $tax_enabled && $display_tax_label == 1} {if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if} {/if} Link to comment Share on other sites More sharing options...
FedericoDM Posted April 30, 2016 Author Share Posted April 30, 2016 (edited) ah got it sorry i try now same error Fatal error: in /home/itbrot5/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 266 I putted this on the 287 line (without the branket) if $tax_enabled && $display_tax_label == 1} {if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if} {/if} very strange have notice that if I go to taxes rules, > US-AL Rate (4%) > Country is All > Tax is No Tax, I have putted Country United States, Tax on Sell tax us AL 4%. how if they aren't not linked.. but if the buyer is of Alabama, and the Product tax is putted on Alabama it's works, if I change the tax product on Nevada for example it's doens't work. Edited April 30, 2016 by FedericoDM (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted April 30, 2016 Share Posted April 30, 2016 No, only the one is blue one. Link to comment Share on other sites More sharing options...
FedericoDM Posted April 30, 2016 Author Share Posted April 30, 2016 Same problem.. Link to comment Share on other sites More sharing options...
FedericoDM Posted April 30, 2016 Author Share Posted April 30, 2016 I guess something is incorrect in your code. are you sure that all the Smarty variables you used in your code are available? (set in controller)? Where I can check? Link to comment Share on other sites More sharing options...
shokinro Posted May 1, 2016 Share Posted May 1, 2016 I think it is not the Smarty variable problem. There is syntax error in your code, if you do not understand the coding syntax, if might be really difficult to understand. You may try following code to see if it works or not, it is based on the information you provided, <span id="old_price_display"><span class="price"> {if $productPriceWithoutReduction > $productPrice} {convertPrice price=$productPriceWithoutReduction|floatval} {/if} </span> <span> {if $productPriceWithoutReduction > $productPrice && $tax_enabled && $display_tax_label == 1} {if $priceDisplay == 1}{l s=’tax excl.’}{else}{l s=’tax incl.’}{/if}{/if} </span> Link to comment Share on other sites More sharing options...
FedericoDM Posted May 1, 2016 Author Share Posted May 1, 2016 (edited) I have solved my problem, just linking the tax. Tax rules > Edit: US-NV (6,88%) putting my state tax in this case Nevada, Tax: sales tax us nv 6,88 Edited May 1, 2016 by FedericoDM (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted May 1, 2016 Share Posted May 1, 2016 good to know, you have resolved, We have been focusing on trying fixing your 500 error - did not know what is your original problem. so the solution is link the tax rules to the product, but not by changing code. that will be best solution. anyway, thanks for update. 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