Please Log in or Create an account to join the conversation.
RossM wrote: Hi,
I am using Joomla 2.5.14, CB 1.9, CBSubs GPL 3.0 and all plugins are current as of 2014.10.14.
Project Parameters:
This is an endangered animal sponsorship website. This site offers only 1 subscription option which has a fee of $xx.xx for a lifetime membership. When a person joins he or she is assigned one of ~1100 unique animals to sponsor (the animal will be assigned, not chosen by the user). Each animal has a unique identifier (tag number, alphanumeric) and a short bio (text field). The assigned animals unique identifier and bio needs to show up in the user’s profile (under a custom tab) and the unique identifier/ tag number needs to be searchable. Each of the ~1100 animals can only be assigned once.
Here is what I believe needs to be done:
Created 2 new custom fields: cb_tagid and cb_bio – Not sure what “type” to make these?
Create 1 new tab “Sponsorship Info” to display the 2 custom fields
After a person successfully subscribes AND pays through PayPal I need CB to query the animal database table, grab the first unassigned record, then add that information to the 2 custom fields.
I have examined the use cases, tutorials and many forum threads (including the one below) but still have not been able to come up with a solution.
www.joomlapolis.com/forum/153-professional-member-support/193762-solved-auto-increment-field
Any thoughts or ideas would be greatly appreciated.
Thanks in advance for your help!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It depends entirely on what you need to do. If you need your action to fire after a plan has become active then the below is the best usage.1. Trigger: I want this to happen after CBSubs confirms payment. Which of the following should I use?
No, leave it on automatic. Both of the above triggers provide the user object as var1, which automatic will find.2. User: Please confirm “User” is the logical choice here
Yes, it will parse the code string you've supplied for substitutions. Once it's done it'll execute the code. So be careful with how you write your code as it'll see [STRING] as a substitution.3. Code Actions: Can we use CB substitutions in the PHP script since this is being run from CB Auto Actions?
Substitute in [user_id] or [var1_id], both work for the above triggers as the user object is var1.4. Best way for PHP script obtain the specific User ID of the person who just paid so the script is just run for this user?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.