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

#   No tax on SveaWebpay plugin after update

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

9 years 5 months ago [\#269896](#269896) by [Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")  *[No tax on SveaWebpay plugin after update](/forum/25-install-update/890321-no-tax-on-sveawebpay-plugin-after-update#269896 "-- url of the page with the problem -- :   www.belysningsimporten.se  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.18  Hello  After updating to 3.0.1, the VAT for the products will not be sent to Svea, it will be displayed correctly with VAT at checkout and backend in hikashop, but not at Svea webpay.  Has anything been changed, any setting you need to do after the update?  Regards Henrik")* was created by *[Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")*

-- url of the page with the problem -- : [ www.belysningsimporten.se](https://www.belysningsimporten.se)
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.0
-- PHP version -- : 7.0.18

Hello

After updating to 3.0.1, the VAT for the products will not be sent to Svea, it will be displayed correctly with VAT at checkout and backend in hikashop, but not at Svea webpay.

Has anything been changed, any setting you need to do after the update?

Regards
Henrik

- [ ![Hikshop-order.jpg](/forum/attachment/38229) ](/forum/attachment/38229 "Hikshop-order.jpg") [ ](/forum/attachment/38229?download=1 "Hikshop-order.jpg")
- [ ![Svea-orderinformation.jpg](/forum/attachment/38230) ](/forum/attachment/38230 "...nformation.jpg") [ ](/forum/attachment/38230?download=1 "...nformation.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDMyMS1uby10YXgtb24tc3ZlYXdlYnBheS1wbHVnaW4tYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) 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: 86295
- Thank you received: 14273
-
-

9 years 5 months ago -  9 years 5 months ago [\#269917](#269917) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No tax on SveaWebpay plugin after update](/forum/25-install-update/890321-no-tax-on-sveawebpay-plugin-after-update#269917 "-- url of the page with the problem -- :   www.belysningsimporten.se  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.18  Hello  After updating to 3.0.1, the VAT for the products will not be sent to Svea, it will be displayed correctly with VAT at checkout and backend in hikashop, but not at Svea webpay.  Has anything been changed, any setting you need to do after the update?  Regards Henrik")*

Hi,

I4ve checked the code of the plugin and as it was developed by a sub contractor, they didn't use the standard way we do in other payment plugins to send the taxes.
Try changing the code: Code:

if(isset($product-&gt;order_product_tax_info[0]-&gt;tax_rate) &amp;&amp; $product-&gt;order_product_tax_info[0]-&gt;tax_rate &gt; 0) { $product_tax = 100 * ($product-&gt;order_product_tax_info[0]-&gt;tax_rate); }

to: Code:

if(isset($product-&gt;order_product_tax) &amp;&amp; $product-&gt;order_product_tax &gt; 0) { $product_tax = 100 * $product-&gt;order_product_tax; }

in the file plugins/hikashoppayment/sveawebpay/sveawebpay.php
That should hopefully solve the problem.
Let us know how it goes so that we can include the patch for the next version.

Last edit: 9 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

9 years 5 months ago [\#269943](#269943) by [Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")  Replied by *[Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")* on topic *[No tax on SveaWebpay plugin after update](/forum/25-install-update/890321-no-tax-on-sveawebpay-plugin-after-update#269943 "-- url of the page with the problem -- :   www.belysningsimporten.se  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.18  Hello  After updating to 3.0.1, the VAT for the products will not be sent to Svea, it will be displayed correctly with VAT at checkout and backend in hikashop, but not at Svea webpay.  Has anything been changed, any setting you need to do after the update?  Regards Henrik")*

Hi Nicolas

I have now tried to replace the code but unfortunately did not work.
As you can see in the pictures, the sum sent to Svea is now much larger than the order value.

Regards
Henrik

- [ ![Checkout.jpg](/forum/attachment/38244) ](/forum/attachment/38244 "Checkout.jpg") [ ](/forum/attachment/38244?download=1 "Checkout.jpg")
- [ ![Svea-Webpay.jpg](/forum/attachment/38245) ](/forum/attachment/38245 "Svea-Webpay.jpg") [ ](/forum/attachment/38245?download=1 "Svea-Webpay.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDMyMS1uby10YXgtb24tc3ZlYXdlYnBheS1wbHVnaW4tYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) 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: 86295
- Thank you received: 14273
-
-

9 years 5 months ago [\#269947](#269947) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No tax on SveaWebpay plugin after update](/forum/25-install-update/890321-no-tax-on-sveawebpay-plugin-after-update#269947 "-- url of the page with the problem -- :   www.belysningsimporten.se  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.18  Hello  After updating to 3.0.1, the VAT for the products will not be sent to Svea, it will be displayed correctly with VAT at checkout and backend in hikashop, but not at Svea webpay.  Has anything been changed, any setting you need to do after the update?  Regards Henrik")*

Hi,

Ok. I see the problem.
Then please replace that code by: Code:

if(isset($product-&gt;order_product_tax_info)) { $tax = reset($product-&gt;order_product_tax_info); if($tax-&gt;tax_rate &gt; 0) $product_tax = 100 * $tax-&gt;tax_rate; }

That should be much better.

The following user(s) said Thank You: [Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

9 years 5 months ago [\#270037](#270037) by [Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")  Replied by *[Stroppen](/forum/user/17246-stroppen "View Stroppen's Profile")* on topic *[No tax on SveaWebpay plugin after update](/forum/25-install-update/890321-no-tax-on-sveawebpay-plugin-after-update#270037 "-- url of the page with the problem -- :   www.belysningsimporten.se  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.18  Hello  After updating to 3.0.1, the VAT for the products will not be sent to Svea, it will be displayed correctly with VAT at checkout and backend in hikashop, but not at Svea webpay.  Has anything been changed, any setting you need to do after the update?  Regards Henrik")*

Hi Nicolas

It worked great, thank you!

Regards,
Henrik

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MDMyMS1uby10YXgtb24tc3ZlYXdlYnBheS1wbHVnaW4tYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) 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.105 seconds

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

[](#top)
