Home Forums WoodMart support forum Product thumbnail arrows stop working when Google Tag Manager / GTM4WP is active

Product thumbnail arrows stop working when Google Tag Manager / GTM4WP is active

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #720342

    x7corp
    Participant

    Hi Woodmart team,

    I’m revisiting ticket #691655 regarding the GTM4WP conflict with the product thumbnail gallery arrows.

    Previously, the issue was resolved by:

    Copying:
    woodmart/woocommerce/content-product-buttons-on-hover.php

    to the child theme

    Adding the class:
    quick-view-button

    to the link with the class:
    product-image-link

    At the time, this successfully restored thumbnail arrow functionality when GTM4WP Enhanced Ecommerce tracking was enabled.

    However, after updating Woodmart & WooCommerce recently, the SOLD OUT product label disappeared on archive thumbnails. I discovered this was because my child theme was using the older overridden version of content-product-buttons-on-hover.php.

    I have now copied the latest parent version into the child theme and attempted to reapply the previous fix exactly as instructed before, including:

    class=”wd-product-img-link product-image-link quick-view-button”

    and also testing:

    class=”product-image-link quick-view-button wd-product-img-link”

    However, neither now restores the thumbnail arrow functionality correctly with GTM4WP tracking enabled.

    Could you please advise what the updated fix is for the latest Woodmart version?

    The original issue remains the same:

    When GTM4WP Enhanced Ecommerce tracking is enabled, clicking the thumbnail gallery arrows opens the product page instead of scrolling through gallery images.

    Thank you.

    #720395

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    Thanks for reaching out.

    To resolve this, please edit the template in your child theme and add the class quick-view-button to the link that has the class wd-product-img-link. In other words, the anchor with wd-product-img-link should also include quick-view-button. For reference, see this screenshot:
    https://monosnap.ai/file/aqsozUFfjpng8k9NsQ3W3OGCAwmDUv

    Kind regards,
    XTemos Studio

Viewing 2 posts - 1 through 2 (of 2 total)