Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

A percentage of the items price from a CB field

  • myann
  • myann
  • OFFLINE
  • Posts: 105
  • Thanks: 3
  • Karma: 1
11 years 8 months ago #221138 by myann
Hi, I have a little problem :
I create a integer field based on an amount of point.
For example :
- if the points field displays 100, the promotion field displays 10

then I want to create a propotion which will take the value of the promotion field to apply a percentage discount to the next subscription.

But when I select : A percentage of the items price from a CB field, than I select my promotion field, it does not display anything. If I user a value I enter by myself it works.

So why my field value does not work ?

Finally, each user will have a different percentage of discount depending on the number of points he has got.

Thanks by advance
Myann

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #221192 by krileon
Should be working fine, have recently tested it as working fine. Simply select the points field then attempt to upgrade and see if it applies. At registration is where you'll probably have problems depending on how the points field is populated and when it's populated. If it's not populated before CBSubs then it'll be seen as empty during the registration process.

If still not working try the below usage.

The promotion is: A percentage of item price
Discount Rate in PERCENT (%): [FIELD_NAME]

Replace FIELD_NAME with the actual field name of your integer field so it can be substituted in (e.g. [cb_integer]).

Finally, each user will have a different percentage of discount depending on the number of points he has got.

This is already the case as fields are user by user.


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.

  • myann
  • myann
  • OFFLINE
  • Posts: 105
  • Thanks: 3
  • Karma: 1
11 years 8 months ago - 11 years 8 months ago #221585 by myann
It does not want to take this format.
it said it's not a valid number

if I choose "from CB Field" with integer field or text field with "10%" for example, it does not apply the promotion to the plans.

If I enter a number by myself, it works.

I do not understand.

Myann
Last edit: 11 years 8 months ago by myann.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #221662 by krileon
Where is it saying it's not a valid number? It supports substitutions. So with my above example you could do [cb_integerfield] and it'd substitute in the value of that integer field. Ensure your integer field is on a published and public tab. Also ensure it's set to be visible on profile. If you don't want it actually visible then move the tab it is on to a not shown on profile position. My guess is CBSubs can't access the field so it's pulling no value from it.


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.

  • myann
  • myann
  • OFFLINE
  • Posts: 105
  • Thanks: 3
  • Karma: 1
11 years 8 months ago - 11 years 8 months ago #221834 by myann
Hi and tank you for your help.
I have checked all the point you talked about.
Please let's see the attach.

Perhap's I did something wrong but I do not see what.

My tab "mes infos" is public and published, my field too.

Thanks

Myann
Attachments:
Last edit: 11 years 8 months ago by myann.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #221847 by krileon
Strange, says it supports substitutions. At any rate configure as follows (tested working).

The promotion is: A fixed amount from a CB field
CB Field containing amount: Your integer field

Then test if it's working. If working then try the below and see if it works.

The promotion is: A percentage of the item price from a CB field
CB Field containing percentage: Your integer field


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.

Moderators: beatnantkrileon
Powered by Kunena Forum