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

#   Cart Fee Condition

##

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360668](#360668) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360668 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")* was created by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")*

-- HikaShop version -- : 5.04
-- Joomla version -- : 5.1.0
-- PHP version -- : 8.2.18
-- Browser(s) name and version -- : Firefox 125.0.2

we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice.
I thought the Cart Fee plugin would be nice to accomplish this fee.
So, I added a custom field for Products called "dyriceshipment" and entered a "1" in this field for products to be shipped on dry ice.
I entered the following information in the Cart Fee plugin:
Label: "Dry Ice Surcharge"
Condition: "{product.dryiceshipment}==1"
Formula: "50"
[ ![CartFee.JPG](/forum/attachment/59184) ](/forum/attachment/59184 "CartFee.JPG")

Apparently, this condition is always evaluated as "false", no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout.
When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.

Does anyone know what I am doing wrong??

Thanks in advance,

- [ ![CartFee.JPG](/forum/attachment/59184) ](/forum/attachment/59184 "CartFee.JPG") [ ](/forum/attachment/59184?download=1 "CartFee.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODEwMC1jYXJ0LWZlZS1jb25kaXRpb24/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 6 months ago [\#360674](#360674) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360674 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Hi,

I think the plugin is indeed adapted to what you want to do.
I think there is a problem between how the custom field is configured / filled and the condition.
Could you provide a screenshot of the settings of the custom field ? Could you provide a screenshot of the settings of a product you've configured to match with this condition ?
Also, I don't think you want to have the double quotes around the 1 in your condition.
Did you try without them ?

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360676](#360676) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  Replied by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360676 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

thanks for the quick response!
indeed, the double quotation marks were not normally used. I added them for a quick test, just before I took the screen shot.
Products without the dry ice charge show a "0", whereas products with the charge show a 1 in the custom field.
here are the requested screen shots:
[ ![field.JPG](/forum/attachment/59186) ](/forum/attachment/59186 "field.JPG")

[ ![form.JPG](/forum/attachment/59187) ](/forum/attachment/59187 "form.JPG")

[ ![setting.JPG](/forum/attachment/59188) ](/forum/attachment/59188 "setting.JPG")

[ ![product.JPG](/forum/attachment/59189) ](/forum/attachment/59189 "product.JPG")

- [ ![field.JPG](/forum/attachment/59186) ](/forum/attachment/59186 "field.JPG") [ ](/forum/attachment/59186?download=1 "field.JPG")
- [ ![form.JPG](/forum/attachment/59187) ](/forum/attachment/59187 "form.JPG") [ ](/forum/attachment/59187?download=1 "form.JPG")
- [ ![setting.JPG](/forum/attachment/59188) ](/forum/attachment/59188 "setting.JPG") [ ](/forum/attachment/59188?download=1 "setting.JPG")
- [ ![product.JPG](/forum/attachment/59189) ](/forum/attachment/59189 "product.JPG") [ ](/forum/attachment/59189?download=1 "product.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODEwMC1jYXJ0LWZlZS1jb25kaXRpb24/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 6 months ago [\#360681](#360681) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360681 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Hi,

Thanks for the details.
I was able to fix the bug with this. It was a typo in the code of the cart fee plugin.
I've made a new version of the plugin available.
Download again the install package of the plugin with the same download link you used after your purchase, and install it on your website and you'll get the patch for this problem.

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360682](#360682) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  Replied by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360682 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

great - thanks. Glad I could help.
I installed the new version. Now I can see the dry ice charge when the cart contains only one dry ice product. If the cart contains an additional, regular product, the charge is not shown. If the cart contains two different dry ice products the dry ice charge is doubled. See attached screen shots.
Would it be possible to charge the dry ice fee only once, whenever there is a single or multiple dry ice products in the cart - and also when there are additional products, that don't require dry ice shipment?

Cart 1:
[ ![cart4.JPG](/forum/attachment/59191) ](/forum/attachment/59191 "cart4.JPG")

Cart 2:
[ ![cart1.JPG](/forum/attachment/59192) ](/forum/attachment/59192 "cart1.JPG")

Cart 3:
[ ![cart2.JPG](/forum/attachment/59193) ](/forum/attachment/59193 "cart2.JPG")

Cart 4:
[ ![cart3.JPG](/forum/attachment/59194) ](/forum/attachment/59194 "cart3.JPG")

- [ ![cart4.JPG](/forum/attachment/59191) ](/forum/attachment/59191 "cart4.JPG") [ ](/forum/attachment/59191?download=1 "cart4.JPG")
- [ ![cart1.JPG](/forum/attachment/59192) ](/forum/attachment/59192 "cart1.JPG") [ ](/forum/attachment/59192?download=1 "cart1.JPG")
- [ ![cart2.JPG](/forum/attachment/59193) ](/forum/attachment/59193 "cart2.JPG") [ ](/forum/attachment/59193?download=1 "cart2.JPG")
- [ ![cart3.JPG](/forum/attachment/59194) ](/forum/attachment/59194 "cart3.JPG") [ ](/forum/attachment/59194?download=1 "cart3.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODEwMC1jYXJ0LWZlZS1jb25kaXRpb24/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 6 months ago [\#360684](#360684) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360684 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Hi,

Thanks for the details and the idea on the logic operator.
I've made a new version of the plugin available with an extra option to cater to that need.
Download again the install package of the plugin with the same download link you used after your purchase, and install it on your website and you'll get the modifications for that new option and the fix for the amount being multiplied when it shouldn't.

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360695](#360695) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  Replied by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360695 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Thank you for the new version.
I installed and tested it.
I understand that the new Plugin Products Logic Operator has to be set to "OR" for my application. Correct?

With this setting the dry ice charge is added only once, no matter how many dry ice products are in the cart. That is the good news.
However, when there are no dry ice products in the cart, the dry ice charge is still added. See attached screen shots.

Meanwhile, I took the liberty to fiddle with the fees.php file myself. I attach a version that works for me as a text file. It contains changes around line 45 and line 70.

Cart 1:
[ ![cart1&#95;2024-04-30.JPG](/forum/attachment/59198) ](/forum/attachment/59198 "...2024-04-30.JPG")

Cart 2:
[ ![cart3&#95;2024-04-30.JPG](/forum/attachment/59199) ](/forum/attachment/59199 "...2024-04-30.JPG")

Cart 3:
[ ![cart4&#95;2024-04-30.JPG](/forum/attachment/59200) ](/forum/attachment/59200 "...2024-04-30.JPG")

Modified fees.php:
*This attachment is hidden for guests.
Please log in or register to see it.*

- [ ![cart1&#95;2024-04-30.JPG](/forum/attachment/59198) ](/forum/attachment/59198 "...2024-04-30.JPG") [ ](/forum/attachment/59198?download=1 "...2024-04-30.JPG")
- [ ![cart3&#95;2024-04-30.JPG](/forum/attachment/59199) ](/forum/attachment/59199 "...2024-04-30.JPG") [ ](/forum/attachment/59199?download=1 "...2024-04-30.JPG")
- [ ![cart4&#95;2024-04-30.JPG](/forum/attachment/59200) ](/forum/attachment/59200 "...2024-04-30.JPG") [ ](/forum/attachment/59200?download=1 "...2024-04-30.JPG")
- [ ![cart2&#95;2024-04-30.JPG](/forum/attachment/59201) ](/forum/attachment/59201 "...2024-04-30.JPG") [ ](/forum/attachment/59201?download=1 "...2024-04-30.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODEwMC1jYXJ0LWZlZS1jb25kaXRpb24/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 6 months ago [\#360696](#360696) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360696 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Hi,

Yes, you would want to set this option to "OR" in your case.

Indeed, I missed the case when no dry ice products are in the cart in my tests.
However, while your modifications fix the problem, you run the _evaluate function twice for each product and don't take into account the new setting. I don't want this, so I've made the solution differently.
The thing is that in some cases, people will want that all the products in the cart match with the condition for the fee to be added, not just one of the products.
Also, without the line
$this-&gt;productTags = array();
before the line:
$skip = $this-&gt;_replaceMainTags($formula-&gt;formula, $cart);
you'll end up with the fee being multiplied in the cart, like before.

I've made a new patch in order to take all this into account.
Download again the install package of the plugin with the same download link you used after your purchase, and install it on your website and you'll get the extra modifications.

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360701](#360701) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  Replied by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360701 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

great - now your solution works perfectly.
I am not good at programming php - so I will gladly use your solution.
Thank you for looking into this again - and thank you for your good work

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

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360957](#360957) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  Replied by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360957 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Sorry - I have another problem with the Cart Fee:

the additional Cart Fee (Dry Ice Surcharge) is not added to the Total. As an example, in the atttached screenshot the Total is shown as 264 €. However, the sum of Subtotal, Shipping and Dry Ice Surcharge is 315 €.

[ ![order.JPG](/forum/attachment/59260) ](/forum/attachment/59260 "order.JPG")

Could you please help again?

- [ ![order.JPG](/forum/attachment/59260) ](/forum/attachment/59260 "order.JPG") [ ](/forum/attachment/59260?download=1 "order.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODEwMC1jYXJ0LWZlZS1jb25kaXRpb24/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 6 months ago [\#360959](#360959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360959 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

Hi,

Can you check the settings of the cart fee plugin ? In there, there is a setting called "fee included". If that setting is turned on for your fee, the fee will appear on the cart, but it won't change the amount.
I'm suspecting that this setting is activated on your end.

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

2 years 6 months ago [\#360993](#360993) by [wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")  Replied by *[wurst@cellendes.com](/forum/user/81882-wurst-cellendes-com "View wurst@cellendes.com's Profile")* on topic *[Cart Fee Condition](/forum/25-install-update/908100-cart-fee-condition#360993 "-- HikaShop version -- : 5.04 -- Joomla version -- : 5.1.0 -- PHP version -- : 8.2.18 -- Browser(s) name and version -- : Firefox 125.0.2  we need to charge an additional fee of 50 € on checkout for certain products that need to be shipped on dry ice. I thought the Cart Fee plugin would be nice to accomplish this fee. So, I added a custom field for Products called &quot;dyriceshipment&quot; and entered a &quot;1&quot; in this field for products to be shipped on dry ice. I entered the following information in the Cart Fee plugin: Label: &quot;Dry Ice Surcharge&quot; Condition: &quot;{product.dryiceshipment}==1&quot; Formula: &quot;50&quot;  Apparently, this condition is always evaluated as &quot;false&quot;, no matter if the cart contains dry ice products or not, because the surcharge is never shown on Checkout. When I leave the condition empty the Dry Ice Surcharge is always added to the cart, no matter which products it contains.  Does anyone know what I am doing wrong??  Thanks in advance,")*

indeed, the seting "fee included" was turned on.
Now I turned it off and the additional fee is added as intended.
Thank you very much.

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

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