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

#   Display Per Product Shipping Cost on Product page

##

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

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

12 years 7 months ago [\#151069](#151069) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  *[Display Per Product Shipping Cost on Product page](/forum/28-shipping-methods/867224-display-per-product-shipping-cost-on-product-page#151069 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- : 5.4.26  Using manual shipping with per product shipping turned on.  I'd like to display, if set, the per product price and/or fee value on the actual product page itself.  I don't see any option to do this but may be I missed something.  I've searched around and as far as I can tell this may not be possible because shipping cannot be calculated until an address has been set (e.g. in checkout or if logged in). Right now the best I can come up with is enter that as part of the product description.  I didn't see how a custom field would work either. I tried custom text but couldn't get it to so I could do it per product. Also I dislike the idea of double entry. I'd much rather echo out the first order price/fee values if set.  Far as I can tell this may only be possible with a custom view.")* was created by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")*

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- : 5.4.26

Using manual shipping with per product shipping turned on.

I'd like to display, if set, the per product price and/or fee value on the actual product page itself.

I don't see any option to do this but may be I missed something.

I've searched around and as far as I can tell this may not be possible because shipping cannot be calculated until an address has been set (e.g. in checkout or if logged in). Right now the best I can come up with is enter that as part of the product description.

I didn't see how a custom field would work either. I tried custom text but couldn't get it to so I could do it per product. Also I dislike the idea of double entry. I'd much rather echo out the first order price/fee values if set.

Far as I can tell this may only be possible with a custom view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY3MjI0LWRpc3BsYXktcGVyLXByb2R1Y3Qtc2hpcHBpbmctY29zdC1vbi1wcm9kdWN0LXBhZ2U/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 7 months ago [\#151168](#151168) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Per Product Shipping Cost on Product page](/forum/28-shipping-methods/867224-display-per-product-shipping-cost-on-product-page#151168 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- : 5.4.26  Using manual shipping with per product shipping turned on.  I'd like to display, if set, the per product price and/or fee value on the actual product page itself.  I don't see any option to do this but may be I missed something.  I've searched around and as far as I can tell this may not be possible because shipping cannot be calculated until an address has been set (e.g. in checkout or if logged in). Right now the best I can come up with is enter that as part of the product description.  I didn't see how a custom field would work either. I tried custom text but couldn't get it to so I could do it per product. Also I dislike the idea of double entry. I'd much rather echo out the first order price/fee values if set.  Far as I can tell this may only be possible with a custom view.")*

Hi,

This is actually not possible by default, you will have to add some custom code to display this value.
Code like: Code:

&lt;?php $db = JFactory::getDBO(); $db-&gt;setQuery('SELECT * FROM '.hikashop_table('shipping_price').' WHERE shipping_price_ref_id = '.(int)$this-&gt;element-&gt;product_id); $shippingPrices = $db-&gt;loadObjectList(); $currencyHelper = hikashop_get('helper.currency'); $mainCurr = $currencyHelper-&gt;mainCurrency(); $app = JFactory::getApplication(); $currCurrency = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.currency_id', $mainCurr ); foreach($shippingPrices as $shippingPrice){ $priveValue = (float)$shippingPrice-&gt;shipping_price_value + (float)$shippingPrice-&gt;shipping_fee_value; echo $currencyHelper-&gt;format($priveValue,$currCurrency); } ?&gt;

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

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