[DT] Calculation of courier services !Solved!

LiteCart Fan
From Bulgaria
Member since apr. 2022

[b]Solved![/b]

Hello. I need a little help.
I live in Bulgaria and here we use the services of the courier company Econt.
A mandatory part in the calculation of the final delivery price is the cash on delivery value.

Example:
The company's basic fee is BGN 7. up to 1 kg.
If the price of the cash on delivery is BGN 100. , the courier company charges a cash on delivery fee + 1.2%.
Thus, the final price for delivery is BGN 7. + (1.2% of BGN 100) = BGN 8.2. final delivery price.
I have to add 1.2% of the final price of the products to the delivery price.
Formula:
ot_shipping_fee = ot_subtotal*1.2/100;
What do I need to do to get this calculation into the supply module?
Thanks!

[b]NB! Ok, after a lot of searching I found an answer to my question myself.
[/b]
[b]/includes/modules/shipping/sm_zone_weight.inc.php[/b]
[b]I added the formula on line 35 after $cost = $this->calculate_cost($this->settings['weight_ratetable'.$i], $total_weight);[/b]
[b]34: $cost = $this->calculate_cost($this->settings['weight_ratetable'.$i], $total_weight);[/b]
[b]35: $cost = $cost+(1.2*$subtotal/100);[/b]

tim
Founder
From Sweden
Member since mai 2013
tim

Cash on Delivery is a payment method so you might want to add the charge to the payment module instead.

LiteCart Fan
From Bulgaria
Member since apr. 2022

It is also possible to add in the payment module.
But here we have the following conditions:

  • Delivery to the Econt office 1.20% of the price of the cash on delivery;
  • Delivery to an address with Econt 2.40% of the price of the cash on delivery.

Accordingly, if the customer chooses to receive his shipment at the Office of the Econt courier company, he will pay +1.20%, but if he chooses to receive his shipment at an address, then he will pay +2.40%.
For this reason, the correction must be made in the delivery module, as the charge depends on the delivery location.

Acest thread a fost închis din cauza inactivității îndelungate. Postarea pe acesta nu mai este posibilă.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.