Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter bou3aa

    (@bou3aa)

    you can change this

    jQuery(document.body).on(‘added_to_cart’, function (evt, fragments, cart_hash, btn) {
    …………………….
    if (fly_to_cart) {
    let img_product = viwcaio_get_img_product(btn), sc_icon = jQuery(‘.vi-wcaio-sidebar-cart-icon-wrap’);

    by this and it will work immediately

    jQuery(document.body).on(‘click’, ‘.single_add_to_cart_button, .add_to_cart_button’, function () {
    ………………………..
    let img_product;
    if (jQuery(this).hasClass(‘single_add_to_cart_button’)) {
    img_product = jQuery(this).closest(‘.product’).find(‘.woocommerce-product-gallery__image a img’);
    } else {
    img_product = jQuery(this).siblings().children(‘img’);
    }
    let sc_icon = jQuery(‘.vi-wcaio-sidebar-cart-icon-wrap’);

Viewing 1 replies (of 1 total)