B
B
Bearax2021-06-02 15:47:24
opencart
Bearax, 2021-06-02 15:47:24

How to make an order processing fee for each item?

Dobrvogo time of day. Included an order processing fee in the amount of 10 hryvnia. Everything works well, but you need to make sure that this amount is multiplied by the number of goods. That is, if I ordered 2 pieces, then not 10, but 20, if 3 pieces, then 30 and so on. Thanks in advance. Maybe there is some other module with which you can implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
opencartbot, 2021-06-13
@Bearax

File catalog/model/extension/total/handling.php
find line

$total['total'] += $this->config->get('total_handling_fee');

and make it like this
$total['total'] += $this->cart->countProducts() * $this->config->get('total_handling_fee');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question