Hi,
I have a checkout page using Wordpress with Woocommerce. It has a checkbox that says "Deliver to another address." I want that to be always selected, which it is at the moment but I do not want users to be able to unselect it. I have hidden the checkbox with css but, the user can click on the text and this toggles the checkbox. This is the code I found which I think refers to it:
<h3 id="ship-to-different-address">
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">
<input id="ship-to-different-address-checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" <?php checked( apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ), 1 ); ?> type="checkbox" name="ship_to_different_address" value="1" /> <span><?php esc_html_e( 'Property Details', 'woocommerce' ); ?></span>
</label>
</h3>
Can I amend this so either the text isn't clickable or it is just a label and there is no checkbox at all (but the page acts like the checkbox has been selected)?
Thank you!