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

#   Custom shipping plugin

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 3 months ago [\#210409](#210409) by [Impress51](/forum/user/34807-impress51 "View Impress51's Profile")  *[Custom shipping plugin](/forum/28-shipping-methods/878543-custom-shipping-plugin#210409 "-- HikaShop version -- : 2.5.0 Business -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Firefox 39.0  Hi,  I need to create a custom shipping plugin with the following properties:  - 4 shipping zones - base price for every x items and individual price for other items, (example if x = 6, shipping for 8 products would be 2xbase + 6xindividual, shipping for 5 products would be 1xbase + 4xindividual) - base price, x number of items and individual price are dependent on the value selected in a custom field and upon the shipping zone  Is this possible within hikashop or do I need to create a custom shipping plugin? If so, which files do I need to look at?  Kind Regards  Jaz")* was created by *[Impress51](/forum/user/34807-impress51 "View Impress51's Profile")*

-- HikaShop version -- : 2.5.0 Business
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Firefox 39.0

Hi,

I need to create a custom shipping plugin with the following properties:

- 4 shipping zones
- base price for every x items and individual price for other items, (example if x = 6, shipping for 8 products would be 2xbase + 6xindividual, shipping for 5 products would be 1xbase + 4xindividual)
- base price, x number of items and individual price are dependent on the value selected in a custom field and upon the shipping zone

Is this possible within hikashop or do I need to create a custom shipping plugin? If so, which files do I need to look at?

Kind Regards

Jaz

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

Less More

- Posts: 86359
- Thank you received: 14293
-
-

11 years 3 months ago [\#210411](#210411) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom shipping plugin](/forum/28-shipping-methods/878543-custom-shipping-plugin#210411 "-- HikaShop version -- : 2.5.0 Business -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Firefox 39.0  Hi,  I need to create a custom shipping plugin with the following properties:  - 4 shipping zones - base price for every x items and individual price for other items, (example if x = 6, shipping for 8 products would be 2xbase + 6xindividual, shipping for 5 products would be 1xbase + 4xindividual) - base price, x number of items and individual price are dependent on the value selected in a custom field and upon the shipping zone  Is this possible within hikashop or do I need to create a custom shipping plugin? If so, which files do I need to look at?  Kind Regards  Jaz")*

Hi,

That would require a custom shipping plugin.
You can base yourself on the plugins/hikashopshipping/manual/ plugin to create a new shipping plugin.
You'll see that it almost doesn't have any code as it extends from the HikaShopShippingPlugin class that you'll find in the administrator/components/com_hikashop/helpers/helper.php

So in your plugin, you can override the methods of that HikaShopShippingPlugin class in order to set the price you want for it based on the content of the cart.
You'll want to override the onShippingDisplay method in your plugin.

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

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