On checking we found that it is a compatibility issue with the theme Astra. The theme is removing the default shipping field from the shipping hook woocommerce_checkout_shipping and adding it to the billing hook woocommerce_checkout_billing. We will fix this compatibility issue in the next version of our plugin.
As of now, you can add the below filters in your child theme’s functions.php file to make the shipping address in the shipping step.
add_filter('astra_woo_shop_product_structure_override', '__return_true');
add_action( 'woocommerce_checkout_shipping', array( WC()->checkout(), 'checkout_form_shipping' ), 20);
Hope this will help 🙂
Thank you!
Hi,
Your code does work but on the final step it shows “next” button again. There suppose to be no more next button only previous and place order button. If you could disable the next button in the final step, it would be nice.
And your code snippet also works for another plugin which is silkpress.
Thanks for adding code snippet for next release of your plugin.
Thanks,
Shahi
You can add the below style in your theme’s Additional CSS to hide the next button in the last step.
.thwmscf-buttons .button-next:disabled {
display: none;
}
Hope this helps.
Thank you!
My shipping step shows up, but there are no fields to enter data into, only the Order Notes is visible. How would the customer enter different shipping details?
NM, I’m an idiot. The shipping fields don’t show up because I was testing with a downloadable (virtual) product. No shipping required.
-
This reply was modified 4 years, 2 months ago by cheepnis.
Thank you for letting us know.