Skip to Content Skip to Menu

[SOLVED] Family subscriptions with CBSubs and AutoActions

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago #238777 by OldLodgeSkins
Just to confirm...

Action type: code, PHP (eval)
User is set to "user" (I tried with and without this)
Conditionals:
[var3] equals 5 (this is the number that shows at the end of the plan's URL I assume it's its ID)
[var2] equals A

Is this correct?

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

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago - 10 years 10 months ago #238779 by OldLodgeSkins
I've just found this in the debug output...
Code:
EXPLAIN not possible on query: UPDATE `s286o_cbsubs_merchandises` SET `payment_date`='2013-12-23 16:43:03',`amount`='4.99000',`currency`='USD',`ip_addresses`='88.176.98.14',`status`='A',`user_id`='408',`plan_id`='5',`parent_plan`='0',`parent_subscription`='0',`integrations`='' WHERE id='32'

So... Status is A, plan ID is 5. As expected.
Last edit: 10 years 10 months ago by OldLodgeSkins.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238783 by krileon
User should be set to Automatic or Manually with Variable 1 selected. Aside from that the conditions look fine. Your action should only fire when the subscription actually becomes active, which could occur from an IPN, an admin, etc.. so User must be set correctly (setting it to User will not work).


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.

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago - 10 years 10 months ago #238787 by OldLodgeSkins
If I get it right you're saying it's possible that an actual reply from a payment gateway is required, which therefore would mean this can't work with the dummy payment method... Correct?
In which case the problem should solve itself once we add PayPal...
I had "user" to "automatic" before by the way.
Last edit: 10 years 10 months ago by OldLodgeSkins.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238789 by krileon
No a reply from payment gateway is not required, but that would be the case if it was a Paypal payment or if you gave the user a subscription from backend the "User" set to "User" would not be the user object of the user that subscribed. "User" set to "User" sets it to use the viewing users user object. It should be set as suggested in my above reply to cover all scenarios.


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.

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago #238790 by OldLodgeSkins
I've tried both Automatic and Manually / Variable 1. It's still not being executed.
It's an item bought by people who already are subscribers, does this change anything?

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

Moderators: beatnantkrileon
Powered by Kunena Forum