[Skip to main content](#vessel-content)

#   How to add applied VAT and link for shipping costs to product page

##

- **[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")**
- [![HolgerB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37102-holgerb "View HolgerB's Profile") Topic Author
- [ Offline](/forum/user/37102-holgerb)

Less More

- Posts: 11
- Thank you received: 0
-
-

9 years 5 months ago [\#269447](#269447) by [HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")  *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269447 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")* was created by *[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")*

-- HikaShop version -- : 3.0.1

Hi,

in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: "9,99 € (inkl. 19% MWSt)" and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?

Best regards
Holger

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 5 months ago [\#269457](#269457) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269457 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Hi,

Regarding the display of the price on the product page, you can change it thanks to the option "show taxed prices" setting of the HikaShop configuraiton to either have the price with or without taxes or both.
You can also use translation overrides if you want to add the tax rate after the price display:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

Regarding the shipping costs, If you activate the "shipping price per product" of your shipping methods and set prices per product when you edit them, you can have these shipping costs directly display on the product page thanks to a setting inthe price per product plugin that you can find when you edit it via the Joomla plugins manager.
Otherwise, if you want something more static, there are several solutions based on what you really want.
It could be a custom field of the table "product" where you could select some text in each product configuration page to be displayed on the product page.
Or a fixed text you would add to all the product pages either with a custom HTML module, or a modification in the view file "show_default" via the menu Display&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")**
- [![HolgerB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37102-holgerb "View HolgerB's Profile") Topic Author
- [ Offline](/forum/user/37102-holgerb)

Less More

- Posts: 11
- Thank you received: 0
-
-

9 years 5 months ago [\#269562](#269562) by [HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")  Replied by *[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269562 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Hi,

thanks a lot. By using of what variable I can get access to the the tax rate for the products within the show default page?

Bestr regards
Holger

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 5 months ago [\#269583](#269583) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269583 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Hi,

In $this-&gt;element-&gt;prices you have an array of price objects (because a product can have several prices).
Then, in each price object you have attributes like price_value, price_value_with_tax and a taxes attribute which is an array of tax rates (because a price can have several tax rates applied to it. Each tax rate object has several attributes like tax_rate, tax_namekey or tax_amount.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")**
- [![HolgerB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37102-holgerb "View HolgerB's Profile") Topic Author
- [ Offline](/forum/user/37102-holgerb)

Less More

- Posts: 11
- Thank you received: 0
-
-

9 years 5 months ago [\#269642](#269642) by [HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")  Replied by *[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269642 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Hi,

so it is not possible to access the applied tax rate which is applied for displayed price directly? Hmm, so I have to calculate it from price with tax and price without tax...

Best regards
Holger

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 5 months ago [\#269656](#269656) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269656 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Hi,

Where in my message did I said that ?
I said the exact opposite.
As I said, you can access the tax_rate attribute in the tax objects of the taxes array of the price object in the $this-&gt;element-&gt;prices variable. So there is nothing to calculate. Just use the variable like I explained.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")**
- [![HolgerB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37102-holgerb "View HolgerB's Profile") Topic Author
- [ Offline](/forum/user/37102-holgerb)

Less More

- Posts: 11
- Thank you received: 0
-
-

9 years 5 months ago [\#269731](#269731) by [HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")  Replied by *[HolgerB](/forum/user/37102-holgerb "View HolgerB's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#269731 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Got it now! Thanks a lot

Best regards
Holger

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")**
- [![W3Bsupport's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")
- [ Offline](/forum/user/31250-w3bsupport)

Less More

- Posts: 8
- Thank you received: 0
-
-

9 years 3 months ago [\#273946](#273946) by [W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")  Replied by *[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#273946 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

-- HikaShop Business version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.21

Hi,

I also need to display the Tax Rate calculate with each product, since I have 10% VAT and 15% VAT. I solved problem this adding the following code at the end of --&gt;  *com\_hikashop &gt; product &gt; listing\_price.php*
Code:

&lt;br /&gt; (inkl. &lt;?php echo $this-&gt;row-&gt;prices[0]-&gt;taxes[0]-&gt;tax_rate*100.0; ?&gt;% MwSt) &lt;/span&gt;

Unfortunately, after updating HikaShop to 3.1.1. this stop working ![:-(](/media/kunena/emoticons/4.png ":-(")

Could you please tell me with the code goes for it it work again? I tried to figure it out with your comment in this Topic but I don't get it working ![:-(](/media/kunena/emoticons/4.png ":-(")

Thanks in advanced for the help!

- [ ![preis.jpg](/forum/attachment/39185) ](/forum/attachment/39185 "preis.jpg") [ ](/forum/attachment/39185?download=1 "preis.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 3 months ago [\#273962](#273962) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#273962 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Hi,

Your code is wrong.
You're using the key '0' to access the first element of the arrays, but it's not always the case.
For the prices array, the key correspond to the minimum quantity of the price. So you usually have 0 (so that you can purchase a quantity of 1, 2, etc) and thus it should work.
However, for the taxes array, the key is not 0.
Hence, your code should be: Code:

&lt;br /&gt; (inkl. &lt;?php $firstTax = reset($this-&gt;row-&gt;prices[0]-&gt;taxes); echo $firstTax-&gt;tax_rate*100.0; ?&gt;% MwSt) &lt;/span&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")**
- [![W3Bsupport's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")
- [ Offline](/forum/user/31250-w3bsupport)

Less More

- Posts: 8
- Thank you received: 0
-
-

9 years 3 months ago [\#273979](#273979) by [W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")  Replied by *[W3Bsupport](/forum/user/31250-w3bsupport "View W3Bsupport's Profile")* on topic *[How to add applied VAT and link for shipping costs to product page](/forum/25-install-update/890234-how-to-add-applied-vat-and-link-for-shipping-costs-to-product-page#273979 "-- HikaShop version -- : 3.0.1  Hi,  in Germany you have to show the VAT (usually as a fixed percentage) at the product price. For example: &quot;9,99 € (inkl. 19% MWSt)&quot; and there should be a link to the shipping costs. I think for the shipping costs I should generate a page containing the prices and insert a link? In which file I have to add this? For the VAT topic - how can I display this?  Best regards Holger")*

Thanks a lot! ![:-)](/media/kunena/emoticons/9.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDIzNC1ob3ctdG8tYWRkLWFwcGxpZWQtdmF0LWFuZC1saW5rLWZvci1zaGlwcGluZy1jb3N0cy10by1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.356 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
