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

#   Shipping Value Fro External Source

##

- **[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 3 months ago [\#245543](#245543) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#245543 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")* was created by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")*

-- HikaShop version -- : HikaShop Business 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7.07
-- Browser(s) name and version -- : Firefox 46

Hey

I have an API that returns the value of shipping based on a matrix/calculation.

I have set up a manual shipping method and set it to 0.

How can I set the value of shipping to the value I'm getting from the external API?

That's the response I get and Charge is the value of shipping :

client : MCR
product : Flyer_A5_120gsm_Un_1pp_Ld_Col_T
quantity : 2000
price : 9000
vat : N
supplier : Trilogy
email : t@t.com
boxqty : 500
**charge : 2000**
checksum : 2ca56d3d4c3cfb54b21ea4477d824f32
error : 0
reply :
stamp : 2016-07-12T13:43:56+01:00

Thanks

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 3 months ago [\#245546](#245546) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#245546 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Hi,

So do you know the matrix of fees and the ranges on which it bases it's calculations ? weight ? dimensions ? quantity ? price of the products ? etc).
You can either create many manual shipping methods, one for each cell of your matrix with the corresponding ranges setup and the system will filter the available shipping methods based on these ranges, or you can also develop a small shipping plugin to connect to that external API, provide it the necessary information and use the returned fee as price of the shipping method, like we did with the UPS, USPS, FedEx, etc plugins.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg1NTgwLXNoaXBwaW5nLXZhbHVlLWZyby1leHRlcm5hbC1zb3VyY2U/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 3 months ago [\#246165](#246165) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  Replied by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#246165 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Thanks for your reply.

It all makes sense but I think there is a more simple solution.

See in image attached - the costs are already being passed from the API to the custom field I created called Shipping.

I have created a shipping method with the value of zero and didn't assign it to any vendor. All I am trying to do is pass this value to the actual shipping method. So Shipping Costs = value from shipping custom field.

Hope that makes more sese ![;)](/media/kunena/emoticons/11.png ";)")

Thanks

- [ ![Screen&#95;Shot&#95;2016-07-23&#95;at&#95;15&#95;02&#95;09.jpg](/forum/attachment/32760) ](/forum/attachment/32760 "...t&#95;15&#95;02&#95;09.jpg") [ ](/forum/attachment/32760?download=1 "...t&#95;15&#95;02&#95;09.jpg")
- [ ![Screen&#95;Shot&#95;2016-07-23&#95;at&#95;15&#95;00&#95;41.jpg](/forum/attachment/32761) ](/forum/attachment/32761 "...t&#95;15&#95;00&#95;41.jpg") [ ](/forum/attachment/32761?download=1 "...t&#95;15&#95;00&#95;41.jpg")

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 3 months ago [\#246175](#246175) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#246175 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Hi,

In that case, you can create a small plugin which will loop through the products array in the cart, sum the shipping fee in each, and add the total as an "additional" fee.
You can base your plugin off of this one which do something quite similar :
[ www.hikashop.com/forum/taxes/873285-fix-tax-import.html#190511](http://www.hikashop.com/forum/taxes/873285-fix-tax-import.html#190511)
It's indeed much simpler if you handle it that way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg1NTgwLXNoaXBwaW5nLXZhbHVlLWZyby1leHRlcm5hbC1zb3VyY2U/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 2 months ago [\#246658](#246658) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  Replied by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#246658 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Thanks that worked.

Although, is there a way to now pass this value to the real shipping field?

- [ ![Screen&#95;Shot&#95;2016-07-29&#95;at&#95;10&#95;04&#95;49.jpg](/forum/attachment/32870) ](/forum/attachment/32870 "...t&#95;10&#95;04&#95;49.jpg") [ ](/forum/attachment/32870?download=1 "...t&#95;10&#95;04&#95;49.jpg")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 2 months ago [\#246662](#246662) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#246662 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Hello,
To do that the solution can be to directly edit the code of the "Show_additionnal" file of the "Order" view of your back-end template via "Hikashop-&gt;Display-&gt;Views".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg1NTgwLXNoaXBwaW5nLXZhbHVlLWZyby1leHRlcm5hbC1zb3VyY2U/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 2 months ago [\#246753](#246753) by [tariaki](/forum/user/43507-tariaki "View tariaki's Profile")  Replied by *[tariaki](/forum/user/43507-tariaki "View tariaki's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#246753 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Hey Mohamed

Thanks for your reply.

However I am confused with your advice. To clarify I want the 'Standard Shipping' Value to pass to the 'Shipping' value.

Can you please give some more details on how to edit the view file in order to acheive the above.

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 2 months ago [\#246763](#246763) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping Value Fro External Source](/forum/28-shipping-methods/885580-shipping-value-fro-external-source#246763 "-- HikaShop version -- : HikaShop Business 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.07 -- Browser(s) name and version -- : Firefox 46  Hey  I have an API that returns the value of shipping based on a matrix/calculation.  I have set up a manual shipping method and set it to 0.  How can I set the value of shipping to the value I'm getting from the external API?  That's the response I get and Charge is the value of shipping :  client : MCR product : Flyer&#95;A5&#95;120gsm&#95;Un&#95;1pp&#95;Ld&#95;Col&#95;T quantity : 2000 price : 9000 vat : N supplier : Trilogy email : boxqty : 500 charge : 2000 checksum : 2ca56d3d4c3cfb54b21ea4477d824f32 error : 0 reply : stamp : 2016-07-12T13:43:56+01:00  Thanks")*

Hi,

What Mohamed suggested is that you edit the view from your screenshot to not display the shipping row, only your standard shipping row.
You can even do it by just adding such CSS to your backend HikaShop CSS file in the HikaShop configuration:
.hikashop_order_additional_shipping{ display:none; }

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

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

[](#top)
