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

#   Calculation for the delivery cost

##

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 4 months ago [\#57067](#57067) by [shanwell](/forum/user/6685-shanwell "View shanwell's Profile")  *[Calculation for the delivery cost](/forum/2-general-talk-about-hikashop/57067-calculation-for-the-delivery-cost#57067 "Hi Nicolas,  when I tested buying two different items, the calculation of the delivery cost in the checkout is slightly different, please see the attached screen shots. Delivery for one item = $ 15, two items = $29.99  I am using &quot;shipping price per product&quot;, your solution last time fixed the calculation for buying several quantity of the same item.  Try to change the line: 'price' =&gt; (int)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product, to: 'price' =&gt; (float)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product,  in the file plugins/hikashopshipping/manual/manual.php  Is there other thing that we need to change within the codes?")* was created by *[shanwell](/forum/user/6685-shanwell "View shanwell's Profile")*

Hi Nicolas,

when I tested buying two different items, the calculation of the delivery cost in the checkout is slightly different, please see the attached screen shots. Delivery for one item = $ 15, two items = $29.99

I am using "shipping price per product", your solution last time fixed the calculation for buying several quantity of the same item.

*Try to change the line:
'price' =&gt; (int)$rate-&gt;shipping\_params-&gt;shipping\_price\_per\_product,
to:
'price' =&gt; (float)$rate-&gt;shipping\_params-&gt;shipping\_price\_per\_product,

in the file plugins/hikashopshipping/manual/manual.php*

Is there other thing that we need to change within the codes?

- [ ![s2.png](/forum/attachment/4694) ](/forum/attachment/4694 "s2.png") [ ](/forum/attachment/4694?download=1 "s2.png")
- [ ![s3&#95;2012-07-11.png](/forum/attachment/4695) ](/forum/attachment/4695 "s3&#95;2012-07-11.png") [ ](/forum/attachment/4695?download=1 "s3&#95;2012-07-11.png")

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

14 years 4 months ago [\#57103](#57103) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Calculation for the delivery cost](/forum/2-general-talk-about-hikashop/57067-calculation-for-the-delivery-cost#57103 "Hi Nicolas,  when I tested buying two different items, the calculation of the delivery cost in the checkout is slightly different, please see the attached screen shots. Delivery for one item = $ 15, two items = $29.99  I am using &quot;shipping price per product&quot;, your solution last time fixed the calculation for buying several quantity of the same item.  Try to change the line: 'price' =&gt; (int)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product, to: 'price' =&gt; (float)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product,  in the file plugins/hikashopshipping/manual/manual.php  Is there other thing that we need to change within the codes?")*

Hi shanwell,

These difference can come from the calcul of the shipping fee which is based on the taxes, on on the product price.
In this example, is the product price with taxes or without ?

Can you give me the configuration of your taxes, and shipping method.

Maybe you can try to adapt the percentage of the shipping fee, for example set 12,001% instead of 12%, to counter this rounding.

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

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

Less More

- Posts: 27
- Thank you received: 1
-
-

14 years 1 month ago [\#67590](#67590) by [nicashdown](/forum/user/2793-nicashdown "View nicashdown's Profile")  Replied by *[nicashdown](/forum/user/2793-nicashdown "View nicashdown's Profile")* on topic *[Re: Calculation for the delivery cost](/forum/2-general-talk-about-hikashop/57067-calculation-for-the-delivery-cost#67590 "Hi Nicolas,  when I tested buying two different items, the calculation of the delivery cost in the checkout is slightly different, please see the attached screen shots. Delivery for one item = $ 15, two items = $29.99  I am using &quot;shipping price per product&quot;, your solution last time fixed the calculation for buying several quantity of the same item.  Try to change the line: 'price' =&gt; (int)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product, to: 'price' =&gt; (float)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product,  in the file plugins/hikashopshipping/manual/manual.php  Is there other thing that we need to change within the codes?")*

Bonjour, je ne sais pas si je suis au bon endroit mais je cherche a utiliser le plugin "HikaShop collect on delivery payment" qui fonctionne bien. Je suis toutefois coincé car ce que mon client aimerait c'est que si la commande est en-dessous du 600 CHF ca applique les tarifs selon les poids (réussi à configurer facilement).

Par contre en-dessus de 600 CHF, ces méthodes de livraisons doivent disparaître et afficher que l'option (dès 600 CHF livraison gratuite).

Merci d'avance pour votre aide.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU3MDY3LWNhbGN1bGF0aW9uLWZvci10aGUtZGVsaXZlcnktY29zdD90bXBsPW1hcmtkb3du) 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: 86555
- Thank you received: 14304
-
-

14 years 1 month ago [\#67873](#67873) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Calculation for the delivery cost](/forum/2-general-talk-about-hikashop/57067-calculation-for-the-delivery-cost#67873 "Hi Nicolas,  when I tested buying two different items, the calculation of the delivery cost in the checkout is slightly different, please see the attached screen shots. Delivery for one item = $ 15, two items = $29.99  I am using &quot;shipping price per product&quot;, your solution last time fixed the calculation for buying several quantity of the same item.  Try to change the line: 'price' =&gt; (int)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product, to: 'price' =&gt; (float)$rate-&gt;shipping&#95;params-&gt;shipping&#95;price&#95;per&#95;product,  in the file plugins/hikashopshipping/manual/manual.php  Is there other thing that we need to change within the codes?")*

Bonjour,

Il suffit de mettre un prix maximum de 600 CHF sur vos méthodes de livraison actuelles et de créer une nouvelle méthode de livraison "gratuite" avec un minimum de 600 CHF.
Vérifiez bien que l'option "inclure le prix des produits virtuels" soit activée poru vos méthodes de livraison et voilà.

The following user(s) said Thank You: [nicashdown](/forum/user/2793-nicashdown "View nicashdown's Profile")

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

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