extremeginette
Forum Replies Created
-
Hello and thanks for your reply! Wow, you really put a lot of efforts.
But my issue here was simpler that the usage of %.
All numbers are not %, but simple numbers.
-20 = -20$
It’s a discount of -20$ each time I mentionned it.I’ll check the code and try to modify it.
Thanks so much again.
[EDIT : As a workaround, I added a radio button to ask the question if both students are having two lessons or more. If so, it adds a -20$ discount. Topic resolved. – Thanks again to the three people who helped me out in this process. Hope it helps other people too.]- This reply was modified 11 months, 3 weeks ago by extremeginette.
- This reply was modified 11 months, 3 weeks ago by extremeginette.
- This reply was modified 11 months, 3 weeks ago by extremeginette.
Hello! Thanks for your reply!
I’ll be more precise with my request, sorry.
Let’s say there’s only one student (first choice on the radio box {radio-3}). There’s no discount at this point. But there is a discount of -20 when there’s two choices or more in the following checkbox ({checkbox-1}). It works well already.
Now let’s say there’s two students (second choice on the radio box {radio-3}). There is a discount of -20 because there’s two students instead of one. At this point it works well too.
The first student (or the second student) chooses two lessons or more (in {checkbox-1} or {checkbox-2}), there is a discount of -20 that is applied. This is working too!Finally, if the first student AND the second student are choosing two lessons or more ({checkbox-1} and {checkbox-2}), I want another discount of -20. For a total discount of -60 instead of -40 that I’m stuck with.
This is where I can’t do this final step.I hope it was easier to understand my issue.
I really appreciate all the time you put for helping me out (and maybe others in the future I hope).Thanks for your fast reply!
Sure, here’s the Pastebin link : https://pastebin.com/9SVcvXSFIt will be online for 2 weeks.
- This reply was modified 12 months ago by extremeginette.
@wpmudevsupport3 ,
Thanks to you, it really helped! I appreciate very much.
I wish to push the idea a little further and then I’m done.
You can refer to the same page, that I updated.
I have a radio button at the beginning of the form.
A choice for one or two students.
If it is two students, there’s a discount of -20. It is applied and it works.
When the first student {checkbox-1} has two lessons or more, there’s a discount of -20. It works.
I changed from -40 to -20, compared to the previous message.
But when the second student {checkbox-2} has two lessons or more, I cannot make ANOTHER discount of -20. I wish to add another discount here too!
I feel I am very close to the solution and I can’t conceptualize in my head what to do. I tried several things, but I bet I need another calculation field.Thanks again so much for your time, it really helps.