Hello @Rav
There are two things on the checkbox interactions that seems odd:
1 - Conditions
The expression of a condition will always ends up by being either true or false. And thus will only apply the rule(s) described in the condition if it’s true (e.g: if my checkbox is checked do something)
So when you create the condition “if false” it will never run the logic put in it because the evaluation of this condition will always be: false.
I’m not able to see the whole definition of the interaction from the state checked to unchecked but if you’re not defining anything in the
else I advised you to remove the conditions of your interactions
2 - Set variables
On the component interactions, the variable Store Prices is set twice (in both check and uncheck state of the component)
- First
Store Prices
is set to Prices: Product 1
- Then
Store Prices
is set to 0
.
Thus the variable Store Prices will always display 0 according to the last set variable.
Because it’s not visible in your screenshot I’ll assume you use Store prices
to set Display Prices
.
It appears that the :
Store prices
variable is never printed on screen,
- the first set variables of
Store prices
has to be overwrite to change its collection in order to change the value of the product added according to your checkbox
Then you may avoid the usage of the variable Store prices
A simple set variable of :
Display Prices
set to Display Prices
+ Prices
(or - Prices
according to the component states) should do just fine
Let me know if it helped.
@Haroll Yes this really helped a lot, thanks for helping me out here !