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

#   Show shipping costs on product detail page

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

10 years 9 months ago [\#229314](#229314) by [perry](/forum/user/40751-perry "View perry's Profile")  *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#229314 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")* was created by *[perry](/forum/user/40751-perry "View perry's Profile")*

-- url of the page with the problem -- : [ 46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3](http://46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3)
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.z

Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.

I would like to display the shipping costs on the product page (show_default.php). Can somebody point me in the right direction on how to do this?

i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODIxODEtc2hvdy1zaGlwcGluZy1jb3N0cy1vbi1wcm9kdWN0LWRldGFpbC1wYWdlP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#229347](#229347) 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 *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#229347 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")*

Hello,

> I would like to display the shipping costs on the product page (show\_default.php). Can somebody point me in the right direction on how to do this?

There is actually no option to do that as shipping methods can also have restrictions on the order details as the "Shipping address/Order total weight/...".
If you already know the price of your shipping price the solution will be to directly add it on the description of your product, or display a shipping price regarding the ID of the product through the "Show_default" file of the "Product" view of your front-end template via "Hikashop-&gt;Dispay-&gt;Views"

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

10 years 9 months ago [\#229376](#229376) by [perry](/forum/user/40751-perry "View perry's Profile")  Replied by *[perry](/forum/user/40751-perry "View perry's Profile")* on topic *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#229376 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")*

Dear Mohamed,

Thanx for your reply, how unsatisfying it may be. Can you at least point me to the files that are used during the checkout to calculate the shipping. It should be possible to use the information that is available from the hikashop database tables.

I'm thinking: retrieve the shipping data and create a select element with the shipping options. In our case this would be a simple list of 3 options: Netherlands, Europe, Rest of the world. At the moment the size and weight do not matter for us. (We ship everything a bit more expensive because the products are then insured).

Now i could implement this in my own crappy way, but i would rather do it nicely so it can be used by other people as well.

If you could point me to the files / functions used by the checkout to calculate the shipping costs that would probably save me at least an hour of searching ![:)](/media/kunena/emoticons/3.png ":)")

All the best,

Perry

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 9 months ago -  10 years 9 months ago [\#229406](#229406) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#229406 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")*

Hello,

I attached a plugin file, that can help you to develop a plugin.
There are lots of comments, in order to help you get required data and understand easily.

I'm still here, if you have any question.

Regards,

*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 10 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[Pad-Zilla](/forum/user/44996-pad-zilla "View Pad-Zilla's Profile")**
- [![Pad-Zilla's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44996-pad-zilla "View Pad-Zilla's Profile")
- [ Offline](/forum/user/44996-pad-zilla)

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 2 months ago [\#249742](#249742) by [Pad-Zilla](/forum/user/44996-pad-zilla "View Pad-Zilla's Profile")  Replied by *[Pad-Zilla](/forum/user/44996-pad-zilla "View Pad-Zilla's Profile")* on topic *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#249742 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")*

You really need to add this as an option for your customers. For some people it seems dishonest to NOT show shipping costs in the actually cart calculations - BEFORE they get to the payment section.

This would be a very good option for us.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODIxODEtc2hvdy1zaGlwcGluZy1jb3N0cy1vbi1wcm9kdWN0LWRldGFpbC1wYWdlP3RtcGw9bWFya2Rvd24=) 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 2 months ago [\#249744](#249744) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#249744 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")*

Hi,

The thing is that there is already this option. The plugin that Philippe gave is actually by default in HikaShop.
It can display the shipping prices of the product on the product page.
This only requires configuring the shipping prices in the products.
So there is no code to add.
However, that is to be used for when you have shipping prices per products. If the shipping prices are calculated dynamically by Fedex/UPS/USPS/etc or that it depends on the total weight/dimensions of the cart and/or the address of the customer, you can automatically display shipping prices on the product page as you don't know the fees in advance.
In such cases, you can potentially create custom product fields to enter an approximate for each product and have it displayed on the product page.
So these solutions cover most needs already.
And for something more advanced which could display the shipping prices based on dynamic calculations, I'm afraid that the only possible solution is to develop a custom plugin on a case by case basis.

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

6 years 7 months ago [\#316817](#316817) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show shipping costs on product detail page](/forum/26-product-category-display/882181-show-shipping-costs-on-product-detail-page#316817 "-- url of the page with the problem -- :   46.17.6.79/~xpozai/index.php/nl/all-hats/product/3-hat-3  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.z  Using hika shop essentials for my wife's website. I like the majority of the code, but since i'm just starting not everything is totally clear.  I would like to display the shipping costs on the product page (show&#95;default.php). Can somebody point me in the right direction on how to do this?  i'm a good php back-end programmer (5+ years laravel and symfony) and now joomla very well. So i'm not scared of making plugin or something like that.")*

Hi,

Note that there is now a "shipping estimation" plugin which can do dynamic display of shipping fees with shipping plugins like UPS/UPS/Fedex, etc:
[ www.hikashop.com/marketplace/product/244...tion-by-obsidev.html](https://www.hikashop.com/marketplace/product/244-shippingestimation-by-obsidev.html)

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