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

#   Extra fees for EU orders

##

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

Less More

- Posts: 13
- Thank you received: 4
-
-

4 months 4 days ago [\#372446](#372446) by [HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")  *[Extra fees for EU orders](/forum/27-checkout/910639-extra-fees-for-eu-orders#372446 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1  Hi there,  Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).  I need to add an extra €3 for each product &#42;type&#42; ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.  I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?  I already add extra taxes and shipping for EU orders so the zones are all set up.  Many thanks for any help. Leila")* was created by *[HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")*

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6.1.1

Hi there,

Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).

I need to add an extra €3 for each product *type* ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.

I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?

I already add extra taxes and shipping for EU orders so the zones are all set up.

Many thanks for any help.
Leila

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDYzOS1leHRyYS1mZWVzLWZvci1ldS1vcmRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

4 months 3 days ago [\#372454](#372454) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Extra fees for EU orders](/forum/27-checkout/910639-extra-fees-for-eu-orders#372454 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1  Hi there,  Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).  I need to add an extra €3 for each product &#42;type&#42; ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.  I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?  I already add extra taxes and shipping for EU orders so the zones are all set up.  Many thanks for any help. Leila")*

Hi Leila,

Yes, the Fees plugin (the one named "HikaShop - Fees", not the Global cart fee one) can do exactly this. It adds a fee to the cart from a formula you write, with a condition so it only applies when you want. You will not have to do any maths yourself, the two lines below are all you need.

Add one formula with:

Condition (so it only applies to EU orders): Code:

{cart.cart_shipping_ids}==X

Replace X with the id of your EU shipping method (System &gt; Shipping methods, the id is shown in the listing). Since your EU shipping is already restricted to your EU zones, this is what limits the fee to EU-bound orders. If you have more than one EU shipping method, add one formula per method.

Formula (3 per product type, quantity ignored): Code:

{item.cart_product_quantity}*0+3

How it works: as soon as a formula contains an item or product tag, HikaShop evaluates it once for each product line in the cart and adds the results together. The "*0" cancels the quantity, so every distinct product adds a flat 3 whatever the number of units. So 3 spoons (one line) + 1 plate (one line) = 3 + 3 = 6, which is what you need. The quantity is never multiplied in.

Give the formula a Label (for example "EU customs fee"); it will show as its own line at the checkout.

One thing to check: the amount is added in the cart's currency, so a customer paying in euros gets a 3 EUR fee and a customer paying in pounds gets a 3 GBP fee. Make sure the currency shown at checkout for your EU customers is the one you intend.

The following user(s) said Thank You: [HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDYzOS1leHRyYS1mZWVzLWZvci1ldS1vcmRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 13
- Thank you received: 4
-
-

4 months 3 days ago [\#372460](#372460) by [HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")  Replied by *[HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")* on topic *[Extra fees for EU orders](/forum/27-checkout/910639-extra-fees-for-eu-orders#372460 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1  Hi there,  Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).  I need to add an extra €3 for each product &#42;type&#42; ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.  I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?  I already add extra taxes and shipping for EU orders so the zones are all set up.  Many thanks for any help. Leila")*

That's great! Thanks for your help with that, it sounds just what I need. I'll take a look at the plugin.

Best regards
Leila

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDYzOS1leHRyYS1mZWVzLWZvci1ldS1vcmRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 13
- Thank you received: 4
-
-

4 months 1 day ago [\#372479](#372479) by [HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")  Replied by *[HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")* on topic *[Extra fees for EU orders](/forum/27-checkout/910639-extra-fees-for-eu-orders#372479 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1  Hi there,  Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).  I need to add an extra €3 for each product &#42;type&#42; ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.  I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?  I already add extra taxes and shipping for EU orders so the zones are all set up.  Many thanks for any help. Leila")*

Hi there,

I'm having trouble getting the fee to show up for the right shipping methods.

The shipping method ID is not shown in the backend listing so I used the shipping_id from the 'hikashop_shipping' table in the database - is this the correct ID number?

I know the plugin works because if I leave the Condition blank, it adds the fee in the checkout. But once I add the condition {cart.cart_shipping_ids}==xx it no longer appears.

Thanks for your help.
Leila

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDYzOS1leHRyYS1mZWVzLWZvci1ldS1vcmRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

4 months 1 day ago -  4 months 1 day ago [\#372482](#372482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Extra fees for EU orders](/forum/27-checkout/910639-extra-fees-for-eu-orders#372482 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1  Hi there,  Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).  I need to add an extra €3 for each product &#42;type&#42; ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.  I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?  I already add extra taxes and shipping for EU orders so the zones are all set up.  Many thanks for any help. Leila")*

Hi Leila,

Sorry for that, I was a bit too fast and didn't properly check what I wrote on this point in my previous message.

The id you took from the hikashop_shipping table is the correct one. The catch is that HikaShop does not store the bare number in the cart: it stores the shipping id together with the warehouse, like Code:

2@0

So Code:

{cart.cart_shipping_ids}==2

never matches, which is why the fee vanishes the moment you add that condition.

Use the "matches" operator Code:

=~

instead of Code:

==

with this condition:
Code:

{cart.cart_shipping_ids}=~/^2(@&#124;$)/

Replace the 2 with your shipping id and leave the formula as it is. That matches your method whatever warehouse is attached to it, while still keeping the fee off your other shipping methods.

Last edit: 4 months 1 day ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDYzOS1leHRyYS1mZWVzLWZvci1ldS1vcmRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 13
- Thank you received: 4
-
-

3 months 4 weeks ago [\#372502](#372502) by [HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")  Replied by *[HatsukoiUK](/forum/user/83675-hatsukoiuk "View HatsukoiUK's Profile")* on topic *[Extra fees for EU orders](/forum/27-checkout/910639-extra-fees-for-eu-orders#372502 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1  Hi there,  Due to some new regulations, I need to add an extra fee at the checkout for orders shipping to the EU (I'm in the UK).  I need to add an extra €3 for each product &#42;type&#42; ordered - not the quantity. So if they order 3 x spoons and1 plate, I need to add €6. This is a customs thing apparently.  I see that there is a checkout fee plugin available - will this be able to work it out? Also, my maths isn't great, is it easy enough to work out the calculation?  I already add extra taxes and shipping for EU orders so the zones are all set up.  Many thanks for any help. Leila")*

That's brilliant - works perfectly! Thank you for taking the time to sort that out for me.

Leila

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkxMDYzOS1leHRyYS1mZWVzLWZvci1ldS1vcmRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.073 seconds

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