Help with Pricing formula

Good day all
I’ve hit a brick wall , I have added a plugin to process payment in our region called Payfast .The model I bought uses Stripe.I am struggling with a formula on the payment system to pull through prices from the option selected the user.

Refer to the above , there are 2 price options and the formular must pull through the price chosen by the user .

Refer to above , the payment system .


refer to above the Workflows

Thanking you in advance for your assistance

An option:

  1. Add a custom state on your page or on Group Price call it selection. Set its type to text with an empty default value.
  2. Add workflows when clicking Group WhiskX or Group WhiskXL. For Group WhiskX, the workflow will contain set state of an element (select where you put the custom state in step 1) change the value of the custom state selection to whiskx on condition that it is not whiskx. The second step will be the same i.e. set state of an element (select where you put the custom state in step 1) change the value of the custom state selection to empty on condition that it is whiskx. Repeat for the workflow of Group WhiskXL.
  3. Add a conditional to the button Confirm Whisk to be visible if only the custom state selection is not empty.
  4. Add a conditional on Group WhiskX and Group WhiskXL to change the background color when custom state selection is whiskx and whiskxl respectively.
  5. Finally, add a conditional on the Payfast plugin to set the amount to Input - Price-WhiskX when the custom state selection is whiskx and set the amount to Input - Price-WhiskXL when the custom state selection is whiskxl.
1 Like

Thank you

1 Like