WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Reverse checkbox

Reverse checkbox

  • I’d like to reverse checkbox on checkout page, that as it is checked off the shipping form is hidden. I found and changed this line in checkout.js

    $('#shiptobilling input').change(function(){
    		$('div.shipping_address').hide();
    		if (!$(this).is(':checked')) {
    			$('div.shipping_address').slideDown();
    				}

    to

    $('#shiptobilling input').change(function(){
    		$('div.shipping_address').slideDown();
    		if (!$(this).is(':checked')) {
    			$('div.shipping_address').hide();
    		       	}

    it’s work fine but after order the shipping-form data not updating, it’s still the same as billing-form data. How to fix it?

    https://wordpress.org/plugins/woocommerce/

  • The topic ‘Reverse checkbox’ is closed to new replies.
Skip to toolbar