D
D
DevTeam2015-12-06 09:43:41
opencart
DevTeam, 2015-12-06 09:43:41

How to add a percentage to the total?

afbce11c2a75474f90f6353f4f7ca36c.jpg
here in the photo you can see he adds 10 rubles to the total amount, and I need to make it not 10 rubles, but 10%

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2015-12-06
@xmoonlight

$prc=$sum*0.1;
$total=$sum*1.1; OR $total=$sum+$prc;

A
Andrey KHAN, 2015-12-10
@mishgam

Correct the calculation in the module. Can help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question