Support » Plugin: WC-AC Hook » WC-AC plugin not working

  • Nicole

    (@nikkisart)


    We’ve had a few people purchase products that have the tag referenced in the Advanced tab but the tag is not getting into Active Campaign. The only place I see that may be an issue from a settings standpoint is i don’t have a form id assigned but since different products would have different forms and get different tags, I didn’t think that needed to be set in order for the plugin to work (especially since i have the list id set).

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author mtreherne

    (@mtreherne)

    Hi Nicole.

    Can you check a few settings for me so that I know what should be expected. In the wc-ac-hook settings (WooCommerce > Settings > Integrations) what are the following:

    Add/Update Contact: Is this checked or unchecked?
    Track Order Status: Is this checked or unchecked?
    Debug Log: Is this enabled? If not I suggest doing so.

    Thanks,
    Matt

    The previous issue somehow resolved itself but for some reason one of our downloadable/virtual products are not adding people to AC nor adding the appropriate tag to them. Below is the information you’ve requested above:

    Add/Update Contact: checked
    Track Order Status: unchecked
    Debug Log: Is enabled

    The product we’re having problems with is The OMNI FIT Cookbook

    All other products (which are mostly subscription and virtual products) seem to be doing fine.

    Thanks for any help you can provide.

    Plugin Author mtreherne

    (@mtreherne)

    Hi Nicole. Let’s see if we can get to the bottom of this.

    The first thing to do is to make sure you have the Debug Log option checked on the wc-ac-hook settings. While you are in the settings can you confirm what you have for the following:

    Add/Update Contact – is this checked/unchecked?
    Track Order Status – is this checked/unchecked?
    Debug Log – make sure this is checked

    Can you also give me (cut and paste) the exact tag(s) that is in the advanced settings for one of the products involved. It will help me explain things if required.

    If you already have the debug log checked then you can view the debug log at ‘WooCommerce > System Status > Logs > wc-ac-hook-*’. Select the log and click on view. If you switch on debug logging then you will need to wait for you next shop order before you will see an entry in the log.

    If you have the debug log checked already, then you may be able to see the problem in the log, or cut and paste me the entries for that particular customer order, so that I can diagnose for you.

    Thanks, Matthew.

    Plugin Author mtreherne

    (@mtreherne)

    Sorry Nicole I just realised I was reading your post in the wrong order. You have already answered my first question on the settings.

    So please just get back to me with the example of product tag and find the entries in the debug log for the order (either use the order id from WooCommerce or look for the date/time that you know the order was processed).

    Ok…I’ve done what you asked. I’ve checked the log (pasted below…the bold section shows the period in question) and these orders don’t even appear on the log. Here is a link to the screenshot of the orders in WC that should have been tagged:
    WC orders
    And below is a screenshot of the product in question with the WC-AC tag applied:
    Product tag setup
    Lastly, here is the screenshot to the WC-AC Hook settings page:
    Settings Page

    wc-ac-hook-9cc2afab227f22ff5e99cb6179cdc285.log:
    11-05-2017 @ 12:51:00 – Order ID = 8588 (Status = pending). Error: Form ID is not numeric =
    11-07-2017 @ 15:29:15 – Order ID = 8606 (Status = processing). Contact synced successfully (ActiveCampaign ID = 41)
    11-09-2017 @ 14:02:59 – Order ID = 8616 (Status = pending). Error: Form ID is not numeric =
    11-09-2017 @ 14:03:00 – Order ID = 8616 (Status = processing). Contact synced successfully (ActiveCampaign ID = 222)
    11-18-2017 @ 15:25:17 – Order ID = 8675 (Status = processing). Contact synced successfully (ActiveCampaign ID = 439)
    11-22-2017 @ 16:29:31 – Order ID = 8696 (Status = processing). Contact synced successfully (ActiveCampaign ID = 37)
    11-22-2017 @ 16:29:57 – Order ID = 8696 (Status = processing). Contact synced successfully (ActiveCampaign ID = 37)
    12-03-2017 @ 20:52:42 – Order ID = 8742 (Status = processing). Contact synced successfully (ActiveCampaign ID = 678)
    12-07-2017 @ 13:57:07 – Order ID = 8747 (Status = processing). Contact synced successfully (ActiveCampaign ID = 495)
    12-09-2017 @ 22:37:05 – Order ID = 8794 (Status = pending). Error: Form ID is not numeric =
    12-09-2017 @ 22:37:07 – Order ID = 8794 (Status = processing). Contact synced successfully (ActiveCampaign ID = 685)
    12-16-2017 @ 15:45:42 – Order ID = 8809 (Status = processing). Contact synced successfully (ActiveCampaign ID = 439)
    01-03-2018 @ 16:30:50 – Order ID = 8880 (Status = processing). Contact synced successfully (ActiveCampaign ID = 495)
    01-04-2018 @ 12:03:17 – Order ID = 8884 (Status = processing). Contact synced successfully (ActiveCampaign ID = 733)
    01-07-2018 @ 12:51:51 – Order ID = 8893 (Status = processing). Contact synced successfully (ActiveCampaign ID = 750)
    01-13-2018 @ 02:51:06 – Order ID = 8930 (Status = processing). Contact synced successfully (ActiveCampaign ID = 439)
    01-13-2018 @ 08:23:41 – Order ID = 8932 (Status = processing). Contact synced successfully (ActiveCampaign ID = 750)
    01-18-2018 @ 09:02:06 – Order ID = 8945 (Status = processing). Contact synced successfully (ActiveCampaign ID = 37)
    02-03-2018 @ 16:32:23 – Order ID = 8956 (Status = processing). Contact synced successfully (ActiveCampaign ID = 495)
    02-04-2018 @ 12:08:46 – Order ID = 8959 (Status = processing). Contact synced successfully (ActiveCampaign ID = 733)
    02-15-2018 @ 09:07:35 – Order ID = 8979 (Status = processing). Contact synced successfully (ActiveCampaign ID = 37)
    02-15-2018 @ 09:10:39 – Order ID = 8965 (Status = processing). Contact synced successfully (ActiveCampaign ID = 439)
    02-19-2018 @ 14:26:47 – Order ID = 8982 (Status = processing). Contact synced successfully (ActiveCampaign ID = 773)
    03-03-2018 @ 16:38:43 – Order ID = 9119 (Status = processing). Contact synced successfully (ActiveCampaign ID = 495)
    03-04-2018 @ 12:09:10 – Order ID = 9122 (Status = processing). Contact synced successfully (ActiveCampaign ID = 733)
    03-15-2018 @ 10:10:19 – Order ID = 9173 (Status = processing). Contact synced successfully (ActiveCampaign ID = 37)
    03-15-2018 @ 10:12:26 – Order ID = 9175 (Status = processing). Contact synced successfully (ActiveCampaign ID = 439)

    Plugin Author mtreherne

    (@mtreherne)

    Hi Nicole,

    Ok the first thing is the form id issue. We’ll fix that but I don’t see the connection between that and the missing contact syncs.

    If you want the sign-up to marketing option to appear at checkout (which I guess you do because you have selected opt-in rather than no) then you must enter a valid ActiveCampaign form ID. You setup the form on AC so that you can decide which list the form subscribes to for marketing (which is likely to be different to the general list ID used for sync of contacts). The form on AC will have it’s own associated lists, actions for adding tags, email responses including double opt in. When a contact clicks the opt in at checkout, it will be just like they filled in the AC subscription form that you created. Hopefully that makes sense!

    Second thing is the missing contact sync. Can you take a look at one of the orders in question on Mar 14 i.e. 9165-9168. Pick one and look at the order notes to see what the order status history was. I would like to see the status changes and time sequence for one of the orders e.g.

    Order Created Time/Date e.g. Mar 14 at hh:mm
    Order status changed from pending to processing at date/time
    Order status changed from processing to complete at date/time

    You can always just cut and paste, or take a screen print of the ‘Order Notes’ section.

    Thanks,
    Matthew

    Here’s the screenshot of one of the orders including the order status notes:
    Order 9165

    I added a form iD just for GP but I don’t think this would be the issue since some of the other tags are working.

    Thanks
    Nicole

    Plugin Author mtreherne

    (@mtreherne)

    Ok that explains why the sync is not being triggered. It is a Stripe payment in which the order is created with a status of pending payment and once paid goes directly to completed. It skips the processing stage. Usually this happens when there is some kind of auto complete options selected.

    I will make a note of this to have a think about the additional options I could give to cope with the situation.

    In the meantime you have two options:

    1) Uncheck the ‘Add/Update Contact’ in the wc-ac-hook settings, so that the contact sync only happens when an order is complete.

    or

    2) Check the Track Order Status checkbox in the wc-ac-hook settings so that contact sync happens on all order status changes. This will definitely sync all contacts but creates slightly different versions of tags along the way. You would need to read the ‘Can I track order status and abandoned carts?’ FAQ in https://wordpress.org/plugins/wc-ac-hook/#faq to see an example. If you have automation triggers based on tags created by wc-ac-hook you may need to update them.

    Hope that helps.
    Matthew

    I tried option 1 and now we’re just waiting for another order to come through and we’ll let you know how it turns out.Thanks so much for your prompt response.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WC-AC plugin not working’ is closed to new replies.