Coupon field depending other field

  • Frédéric Bianchi
  • Frédéric Bianchi's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
1 week 5 days ago #129929 by Frédéric Bianchi
Coupon field depending other field was created by Frédéric Bianchi
Hello Tuan,
i have a little problem. I want to make some coupons codes for the famous black friday...

In some plans, I have custom fields that influence the final price.
For example, Training Plan X. In this training, the customer can choose with a personalized field if he wants to take the training with or without follow-up. With follow-up, there is 240.00 francs more.

I would like my voucher to be valid only with the option without follow-up.

So I don't know how to do it... The promo code field should be able to be displayed or hidden depending on the choice of a custom field...

Any idea ?

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #129938 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Coupon field depending other field
Hi Tracey

Unfortunately, this is not possible and difficult to implement

You can only assign coupon code to subscription plans. It's not possible to assign coupon code to custom field values

Tuan

Please Log in or Create an account to join the conversation.

  • Frédéric Bianchi
  • Frédéric Bianchi's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
1 week 5 days ago #129941 by Frédéric Bianchi
Replied by Frédéric Bianchi on topic Coupon field depending other field
OK, i understand.
I can achieve this by custom depending field, but it dosent work, i have submitted a ticket for that.
Regards

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #129960 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Coupon field depending other field
Hi

Checked and found that it causes by comma characters in the custom field values

I added some code to handle that, updated the code to your site and the error should be gone now

Please check it and confirm

Tuan

Please Log in or Create an account to join the conversation.

  • Frédéric Bianchi
  • Frédéric Bianchi's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
1 week 4 days ago #129967 by Frédéric Bianchi
Replied by Frédéric Bianchi on topic Coupon field depending other field
OK, it work now, thank you.
And if i want to make a reduction with percent, is it possible, because i dont understand well how the formula field work.
If i understand the doc, i can make a radio button with an option for example "Black Friday", and if it is selected, in the fee field, i want to put a 40% of reduction.

But i dont understand if is it possible and how to write it with the forumla field with the [FIELD_VALUE] attribute...

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #130002 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Coupon field depending other field
Hello

For custom fee field, you can only use a fixed fee for the option. It's not possible to reduce 40% fee when the option is selected as you want

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Frédéric Bianchi
  • Frédéric Bianchi's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
1 week 2 days ago #130011 by Frédéric Bianchi
Replied by Frédéric Bianchi on topic Coupon field depending other field
OK, thank you.

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #130024 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Coupon field depending other field
You're welcome

Tuan

Please Log in or Create an account to join the conversation.