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

#   Display Shipping Cost on Product Page

##

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

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 6 months ago [\#154584](#154584) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  *[Display Shipping Cost on Product Page](/forum/28-shipping-methods/867909-display-shipping-cost-on-product-page#154584 "In the same idea of this request   www.hikashop.com/forum/shipping-methods/...on-product-page.html  I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country. I am using Manual Shipping with different costs per min/max product weights.  I would need to query the table hikashop&#95;shipping, but the min/max product weights are &quot;compiled&quot; in the variable shipping&#95;params, which make it difficult to manipulate.  Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?")* was created by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")*

In the same idea of this request [ www.hikashop.com/forum/shipping-methods/...on-product-page.html](http://www.hikashop.com/forum/shipping-methods/867224-display-per-product-shipping-cost-on-product-page.html)

I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country.
I am using Manual Shipping with different costs per min/max product weights.

I would need to query the table hikashop_shipping, but the min/max product weights are "compiled" in the variable shipping_params, which make it difficult to manipulate.

Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?

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

Less More

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

12 years 6 months ago [\#154610](#154610) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Shipping Cost on Product Page](/forum/28-shipping-methods/867909-display-shipping-cost-on-product-page#154610 "In the same idea of this request   www.hikashop.com/forum/shipping-methods/...on-product-page.html  I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country. I am using Manual Shipping with different costs per min/max product weights.  I would need to query the table hikashop&#95;shipping, but the min/max product weights are &quot;compiled&quot; in the variable shipping&#95;params, which make it difficult to manipulate.  Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?")*

Hi,

There is no such easy to use function. That would require code similar to that of the other thread but you would have to load all the shipping methods for the zone, and then filter out the shipping methods on the weight by checking each one against the weight of the product with PHP code.

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

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

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 6 months ago [\#154722](#154722) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  Replied by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")* on topic *[Display Shipping Cost on Product Page](/forum/28-shipping-methods/867909-display-shipping-cost-on-product-page#154722 "In the same idea of this request   www.hikashop.com/forum/shipping-methods/...on-product-page.html  I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country. I am using Manual Shipping with different costs per min/max product weights.  I would need to query the table hikashop&#95;shipping, but the min/max product weights are &quot;compiled&quot; in the variable shipping&#95;params, which make it difficult to manipulate.  Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?")*

Understood. Could you please guide me in hikashop files to find reference php code?
Which files and which lines are relevant?

Thanks.
Max.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY3OTA5LWRpc3BsYXktc2hpcHBpbmctY29zdC1vbi1wcm9kdWN0LXBhZ2U/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
-
-
-

12 years 6 months ago [\#154730](#154730) 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 *[Display Shipping Cost on Product Page](/forum/28-shipping-methods/867909-display-shipping-cost-on-product-page#154730 "In the same idea of this request   www.hikashop.com/forum/shipping-methods/...on-product-page.html  I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country. I am using Manual Shipping with different costs per min/max product weights.  I would need to query the table hikashop&#95;shipping, but the min/max product weights are &quot;compiled&quot; in the variable shipping&#95;params, which make it difficult to manipulate.  Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?")*

Hello Max,
If you want it to appear on you product page, the solution will be to add your code through the "show_default" file of the "product" view of your front-end template via "Hikashop-&gt;Display-&gt;Views".

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

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

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 6 months ago [\#154850](#154850) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  Replied by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")* on topic *[Display Shipping Cost on Product Page](/forum/28-shipping-methods/867909-display-shipping-cost-on-product-page#154850 "In the same idea of this request   www.hikashop.com/forum/shipping-methods/...on-product-page.html  I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country. I am using Manual Shipping with different costs per min/max product weights.  I would need to query the table hikashop&#95;shipping, but the min/max product weights are &quot;compiled&quot; in the variable shipping&#95;params, which make it difficult to manipulate.  Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?")*

Thanks Mohamed I got the view.
Now can you let me know in which hikashop file I can find reference PHP code for the calculation of shipping costs?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 6 months ago [\#155398](#155398) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Shipping Cost on Product Page](/forum/28-shipping-methods/867909-display-shipping-cost-on-product-page#155398 "In the same idea of this request   www.hikashop.com/forum/shipping-methods/...on-product-page.html  I would like to display not the per product shipping cost, but the actual shipping cost of the product to a chosen country. I am using Manual Shipping with different costs per min/max product weights.  I would need to query the table hikashop&#95;shipping, but the min/max product weights are &quot;compiled&quot; in the variable shipping&#95;params, which make it difficult to manipulate.  Is there an existing function or class that gives the shipping cost knowing a destination country and the product weight?")*

Hi,

I think that the code you want is in the "administrator/components/com_hikashop/helper/helper.php", in the class "hikashopShippingPlugin()". But the prices can be set depending on the shipping method by the shipping provider.

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

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