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

#   Filter shipping methods based on product field

##

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

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 6 months ago [\#14624](#14624) by [emilio](/forum/user/1008-emilio "View emilio's Profile")  *[Filter shipping methods based on product field](/forum/4-how-to/14624-filter-shipping-methods-based-on-product-field#14624 "Hi Nicolas, I am sure it is possible with a little bit of coding but that's what I am missing.  I have several shipping methods. What I need is presenting only a few to the shopper depending upon a characteristic of the products on cart. In fact, it suffices if only one of those products on cart has that special characteristic. I can add a field on product table, say 'characteristic' being 'yes' or 'no'.  I suppose I have to create a new shipping plugin and filter on onShippingDisplay function. If only one of the chosen products equals to 'yes' the new shipping method should be chosen (and then the restrictions should be calculated)  Would you help me on the code needed?  Thanks in advance Emilio")* was created by *[emilio](/forum/user/1008-emilio "View emilio's Profile")*

Hi Nicolas,
I am sure it is possible with a little bit of coding but that's what I am missing.

I have several shipping methods. What I need is presenting only a few to the shopper depending upon a characteristic of the products on cart. In fact, it suffices if only one of those products on cart has that special characteristic. I can add a field on product table, say 'characteristic' being 'yes' or 'no'.

I suppose I have to create a new shipping plugin and filter on onShippingDisplay function. If only one of the chosen products equals to 'yes' the new shipping method should be chosen (and then the restrictions should be calculated)

Would you help me on the code needed?

Thanks in advance
Emilio

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NjI0LWZpbHRlci1zaGlwcGluZy1tZXRob2RzLWJhc2VkLW9uLXByb2R1Y3QtZmllbGQ/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

15 years 6 months ago [\#14626](#14626) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Filter shipping methods based on product field](/forum/4-how-to/14624-filter-shipping-methods-based-on-product-field#14626 "Hi Nicolas, I am sure it is possible with a little bit of coding but that's what I am missing.  I have several shipping methods. What I need is presenting only a few to the shopper depending upon a characteristic of the products on cart. In fact, it suffices if only one of those products on cart has that special characteristic. I can add a field on product table, say 'characteristic' being 'yes' or 'no'.  I suppose I have to create a new shipping plugin and filter on onShippingDisplay function. If only one of the chosen products equals to 'yes' the new shipping method should be chosen (and then the restrictions should be calculated)  Would you help me on the code needed?  Thanks in advance Emilio")*

Why no just use the weight or volume restrictions ?
You could set a volume in the products which will trigger the display of the additional shipping methods. Then, in those shipping methods, you set a volume restriction so that they are only displayed when there is a volume in the cart.

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

15 years 6 months ago [\#14627](#14627) by [emilio](/forum/user/1008-emilio "View emilio's Profile")  Replied by *[emilio](/forum/user/1008-emilio "View emilio's Profile")* on topic *[Re: Filter shipping methods based on product field](/forum/4-how-to/14624-filter-shipping-methods-based-on-product-field#14627 "Hi Nicolas, I am sure it is possible with a little bit of coding but that's what I am missing.  I have several shipping methods. What I need is presenting only a few to the shopper depending upon a characteristic of the products on cart. In fact, it suffices if only one of those products on cart has that special characteristic. I can add a field on product table, say 'characteristic' being 'yes' or 'no'.  I suppose I have to create a new shipping plugin and filter on onShippingDisplay function. If only one of the chosen products equals to 'yes' the new shipping method should be chosen (and then the restrictions should be calculated)  Would you help me on the code needed?  Thanks in advance Emilio")*

It could be, not sure. We calculate shipping rates based upon a combination of weight and volume. You are talking about assign an outrange volume to the product so that only that would meet the shipping rate, aren't you?

I'll think on it. Just to have a second alternative, what I am describing, would it be possible?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NjI0LWZpbHRlci1zaGlwcGluZy1tZXRob2RzLWJhc2VkLW9uLXByb2R1Y3QtZmllbGQ/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

15 years 6 months ago [\#14643](#14643) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Filter shipping methods based on product field](/forum/4-how-to/14624-filter-shipping-methods-based-on-product-field#14643 "Hi Nicolas, I am sure it is possible with a little bit of coding but that's what I am missing.  I have several shipping methods. What I need is presenting only a few to the shopper depending upon a characteristic of the products on cart. In fact, it suffices if only one of those products on cart has that special characteristic. I can add a field on product table, say 'characteristic' being 'yes' or 'no'.  I suppose I have to create a new shipping plugin and filter on onShippingDisplay function. If only one of the chosen products equals to 'yes' the new shipping method should be chosen (and then the restrictions should be calculated)  Would you help me on the code needed?  Thanks in advance Emilio")*

Yes of course. You could do that as well but it will require that you know PHP.

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

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

[](#top)
