Skip to Content Skip to Menu

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

[#3911] Auto Action - VM2 sync

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 8 months ago - 11 years 8 months ago #220801 by mjplowcha
[#3911] Auto Action - VM2 sync was created by mjplowcha
Hello, I am having a hard time getting the CB Auto Action to sync the fields between CB and VM2.

I published CB auto actions plugin and created a new action.
Set type to VM2
Selected my trigger to gjint_onAfterUpdateEventAttendance (Update on attendance status change)
Tried USER as both Auto and User
Access: Public
Condition: Tried blank and [user_id]->NotEmpty
Mode: Sync
Address Type: BT (unsure what this is, but left it at default)
Address Name: -default- (also made sure my testuser was in the -default- group in VM)
Shopper Group: shopper (testuser in 'shopper' group in VM
1: Company Name = Username*

*thinking that the process would be, when I update my groupjive event, VM2 would then add the username for testuser to the Company Name field.

Can you please let me know where I am going wrong with this? Everything appears pretty straight forward, so I am sure there is just something simple I am overlooking. :blink:
-mjp
Last edit: 11 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48457
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220803 by krileon
Replied by krileon on topic Auto Action - VM2 sync
Use the after login trigger and don't use any conditionals. This will test if the action is even still working as I have not tested it in a very long time (VM is far too buggy for me to maintain the action, it likely will be dropped).


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.

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 8 months ago - 11 years 8 months ago #220810 by mjplowcha
Replied by mjplowcha on topic Auto Action - VM2 sync
Updated as suggested: (trigger- onAfterLogin). Logged testuser out and back in. VM still showing blank 'company name'** for this account.

Using VM version 2.0.18a - If you know of a working version I might be able to back track to an older version to do some comparing between the working and newer versions.

CB version 1.9 Joomla 2.5.9

**also tried some different variables with no results.

I can try and take a look at the code a bit later to see if I can figure it out, but I am stuck without FTP access at the moment. Do you have any other options or know of any 3rd party solutions that I might check into?

-mjp
Last edit: 11 years 8 months ago by mjplowcha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48457
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220816 by krileon
Replied by krileon on topic Auto Action - VM2 sync
I think 2.0.16 broke it. Created below bug ticket to investigate for next release (if I can get it working on J3.0).

forge.joomlapolis.com/issues/3911


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.

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 8 months ago #220823 by mjplowcha
Replied by mjplowcha on topic Auto Action - VM2 sync
Okay thanks. I'll try and check into it more tonight. Was hoping to have this site synced up or I may just go with designing a custom plugin for my site to keep things simple. If I find the break and it's simple enough to fix I'll post back up.

Thanks for checking into it for me!

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

  • mjplowcha
  • mjplowcha
  • OFFLINE
  • Posts: 30
  • Thanks: 1
  • Karma: 0
11 years 8 months ago #220831 by mjplowcha
Replied by mjplowcha on topic Auto Action - VM2 sync
I had a bit of success switching the trigger to onDuringlogin. I was able to sync the CB first name field with the VM address and company name (just testing it out), so overall a success.

On that note, I have a test user account that is in a groupjive group and is marked as 'attending' to an event. My overall goal would be to post this upcoming event info into a custom VM field (but Company Name would be fine for now).

Using the auto action fields [VM] Company Name : [CB] Upcoming Event - with the same known working trigger produces this on my Joomla debug..

Notice: Undefined property: moscomprofilerUser::$cb_eventid
(filepath).../plugin/user/plug_cbautoactions/models/virtuemart20.php on line 481

Which is as follows:
if ( $vmUserinfo->$k != $user->$v ) {
$set[] = $_CB_database->NameQuote( $k ) . " = " . $_CB_database->Quote( $user->$v );
}

Unfortunately for me, this Upcoming Event field data is practically the reason for me using VM / CB in the first place. If you have any insight to helping me get this auto action option running again, I would really appreciate it!

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

Moderators: beatnantkrileon
Powered by Kunena Forum