Support » Plugin: WooCommerce Google Analytics Integration » display error on mobile devices on pop up with upsell product

  • Resolved paulwessiack

    (@paulwessiack)


    if you put a product to the basket which has a “linked product / Upsells” defined then in the pop-up window on a mobile device the description of the upsell product will be: “(function($) { $( ‘.products .post-892 a’ ).click( function() { if ( true === $(this).hasClass( ‘add_to_cart_button’ ) ) { return; } ga( ‘ec:addProduct’, { ‘id’: ‘892’, ‘name’: ‘Rückstrahler Set’, ‘category’: ‘Zubehör’, ‘position’: ‘1’ }); ga( ‘ec:setAction’, ‘click’, { list: ‘Product List’ }); ga( ‘send’, ‘event’, ‘UX’, ‘click’, ‘ Product List’ ); }); })(jQuery);”

    and not the description of the product!

    If I disable WooCommerce –> Settings –> Integration –> Google Analytics –> Enhanced eCommerce –> Product Clicks from Listing Pages
    the problem disappears and the correct product discretion of the upsell product will be displayed in the pop up window when adding the base product to the basket.

    the problem only appears on mobile devices.

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Howdy!

    I tested this on my site on a mobile device and didn’t have an issue adding a product that had an “Upsell” product set for it (with the “Product Clicks from Listing Pages” option enabled). I tested with both a simple and variable product.

    This doesn’t look like a bug, but rather a conflict with something on your site.

    Please follow the steps here to troubleshoot that: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4e

    If you still have issues after testing for conflicts, please let us know!

    Hi,

    thanks for your response!
    All my plugin’s have the latest version including WordPress itself and WooCommerce.

    When I enable the “Product Clicks from Listing Pages” the problem exists, when I disable it the problem disappears.

    I only habe simple products.
    This is the link to one of our products.
    I can temporarily enable the future “Product Clicks from Listing Pages” so that you can have a look at it.
    Please let me know which (short) time i should enable it.

    greetings

    :: Paul

    Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Hi Paul!

    If you can enable it, I’ll take a quick look.

    Can you also include a direct link to a product on your site when you respond? Thanks!

    Hi,

    “Product Clicks from Listing Pages” is now activated.
    If you now open the link: https://www.magped.com/shop/sport-al15-limited-edition/ in a mobile browser (i use Safari on iPhone X) and add the product to the basket you well see in the pop up window that the description of the upsetting product is corrupt.

    Please let me know as soon as possible when I can disable the switch.

    Thanks a lot

    :: Paul

    Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Thanks Paul!

    I tried adding both the main product to the cart: http://cld.wthms.co/NbixSy

    And upsell product to the cart: http://cld.wthms.co/AJOCbS

    And neither gave me any issues in the popup.

    Using an iPhone with Safari to test.

    I couldn’t replicate this on my site either with the same exact settings you mentioned though, so if you could run a conflict test with a default theme (Twenty Seventeen or Storefront) and only WooCommerce and WooCommerce Google Analytics Integration active, that would be great as that would rule out a conflict elsewhere (which I think may be the cause here).

    thats crazy! If I do it i will get to following screenshot:
    https://1drv.ms/u/s!At48GCH6HFrwkaQ_C9UYIOc57tarIA

    Have you scrolled down?

    Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    I did a few more tests and was finally able to replicate it on your site from my end: http://cld.wthms.co/MCGp5h

    I still can’t replicate it on my site using a default theme and only WooCommerce/WooCommerce Google Analytics Integration.

    Before turning this into a bug report, could you please try checking for conflicts by switching to a default theme (Twenty Seventeen or Storefront) and only having WooCommerce and WooCommerce Google Analytics Integration active to see if you still have the issue?

    ok, I will try to build this on a integration machine…

    I tried the Twenty Fifteen and Twenty Seventeen standard Theme.
    but there is no pop up windows when putting the product to the basket.

    I also asked the Theme Autor about the problem a few days ago. He analyzed it and came to the conclusion that the problem is not a Theme problem and it comes from the WooCommerce Google Analytic Integration plugin.

    I disabled the following plugin’s step by step:
    – Google Analytics Dashboard for WP (GADWP)
    – Facebook for WooCommerce
    – WP Rocket
    – WooCommerce Germanized
    – WooCommerce Germanized Pro
    – PopUp Builder
    – WooCommerce Multilingual
    But the problem is still there.

    Which standard Theme do you use on your side to test the popup?

    :: Paul

    I also deactivated all the WPML plugins.
    Problem still there.

    Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Do you know of any other themes or plugins that have the “popup on add to cart” feature that you could test with?

    I tried a few when testing and the popup only worked on archive pages, not the single product pages, so I can’t replicate this anywhere but your site at the moment.

    Since the “add to cart popup” functionality isn’t a standard WooCommerce feature, we’d have to replicate the issue with other themes/plugins that include the add to cart pop up functionality on single product pages in order to fix the issue within the plugin itself (instead of the theme author providing a fix).

    If we can find a few other plugins/themes that can replicate that functionality outside of the one you’re currently using, we can check to see if this is a bug in the plugin or just something with your theme’s pop up functionality itself. Do you know of any other themes/plugins that include that functionality?

    Hi,

    sorry I don’t know any other theme wich offers the popup functionality.
    I use the Vendidero Theme. You should be able to test it with this theme on your side there should be a 30 day trial period.

    I also had an investigation with the theme author. He came to the conclusion that the problematic code came from your plug in.

    If you find another theme wich has this pop up functionality I can also try it on my integration system. The strange thing is, that it only happens on the mobile view.

    BR

    :: Paul

    Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    sorry I don’t know any other theme wich offers the popup functionality.
    I use the Vendidero Theme. You should be able to test it with this theme on your side there should be a 30 day trial period.

    Thanks again for taking the time to test this! I understand that Vendidero is probably the best choice for you since it comes from the author of the Germanized plugin. However, we are not able to test integration with any third party themes.

    In a perfect world we would keep test systems and test our software with every other theme and plugin out there, but there are simply too many for this to be feasible. We can only test with our standard themes and themes using standard functionality, and the cart pop-up functionality on simple product pages isn’t something we offer. Because of that, this use case is not covered.

    I also had an investigation with the theme author. He came to the conclusion that the problematic code came from your plug in.

    This is not a question of who is responsible, it is a question of whether two components can work together.

    Since both the plugin and theme work okay on their own, it is neither component’s “fault”, nor is there any bug. Both the plugin and theme clash with each other. It is the case of a missing integration between the two. Somebody has to write custom code to make both components work together, and from our end, we are unable to integrate the two at this time.

    If you find another theme wich has this pop up functionality I can also try it on my integration system. The strange thing is, that it only happens on the mobile view.

    That makes sense because on mobile different Javascript assets are loaded.

    I hope this helps clarify things!

    Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Hey Paul!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, please feel free to start a new thread. 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘display error on mobile devices on pop up with upsell product’ is closed to new replies.