• Resolved Mister9

    (@mister9)


    I’m having issues getting products to show in CC.
    When I view the plugin tab in woocommerce, I’m seeing this error at the bottom.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'WebDevStudios\CCForWoo\View\Admin\WooTab' does not have a method 'enqueue_scripts' in /home2/angelus/public_html/wp-includes/class-wp-hook.php on line 288

    I should also mention that when I view the plugin tab I see “Congratulations! Your store is connected to Constant Contact.” But when I click on “Constant contact Dashboard”, it redirects to https://app.constantcontact.com/pages/integrations/landing#/WOOCOMMERCE. It does not go to my constant contact account which I am currently already logged in with when when clicked.

    • This topic was modified 4 years, 9 months ago by Mister9.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    hi @mister9

    We’re aware of the warning and it should be getting fixed next release. Trying to wrap up some other things before then. If you want, we can provide the file/line number and what changes to make to self-patch and have it go away until then.

    Regarding the button, where do you ultimately end up at?

    Thread Starter Mister9

    (@mister9)

    Hi!
    Yes, please let me know how I can patch it.

    Is this warning effecting the link between the accounts?
    As mentioned in my initial post, when I click the link it redirects to https://app.constantcontact.com/pages/integrations/landing#/WOOCOMMERCE. That is the page I end up on. This happens when I’m currently logged in to Constant Contact website in another tab.

    I think I should also mention that I’m a added user under the main account holders account. Not sure if that has anything to do with this.

    EDIT: I was able to obtain the main account holders info and tried the link being logging in and it redirects to the same link mentioned above.

    • This reply was modified 4 years, 9 months ago by Mister9.
    • This reply was modified 4 years, 9 months ago by Mister9.
    Plugin Author Constant Contact

    (@constantcontact)

    The warning shouldn’t be having any effect on where the links go.

    For the warning, open up the src/View/Admin/WooTab.php file and remove this line from about line 150:

    add_action( "woocommerce_settings_{$this->id}", [ $this, 'enqueue_scripts' ] );
    

    As is, that button is supposed to send you to this url as a whole: https://login.constantcontact.com/login/?goto=https%3A%2F%2Fapp.constantcontact.com%2Fpages%2Fecomm%2Fdashboard%23woocommerce which would prompt if not logged in, and then once logged in, send you over to the second half of the url which is https://app.constantcontact.com/pages/ecomm/dashboard#woocommerce based on the url in the plugin here. It may have changed slightly for actual destination and it self corrects.

    Perhaps to help me out, where are you expecting to be sent to with that button? Something like the campaigns tab or the Contacts list?

    Thread Starter Mister9

    (@mister9)

    Thank you for the fix for the warning.

    About the button, it redirects to the page where it suggests to connect woocommerce which doesn’t make sense since it should already be linked together. I believe you guys provided a tutorial video where when you click the button, it should go to the constant contact dashboard which would make sense. The main issue is that the woocommerce plugin is saying it’s linked but I’m not able to add any products from the woocommerce store. I’m assuming it’s not linked correctly. Is there a way to restart the installation process? I tried to reinstall but it seems to save the previous setting and shows already connected.

    Plugin Author Constant Contact

    (@constantcontact)

    I will need to double check with some peers, but I believe the button essentially is just meant to bring you into the integrations section of the dashboard as a whole. Meanwhile the messaging there may not be dynamic based on the connection status from the WordPress install.

    I believe the plugin is supposed to collect signups as they make the purchases on your WP store, so simply as new purchases get made.

    I’m going to double check with some details here though just to make sure I’m accurate too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot get products to show in CC’ is closed to new replies.