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

#   Dynamic Shipping Price - From external API

##

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

Less More

- Posts: 57
- Thank you received: 1
-
-

10 years 1 month ago [\#250587](#250587) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  *[Dynamic Shipping Price - From external API](/forum/28-shipping-methods/886558-dynamic-shipping-price-from-external-api#250587 "-- HikaShop version -- : Hikashop Business 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  Hey,  My site is using an external API to create the product prices and shipping costs. Is it possible to pass the value of shipping cost that I receive from the API to the price field of the Manual Shipping Method plugin?  If s, which files do I need to edit?  Thanks")* was created by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")*

-- HikaShop version -- : Hikashop Business 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6

Hey,

My site is using an external API to create the product prices and shipping costs.
Is it possible to pass the value of shipping cost that I receive from the API to the price field of the Manual Shipping Method plugin?

If s, which files do I need to edit?

Thanks

- [ ![Screen&#95;Shot&#95;2016-09-22&#95;at&#95;16&#95;55&#95;49.jpg](/forum/attachment/33588) ](/forum/attachment/33588 "...t&#95;16&#95;55&#95;49.jpg") [ ](/forum/attachment/33588?download=1 "...t&#95;16&#95;55&#95;49.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg2NTU4LWR5bmFtaWMtc2hpcHBpbmctcHJpY2UtZnJvbS1leHRlcm5hbC1hcGk/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: 86556
- Thank you received: 14304
-
-

10 years 1 month ago [\#250639](#250639) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dynamic Shipping Price - From external API](/forum/28-shipping-methods/886558-dynamic-shipping-price-from-external-api#250639 "-- HikaShop version -- : Hikashop Business 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  Hey,  My site is using an external API to create the product prices and shipping costs. Is it possible to pass the value of shipping cost that I receive from the API to the price field of the Manual Shipping Method plugin?  If s, which files do I need to edit?  Thanks")*

Hi,

It's possible yes but the solution will depend on how the shipping price vary.
Do you have it calculated dynamically based on what is in the cart during the checkout ?
In that case, I would recommend to develop a small shipping plugin based on the manual shipping plugin and implement the onShippingDisplay function to set the price of the shipping methods dynamically.
You can read more about that here:
[ www.hikashop.com/support/documentation/6...ml#onShippingDisplay](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onShippingDisplay)

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

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

Less More

- Posts: 57
- Thank you received: 1
-
-

10 years 1 month ago [\#250642](#250642) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  Replied by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")* on topic *[Dynamic Shipping Price - From external API](/forum/28-shipping-methods/886558-dynamic-shipping-price-from-external-api#250642 "-- HikaShop version -- : Hikashop Business 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  Hey,  My site is using an external API to create the product prices and shipping costs. Is it possible to pass the value of shipping cost that I receive from the API to the price field of the Manual Shipping Method plugin?  If s, which files do I need to edit?  Thanks")*

Hey Nicolas

Thanks for your reply.
The shipping price is being calculated before the checkout, on the product page. The user is choosing from available options then clicks 'Show Price' (see attached) and that's when the shipping cost is being calculated.

I would like to pass this value to the Manual Shipping plugin.

Possible?

- [ ![before-show-price-clicked.jpg](/forum/attachment/33610) ](/forum/attachment/33610 "...ce-clicked.jpg") [ ](/forum/attachment/33610?download=1 "...ce-clicked.jpg")
- [ ![after-show-price-clicked.jpg](/forum/attachment/33611) ](/forum/attachment/33611 "...ce-clicked.jpg") [ ](/forum/attachment/33611?download=1 "...ce-clicked.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg2NTU4LWR5bmFtaWMtc2hpcHBpbmctcHJpY2UtZnJvbS1leHRlcm5hbC1hcGk/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: 86556
- Thank you received: 14304
-
-

10 years 1 month ago [\#250663](#250663) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dynamic Shipping Price - From external API](/forum/28-shipping-methods/886558-dynamic-shipping-price-from-external-api#250663 "-- HikaShop version -- : Hikashop Business 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  Hey,  My site is using an external API to create the product prices and shipping costs. Is it possible to pass the value of shipping cost that I receive from the API to the price field of the Manual Shipping Method plugin?  If s, which files do I need to edit?  Thanks")*

Hi,

Then I would still recommend to develop a small shipping plugin based on the manual shipping plugin and implement the onShippingDisplay function to set the price of the shipping methods dynamically based on the custom item fields values of the products in the cart.
That's for the checkout. For the product page, if you want to display a shipping value after the user selects stuff in the custom fields, you would have to add custom javascript to the file "show_block_custom_item" via the menu Display&gt;Views.

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

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