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

#   Plugin trigger method to change cart data on checkout

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

8 years 6 months ago -  8 years 6 months ago [\#293029](#293029) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Plugin trigger method to change cart data on checkout](/forum/27-checkout/894779-plugin-trigger-method-to-change-cart-data-on-checkout#293029 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1  Hi,  I want to make a group of products that it's not going to be counted in the shipping calculation cost.  But I don't know which plugin trigger I have to use.  For example:  If I have 2 shipping methods:  Method A: Available from 0 € to 100 €  Method B: Available from 100€  In the cart I have 2 products:  Product A - Price: 50€  Product B - Price: 100€  In normal conditions, it only has to show the Method B.  But I want the price of Product B to not be count in the total calculation (only for shipping costs), so method A will be the one available to be selected.  I have searched in the Hikashop Documentation which method use and I didn't found anything that works exactly for this example.  What I have to do?  Thanks in advance.  -- Victor")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.1

Hi,

I want to make a group of products that it's not going to be counted in the shipping calculation cost.

But I don't know which plugin trigger I have to use.

For example:

If I have 2 shipping methods:

Method A: Available from 0 € to 100 €

Method B: Available from 100€

In the cart I have 2 products:

Product A - Price: 50€

Product B - Price: 100€

In normal conditions, it only has to show the Method B.

But I want the price of Product B to not be count in the total calculation (only for shipping costs), so method A will be the one available to be selected.

I have searched in the Hikashop Documentation which method use and I didn't found anything that works exactly for this example.

What I have to do?

Thanks in advance.

--
Victor

Last edit: 8 years 6 months ago by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile").

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

8 years 6 months ago [\#293063](#293063) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Plugin trigger method to change cart data on checkout](/forum/27-checkout/894779-plugin-trigger-method-to-change-cart-data-on-checkout#293063 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.1  Hi,  I want to make a group of products that it's not going to be counted in the shipping calculation cost.  But I don't know which plugin trigger I have to use.  For example:  If I have 2 shipping methods:  Method A: Available from 0 € to 100 €  Method B: Available from 100€  In the cart I have 2 products:  Product A - Price: 50€  Product B - Price: 100€  In normal conditions, it only has to show the Method B.  But I want the price of Product B to not be count in the total calculation (only for shipping costs), so method A will be the one available to be selected.  I have searched in the Hikashop Documentation which method use and I didn't found anything that works exactly for this example.  What I have to do?  Thanks in advance.  -- Victor")*

Hi,

You can move product B and product A in two different warehouses (that you can configure in the System&gt;Warehouse menu.
Then, you configure you two shipping methods for the warehouse of the product A and you create a free shipping method for the warehouse of product B. That way, the products will be grouped based on their warehouse and each group will have its own shipping methods selection on the checkout.

More simply, you could just set a weight of 0 for that product B and a weight for product A and turn off the "include virtual product prices" setting in your shipping methods so that the price restrictions will ignore product B.

If you want to not do that and use a plugin instead, you could create a new shipping plugin based on the manual shipping plugin and add in it a trigger onShippingDisplay which would be based on the onShippingDisplay function in administrator/components/com_hikashop/helpers/helper.php where you would change the conditions on the prices.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

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

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