Post by Asma Duramae » Fri Jan 01, 2021 4:33 am

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!
Last edited by Asma Duramae on Fri Jan 01, 2021 5:46 pm, edited 2 times in total.

Newbie

Posts

Joined
Wed Aug 19, 2020 12:02 am


Post by straightlight » 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?

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Asma Duramae » Fri Jan 01, 2021 4:56 am

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

Newbie

Posts

Joined
Wed Aug 19, 2020 12:02 am


Post by Asma Duramae » Sun Jan 03, 2021 3:05 am

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

Newbie

Posts

Joined
Wed Aug 19, 2020 12:02 am

Who is online

Users browsing this forum: No registered users and 33 guests