problem with TAXES

  • Posts: 40
  • Thank you received: 0
9 years 8 months ago #194064

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4

Hi (I removed the old text since I found the solution by myself)

Just a question

I want to add a text to tax exempt customers (they are included in a "0%" tax rule).
Is there a way to add this sentence to invoices?

Attachments:
Last edit: 9 years 8 months ago by nbstudio.

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 0
9 years 8 months ago #194137

I solved it by myself. I was too tired to notice.
Just a question

I want to add a text to tax exempt customers.
Is there a way to add this sentence to invoices?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 8 months ago #194166

You can edit invoices via the menu Display>Views by editing the file "invoice" of the view "order".
You could do something like that:
<?php if($taxes==0.0){
echo "you are tax exempt";
} ?>
You can add that code at the end for example.

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 0
9 years 8 months ago #194339

hi nicolas.
suppose I have 2 different exemptions (one for Europe, one for outside EU)
the two are actually correctly applied to orders.




in these two tax rules, I've added the legal text to the field TAX NOTE,



is there a way to print it in the invoice according to the tax rule applied?

Attachments:
Last edit: 9 years 8 months ago by nbstudio.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 8 months ago #194361

Hi,

I don't see any easy way to do that as the tax amount in the order is not linked to the tax rule/tax note.
So you can't know which tax note to display. It would require hacking in the code of HikaShop to get that information when the tax rules are calculated and then store that information in the order when the order is created so that you can then display it in the invoice.

A simpler solution will be to have such code:
<?php if($taxes==0.0){
if(in_array($this->element->shipping_address->address_country,array('France','Germany', ...etc... ))){
echo "you are tax exempt in europe";
}else{
echo "you are tax exempt outside europe";
}
} ?>

Please Log in or Create an account to join the conversation.

  • Posts: 40
  • Thank you received: 0
9 years 8 months ago #194821

thanks. I made the modifications and after some hours of struggle, I succeeded.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum