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

#   Product name restriction in manual shipping

##

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

Less More

- Posts: 171
- Thank you received: 9
-
-

10 years 6 months ago [\#239840](#239840) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  *[Product name restriction in manual shipping](/forum/28-shipping-methods/884457-product-name-restriction-in-manual-shipping#239840 "-- HikaShop version -- : 2.6.3  Hi!  I should need a plus field in manual shipping plugin in the restriction area. System should check wether all the items in the cart contains 'magazine' charset in name or in at least product code.  I thought on creating a clone manual shipping plugin by renaming the /plugins/hikashopshipping/manual folder and it's elements. But as I see all the restriction fields are loaded from another part of the Hikashop. 1.) How can I add there a new restriction field? 2.) If field is there, I think my problem could be checked by an SQL 'like' run, but I'm not sure about how to start it.  Any advices would be greatly appreciated! Thanks in advance!")* was created by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")*

-- HikaShop version -- : 2.6.3

Hi!

I should need a plus field in manual shipping plugin in the restriction area. System should check wether all the items in the cart contains 'magazine' charset in name or in at least product code.

I thought on creating a clone manual shipping plugin by renaming the /plugins/hikashopshipping/manual folder and it's elements. But as I see all the restriction fields are loaded from another part of the Hikashop.
1.) How can I add there a new restriction field?
2.) If field is there, I think my problem could be checked by an SQL 'like' run, but I'm not sure about how to start it.

Any advices would be greatly appreciated!
Thanks in advance!

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

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 6 months ago [\#239843](#239843) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product name restriction in manual shipping](/forum/28-shipping-methods/884457-product-name-restriction-in-manual-shipping#239843 "-- HikaShop version -- : 2.6.3  Hi!  I should need a plus field in manual shipping plugin in the restriction area. System should check wether all the items in the cart contains 'magazine' charset in name or in at least product code.  I thought on creating a clone manual shipping plugin by renaming the /plugins/hikashopshipping/manual folder and it's elements. But as I see all the restriction fields are loaded from another part of the Hikashop. 1.) How can I add there a new restriction field? 2.) If field is there, I think my problem could be checked by an SQL 'like' run, but I'm not sure about how to start it.  Any advices would be greatly appreciated! Thanks in advance!")*

Hi,

You need to base your plugin out of another shipping plugin like usps.
You need only two things from it:
- define an attribute $pluginConfig with the information for your option (you can see how extra fields can be added in the usps plugin code.
- implement the onShippingDisplay function, and in it, first call the parent function of the same name and then loop through the shipping methods and do your checks in $order-&gt;products based on what you have in your shipping methods extra options. You can look for example at how weight_approximation and dim_approximation are handled in that function of the usps plugin.

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

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

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