Page 1 of 1
[SOLVED] rewards in options are not working
Posted: Fri Jan 01, 2021 4:33 am
by Asma Duramae
Hi everyone,
I am using opencart version 3.0.2.0
When I chose an option, the reward should be decrease or increase depending on the option but actually doesn't work. It show me the default reward points.
what I mean is how can I show the rewards points of selected option in the cart
Any solutions!
Re: rewards in options are not working
Posted: Fri Jan 01, 2021 4:38 am
by straightlight
Asma Duramae wrote: ↑Fri Jan 01, 2021 4:33 am
Hi everyone,
I am using opencart version
3.0.2.3
When I chose an option, the reward should be decrease or increase depending on the option but actually
doesn't work .
Any solutions!
While this OC version does not exist, what is the actual issue it produces?
Re: rewards in options are not working
Posted: Fri Jan 01, 2021 4:56 am
by Asma Duramae
straightlight wrote: ↑Fri Jan 01, 2021 4:38 am
Asma Duramae wrote: ↑Fri Jan 01, 2021 4:33 am
Hi everyone,
I am using opencart version
3.0.2.3
When I chose an option, the reward should be decrease or increase depending on the option but actually
doesn't work .
Any solutions!
While this OC version does not exist, what is the actual issue it produces?
Sorry, I mean 3.0.2.0
Re: rewards in options are not working
Posted: Sun Jan 03, 2021 3:05 am
by Asma Duramae
The issue is solved
in system\library\cart\cart.php
go to line 253
Code: Select all
'reward' => $reward * $cart['quantity'],
change it to
Code: Select all
'reward' => ($reward + $option_points) * $cart['quantity'],
Hope mark this topic as solved