CB field Integration

8 years 10 months ago #266184 by derekkoopowitz
CB field Integration was created by derekkoopowitz
I have two CB fields that get updated whenever a plan is purchased/renewed. The one field gets updated correctly but the other field doesn't.




The attachment above shows the field that should be populated. Is there a reason why the expiry date for the subscription is not populating a CB date field?

Thanks.
Attachments:

Please Log in to join the conversation.

8 years 10 months ago #266192 by krileon
Replied by krileon on topic CB field Integration
SUBSCRIPTION_EXPIRY_DATE is a datetime. You can't map it to a date field. You need to use a datetime field or a text 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 to join the conversation.

8 years 10 months ago #266201 by derekkoopowitz
Replied by derekkoopowitz on topic CB field Integration

krileon wrote: SUBSCRIPTION_EXPIRY_DATE is a datetime. You can't map it to a date field. You need to use a datetime field or a text field.


Ahhh... makes total sense. I changed the field to a datetime field now. I reran an import on a user and unfortunately it still isn't populating the datetime field. See the screenshot below of the field...

Attachments:

Please Log in to join the conversation.

8 years 10 months ago #266447 by krileon
Replied by krileon on topic CB field Integration
Try subscribing a user manually from frontend then paying the basket from backend. If you're subscribing from backend it's possible the user store that happens after CBSubs is causing the field value to revert. Not sure how this will behave with the import feature.


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 to join the conversation.

8 years 10 months ago #266515 by derekkoopowitz
Replied by derekkoopowitz on topic CB field Integration

krileon wrote: Try subscribing a user manually from frontend then paying the basket from backend. If you're subscribing from backend it's possible the user store that happens after CBSubs is causing the field value to revert. Not sure how this will behave with the import feature.


No success on this at all. I manually subscribed my test user from the front-end (paid on PayPal Sandbox) and activated the membership on the backend and the date is not being populated.

What is the difference between the "Operator" fields "Prefix: ValueField", "Suffix: FieldValue" and the "Set: Field = Value"? I'm currently using the Set option but maybe I should use one of the others?

Please Log in to join the conversation.

8 years 8 months ago #268798 by krileon
Replied by krileon on topic CB field Integration
Prefix prefixes the current value with the value you supplied. Suffix suffixes the current value with the value you supplied. Set sets the fields value to the value you supplied. Try using a plain text field to see if it'll store fine. Could be some sort of formatting issue going on or that substitution just flat out not working.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.210 seconds