Calculation for the delivery cost

  • Posts: 31
  • Thank you received: 0
12 years 4 months ago #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 "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' => (int)$rate->shipping_params->shipping_price_per_product,
to:
'price' => (float)$rate->shipping_params->shipping_price_per_product,

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



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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 4 months ago #57103

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 or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 1
  • Hikashop Business
12 years 1 month ago #67590

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 1 month ago #67873

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum