Code Shows in Basket on Hover

Home Page 8DegreeThemes Forum Free Themes WP Store Code Shows in Basket on Hover

Tagged: , ,

  • Author
    Posts
  • #21271

    thedrumdoctor
    Participant

    When the basket in the header is empty and is in a state of hover, the following code is rendered visible in the div class=”widget_shopping_cart_content”:

    (function($) {
    $( document.body ).on( ‘click’, ‘.remove’, function() {
    ga( ‘ec:addProduct’, {
    ‘id’: ($(this).data(‘product_sku’)) ? ($(this).data(‘product_sku’)) : (‘#’ + $(this).data(‘product_id’)),
    ‘quantity’: $(this).parent().parent().find( ‘.qty’ ).val() ? $(this).parent().parent().find( ‘.qty’ ).val() : ‘1’,
    } );
    ga( ‘ec:setAction’, ‘remove’ );
    ga( ‘send’, ‘event’, ‘UX’, ‘click’, ‘remove from cart’ );
    });
    })(jQuery);

    This behaviour happens in Firefox and Microsoft Edge, but not in Google Chrome.

    Any idea why this happens in Firefox?

  • #21278

    8Degree Themes
    Keymaster

    Hi there,
    Can you Please sent us link of your website?
    Thank you!!

  • #21308

    vynx
    Participant

    Have the same issue. Site= http://vynx.co.nz
    Doesn’t show in firefox, but does in chrome and edge.
    In the product page sidebar under the cart. On hover over the top right cart icon. Also on mobile (android at least).

  • #21309

    vynx
    Participant

    ** Doesn’t show in firefox if your logged in to wordpress admin **

  • #21310

    8Degree Themes
    Keymaster

    Hi there,
    Can you please test it by disabling all your plugins one by one? If it doesn’t work, please sent your temporary site credentials in support@8degreethemes.com then we will check your issue.
    Thanks!!

  • #21312

    vynx
    Participant

    So this is google analytics code from class-wc-google-analytics-js.php
    The ‘script’ tags that surround this code are getting stripped somewhere, any chance you could fix this up?

  • #21323

    8Degree Themes
    Keymaster

    Hi there,
    Can you please sent your temporary site credentials in support@8degreethemes.com then we will check your issue.
    Thanks!!

You must be logged in to reply to this topic.

Our New Release - Eight Degree Innovative Corporate Theme (EDICT)

EDICT is a clean and innovative business WordPress theme. This business theme, built fully on theme options with Redux Framework, comes up with three stunning homepage demo layouts that can be imported with just one click of a button. Not to mention it also includes three elegantly designed blog, portfolio and header layouts.

Click on the below image for more detail.

Edict  Eight Degree Innovative Corporate Theme

Please post your questions in the respective forum above.

All questions related to our Pro theme will be answered in less than 24 hours. All questions related to our Free theme will be answered in less than 48 hours.
Our Facebook page is the best place to get updated with themes, documentation, question/answers. Please like us here: