In woocommerce checkout page, there is usually a checkbox to choose a different shipping address.
We hid this checkbox and created two radio buttons "Ship to my billing address" or "Ship to a different address", where the option "Ship to my billing address" is selected by default.
What we have developed seems to work well but... it does not update shipping nor VAT calculations when "Ship to a different address" is chosen. Here the identified problems:
- To set "Ship to my billing address" as default option, and hide the shipping address fields, the line add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' ); has been added to the child theme's [login to view URL], so woocommerce_ship_to_different_address_checked remains always as false, and any change in the shipping address does not have any effect in shipping nor VAT calculation.
- The checkout update should also be fired when any of the two radio buttons are clicked. Actually it does not do that.
The behavior of the checkout page needs to be corrected using css, php or js.
44 pekerja bebas membida secara purata €135 untuk pekerjaan ini
Hi, So you want that calculation of shipping and VAT should be calculated as per selection but its not sending correct calculation. Right? Looking forward to discuss in detail. Thanks