Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

How to create a promotion coupon that activates at registration

  • sautez
  • sautez
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
11 years 11 months ago #218715 by sautez
I'm trying to create a promotional coupon that a new user can enter at registration and then depending on the code they entered they would get a particular subscription.

I have placed the coupon as a field in the register and it is recorded but can't figure out how to link that to the promotion I created and to have it trigger and grant the appropriate permissions.

Is there a way to achieve this? If so, how do I configure the promotional coupon to read the register input coupon code and grant access.

Thanks,

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 11 months ago #218819 by krileon
On the Conditions tab of your promotion you need to check for the CB field and its value. You'd then just have your promotion give a 100% discount if you want it to be free.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • bcs_group
  • bcs_group
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 1
11 years 9 months ago #222108 by bcs_group
Hi Kyle,

I have a website that serves an educational association. I have set up plans:
High Schools under 500 students
High Schools 501-1500
High Schools 1500+

Each plan has a different price.

Each school has a Lead Contact (User Group) that pays the membership for the school but they can have as many counselors as they want belong to that one paid plan.

I need the "Group Counselors" to sign up for a plan so they get access to member benefits but I need to discount them 100% so they don't pay anything.

I would like them to get the 100% discount at their registration by identifying cb_leadcontactlastname.

If they know this then they should get the 100% discount.
They would be put in Group Member User Group

How would I configure the promotions area to set this up.My setting are:

Promotion Type: Applies to all purchases

The promotion is: A percentage of the item price

Applies to all plans.

CB Fields Comparisons
Date A, Field A or Value A: Following CB Field
Lead Contact Last Name

CB Field B
Lead Contact Last Name
Condition 1 (> for Dates):A=B

Apply this promotion on Full Price.

I created the field Lead Contact Last Name and made it required.

I sign up as the group member put in the Lead Contacts Last Name in the Lead Contacts Last Name field. No discount was applied.

Can you help me sort out what I am doing wrong.

Thanks
bcsgroup :ohmy:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 9 months ago - 11 years 9 months ago #222193 by krileon
Simple solution is doing what you're doing now and just compare the lastname field to a valid lastname value. Best approach is to use CB Query Field to query the database and ensure the lastname supplied is valid then output a 1 or 0 based off the results using SQL IF statement and then check if is 1 in the promotion. Example of simple solution as follows.

First condition: This condition:
Date A, Field A or Value A: Following CB field
CB Field A: Lead Contact Last Name
Date B, Field B or Value B: Constant Value or String (CB substitutions can be used)
Value B: Lastname
Condition 1 (> for Dates): A = B ( Value A is equal to Value B )


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 9 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum