Default country at checkout and logo size on mobile on checkout page
-
I need to set default country to IN in checkout. Also don’t show the country field at all to users.
I have done 2 things:
First, disabled country from shipping fields and billing fields using Checkout field editor.Second, inserted this code snippet:
add_filter( 'default_checkout_billing_country', 'change_default_checkout_country' ); add_filter( 'default_checkout_shipping_country', 'change_default_shipping_country' ); function change_default_checkout_country() { return 'IN'; // Billing country code } function change_default_shipping_country() { return 'IN'; // Shipping country code }
When we create an account at checkout the country is not saved for the user. And hence on all further orders no shipping method can be selected since country is not saved in user’s billing address and shipping address.
———————————————-
Second, if you see here litepace.com:
on all pages the logo size is different while at the checkout page it appears bigger. Same file is used. This happens only on mobile and looks same on desktop.
- The topic ‘Default country at checkout and logo size on mobile on checkout page’ is closed to new replies.