Jump to content

Taxes problem


FedericoDM

Recommended Posts

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

I have putted
this 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 by FedericoDM (see edit history)
Link to comment
Share on other sites

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

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 by FedericoDM (see edit history)
Link to comment
Share on other sites

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

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

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...