• Resolved fkoomek

    (@fkoomek)


    Hello.
    When I click on add to cart button on archive pages I get this message in the console:
    (index):8228 Uncaught TypeError: Cannot read property ‘ATC-link’ of undefined
    at prod_ATC_link_exists ((index):8228)
    at HTMLAnchorElement.<anonymous> ((index):8291)
    at HTMLAnchorElement.dispatch (jquery.js?ver=1.12.4-wp:3)
    at HTMLAnchorElement.r.handle (jquery.js?ver=1.12.4-wp:3)
    at Object.trigger (jquery.js?ver=1.12.4-wp:3)
    at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
    at HTMLAnchorElement.<anonymous> (jquery.js?ver=1.12.4-wp:3)
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
    at a.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)

    Can you please help? I tried to disable all plugins without any luck.
    I read other topics when you are saying that this issue is caused by a theme. I use Vantage theme but I made some customization there. Can you check my site and tell me if I can make any changes there to make it work? Add to cart button shows when you hover on a product.
    Thanks

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Conversios

    (@tatvic)

    Hi @fkoomek,

    We have had a look at your store and found the error in the console.

    Here the issue is occurring due to the custom child theme and this version of our plugin doesn’t support the custom child theme, so this is something out of the scope of this version of our plugin.

    Also, you could check out this FAQ which mentions about the compatibility with the child theme.

    We hope this helps.

    Regards,
    Tatvic Analytics.

    Thread Starter fkoomek

    (@fkoomek)

    Hello. Thank you.
    Is there a hook for disabling Ecommerce option? I would disable it on archive pages, cause right now it’s blocking adding to cart action on archive pages as you could see.thanks

    Plugin Author Conversios

    (@tatvic)

    Dear @fkoomek,

    As the Uncaught TypeError is occurring via the theme and we are not clear whether and which particular hook via our plugin is blocking the add_to_cart event on archive pages.

    We hope you understand our boundaries to support here.
    Further, we would have helped you with the issue if the communication channel would have been a different one.

    Stay Safe!!

    Regards,
    Tatvic Analytics.

    Thread Starter fkoomek

    (@fkoomek)

    Hello.
    Thank you for the answer.
    I need to unhook this:
    $this->loader->add_action(“wp_footer”, $plugin_public, “t_products_impre_clicks”);

    from line 179 file class-enhanced-ecommerce-google-analytics.php

    But I don’t know how. Can you help,please?

    • This reply was modified 4 years, 10 months ago by fkoomek.
    • This reply was modified 4 years, 10 months ago by fkoomek.
    Plugin Author Conversios

    (@tatvic)

    Hi @fkoomek,

    You could unhook the shared line of code(at line no 179) by replacing it with the below line of code:

    remove_action(“wp_footer”, $plugin_public, “t_products_impre_clicks”);

    We hope this helps you. Please confirm whether the suggested change resolves your query or not.

    Regards,
    Tatvic Analytics.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘(index):8228 Uncaught TypeError: Cannot read property ‘ATC-link’ of undefined’ is closed to new replies.