VAT Calculated bu not showing in email/invoice

  • Posts: 57
  • Thank you received: 1
8 years 2 months ago #250458

-- HikaShop version -- : Hikashop Business 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6

Hey

I have tax set up 20% UK and published. It is being calculated an I can see it in the checkout but not in my emails or invoices.

Although I'm using the Tax Method, the calculation is coming from extrernal source so it's really a custom value.

See attached - calculation of total is correct but no display of VAT.

How can I show it in emails and invoices?

Thanks
Thanks

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250479

Hi,

Although I'm using the Tax Method, the calculation is coming from extrernal source so it's really a custom value.

What do you mean by that ? So that means you're not using the tax rules system in HikaShop ? You have a special plugin to handle taxes ? Then wouldn't the problem come from that plugin ?
Please provide more information on how you setup your taxes on your website.

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

  • Posts: 57
  • Thank you received: 1
8 years 2 months ago #250513

Hey Nicolas,

I am enabling a tax mehthod so it displays the tax amount on the checkout page but the amount comes from external source.

The plugin I am using is attached + a modified show_tabular.php.

Hope that helps ;)

Thanks

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250538

Hi,

The problem comes from that plugin and how it was coded.

I can see that it bases itself on a custom plugin Jerome did at one point to assign a vendor based on the total amount of the order. That is correct.
However, the trigger onBeforeProductsVendorAttribution used in that plugin is not meant to be used to set the prices of the products.
That's why it doesn't work as expected.
Instead, the code to change the prices/taxes should be in a HikaShop trigger like onAfterCartProductsLoad, as a HikaShop plugin (so another plugin).

Last edit: 8 years 2 months ago by nicolas.

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

  • Posts: 57
  • Thank you received: 1
8 years 2 months ago #250595

Hey

Thanks for your reply.

So, is this new plugin exist or do I need to code one? If so would you be able to provide a direction/instructions?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250644

Hi,

It would require someone to code it.
As I said, the code to change the prices/taxes should be in a HikaShop trigger like onAfterCartProductsLoad, as a HikaShop plugin (so another plugin) instead of being in that plugin.
A developer knowing a bit about Joomla plugins should have no problem doing it with that information.
If you need a developer to work on that for you, you can contact our partners:
www.hikashop.com/home/our-partners.html

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

Time to create page: 0.066 seconds
Powered by Kunena Forum