• Hello!

    If the the size chart link is placed inside the variations form (see the first snippet below), the modal close button submits the form and the product is added to the Cart.

    function my_add_hook_custom_size_chart_position($position){
    	return 'woocommerce_before_variations_form';
    }
    
    add_filter('add_hook_custom_size_chart_position', 'my_add_hook_custom_size_chart_position');

    You can fix it by adding e.preventDefault() inside size-chart-for-woocommerce-public.js.

    $('div#md-size-chart-modal .remodal-close').click(function(e) {
    	e.preventDefault();
    	var modal = document.getElementById('md-size-chart-modal');
    	modal.style.display = 'none';
    });
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter MisterR

    (@mister_r)

    Alternatively, you can use another tag (eg. <span>) instead of <button>.

    Plugin Author Dotstore

    (@dots)

    Sure mister_r,

    We will check the best way and resolve it in our upcoming version.

    Thanks,

    Thread Starter MisterR

    (@mister_r)

    It is still not fixed in version 2.0.5.

    Thread Starter MisterR

    (@mister_r)

    It is still not fixed in version 2.0.6.

    Thread Starter MisterR

    (@mister_r)

    It is still not fixed in version 2.0.7.

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello mister_r,

    We have fixed your query in our latest version 2.0.8

    Can you please update to the latest version and let us know its fixed or not.

    We kindly request you to please revise the review.

    Best Regards,
    Hitendra & Dotstore team

    Thread Starter MisterR

    (@mister_r)

    We have fixed your query in our latest version 2.0.8

    It’s a complete lie! Your latest version doesn’t fix this bug!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Modal Close button submits the variations form’ is closed to new replies.