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

#   How to get shipping price

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 7 months ago [\#42235](#42235) by [crinch](/forum/user/6520-crinch "View crinch's Profile")  *[How to get shipping price](/forum/2-general-talk-about-hikashop/42235-how-to-get-shipping-price#42235 "Hi,  I have developed and configured a payment method which has a shipping method name. So I have a payment&#95;shipping&#95;methods as input and some cart values which file/function I should used to get the shipping price against this payment&#95;shipping&#95;method value. I am very much thankful to you for any suggestion/help. Thanks in advance.")* was created by *[crinch](/forum/user/6520-crinch "View crinch's Profile")*

Hi,

I have developed and configured a payment method which has a shipping method name. So I have a payment_shipping_methods as input and some cart values which file/function I should used to get the shipping price against this payment_shipping_method value. I am very much thankful to you for any suggestion/help. Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQyMjM1LWhvdy10by1nZXQtc2hpcHBpbmctcHJpY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

14 years 7 months ago [\#42402](#42402) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get shipping price](/forum/2-general-talk-about-hikashop/42235-how-to-get-shipping-price#42402 "Hi,  I have developed and configured a payment method which has a shipping method name. So I have a payment&#95;shipping&#95;methods as input and some cart values which file/function I should used to get the shipping price against this payment&#95;shipping&#95;method value. I am very much thankful to you for any suggestion/help. Thanks in advance.")*

You will need first to get the $cat object with the content of the whole cart and the $payment_shipping_method string with the name of your shipping method ("manual" for example). Then, you can do like that: Code:

$shippingClass = hikashop_get('class.shipping'); $shippingMethods = $shippingClass-&gt;getMethods($cart); foreach($shippingMethods as $shippingMethod){ if($shippingMethod-&gt;shipping_type==$payment_shipping_method){ echo $shippingMethod-&gt;shipping_price; break; } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQyMjM1LWhvdy10by1nZXQtc2hpcHBpbmctcHJpY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.201 seconds

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