Home Forums WoodMart support forum QuickView when someone click on woocommerce bundle product title

QuickView when someone click on woocommerce bundle product title

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

    spnutratea
    Participant

    Hi Artem,

    I am building a product bundle page in conjunction with WooCommerce Product Bundles plugin.

    How can I achieve quick view link when someone clicks the WooCommerce bundle title? I found the your code snippet below.

    jQuery(‘body’).on(‘click’, ‘ .bundled_product_title, .product_title’, function(e) {
    e.preventDefault();
    jQuery(this).parents(‘.product-grid-item’).find(‘.open-quick-view’).click();
    });

    It seems the code is not working properly.

    Kind regards,
    SP

    #688278

    spnutratea
    Participant

    jQuery(‘body’).on(‘click’, ‘.wd-product-title, .wd-product-info .product-title, .product-bundle-title’, function(e) {
    e.preventDefault();

    // Trigger WoodMart quick view button inside the product wrapper
    jQuery(this).closest(‘.wd-product-wrapper’).find(‘.quick-view’).trigger(‘click’);
    });

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