I am currently working on the possibility of offering a price depending on the user has a discount code or not. What happens to me is that in the variables of the buy button I cannot add the price conditioned by whether it has a discount or not. This condition is carried out by means of an if then else and at the moment of selecting the price variable of the button I can only select fixed variables. Attached video, although it is in Spanish, it can still be understood.
Have you encountered this problem? How have they solved it?