Home › Forums › Legacy Support › Support queries › Other issues › Groundogg CRM integration
Tagged: crm, integration
- This topic has 52 replies, 7 voices, and was last updated 4 years, 4 months ago by Veronica.
-
AuthorPosts
-
March 13, 2020 at 11:43 am #245567ICHARSSpectatorI thought 10th March was the time you were looking at for wplms 4. I am assuming there is some delay on that, would you be able to tell me by when are you expecting the wplms 4?March 17, 2020 at 5:26 am #245991VeronicaModeratormaybe this month or the first week of April. but it's not fixed because we have to check test cases. i will talk about this to Mr.Vibe.March 19, 2020 at 2:59 pm #246383ICHARSSpectatorWere you able to talk to Mr. Vibe regarding this?March 24, 2020 at 2:15 am #246981ICHARSSpectatorAny updates on this???March 30, 2020 at 5:11 am #247910VeronicaModeratorhi @ICHARS, as you know it well that we all are all lock down in india. we all are working from our's houses. so the communication regarding the plannings and features to be developed are not so good. so once we back in the office then we will be able to continue on the groundhogg. i hope you understand. #staysafe.April 13, 2020 at 6:02 am #250851ICHARSSpectatorHi, can there be any update on this. I understand the lockdown as I am in the same boat currently but this integration is becoming more and more important for me because of the lockdown. I am not able to automate our follow ups with students based on the courses they have completed with us and their other purchase history. Can this be taken up on priority please. I may have to start porting away from wplms only because of this which will be sad both because I like wplms and you guys have been very supportive overall. But there is too much pressure on me because it has been a long wait. I really need help on this asapApril 15, 2020 at 7:24 am #251477VeronicaModeratorwe totally understand your situation. but we have bounded with the time issue! we don't have time for development as we are totally busy with the support and theme update.April 17, 2020 at 5:17 am #252043ICHARSSpectatorIf I am understanding you correctly, you are we saying this is not going to be possible anytime soon?April 20, 2020 at 6:11 am #252743VeronicaModeratornot now. but may be after lock down.April 23, 2020 at 2:40 pm #253842ICHARSSpectatorI think I have found a way to add tags to Groundhogg based on completion of a course in WPLMS. Here are the two links that I think contains the answer. Groundhogg Adding Tag on an action: https://help.groundhogg.io/article/201-adding-a-tag-on-an-action WPLMS Hook after completing a course: https://wplms.io/support/forums/topic/setting-up-hooks-for-when-a-user-completes-a-course/ I understand That I can use something like this:
add_action( 'wplms_submit_course', 'add_a_tag_when_complete_course', 10, 2 ); function add_a_tag_when_complete_course( $course_id, $user_id ) {
I am sure there is something missing in the above code as I haven't mentioned the course name or id for which I would like to add the tag. For now would it be possible for someone to look at this code and help me with the changes required. What I am looking for is that when a user completes a particular course, lets say Course 1 (Course id - 1500), the tags "Course1Complete" and "Course2Prospect" is added to the user
}$tags_to_add = [ 'Course1Complete', 'Course2Prospect' ]; // You can use any combination of text or tag Ids // There are several ways to retrieve a contact record at this point, choose the most relevant one. // Option A: Use the tracking cookie. $contact = \Groundhogg\Plugin::$instance->tracking->get_current_contact(); if ( ! $contact ){ return; } $contact->apply_tag( $tags_to_add ); // Option B: Create a new contact record, or retrieve data from passed variables $email = $user_id->email; $first_name = $user_id->first_name; $contact = new \Groundhogg\Contact( [ // This will retrieve any existing contact with the given email, 'first_name' => $first_name, // If none exists a new record will be created. 'email' => $email ] ); $contact->apply_tag( $tags_to_add );
April 24, 2020 at 10:33 am #254058VeronicaModeratorno dear not so easy we have to implement many checks in this for course completion. and we also have to implement the api call for groundhogg. this is not the way to implement the code.May 16, 2020 at 11:06 am #260072ICHARSSpectatorAny updates on this or if any one can even guide me with the sample code that I can use. I need to run a code when a particular course is marked complete.May 21, 2020 at 4:29 pm #261628ICHARSSpectatorAny suggestions, any sample code that you can share with me, it would be really helpful, what hooks in wplms can be used to know when a user completes a particular course?May 22, 2020 at 4:32 am #261691MrVibeKeymasterThis looks correct. Sharing the updated code here.May 22, 2020 at 4:40 am #261693MrVibeKeymasterThank you for doing the research. This is what I expect the code to be : (untested) https://gist.github.com/MrVibe/a6aeb90ecceccbf56d270c792857fd85 If the above works then you've done the part of the research for Groundhogg and we'll be able to update the plugin really soon. -
AuthorPosts
- The topic ‘Groundogg CRM integration’ is closed to new replies.