Last active
October 3, 2018 16:34
-
-
Save BFTrick/6252640 to your computer and use it in GitHub Desktop.
Always display the shipping fields in WooCommerce even if the product is virtual. On [WordPress Answers](http://wordpress.stackexchange.com/questions/110342/woocommerce-always-include-shipping-information-in-checkout/110343#110343
) and on the [WooThemes Knowledge Base](http://support.woothemes.com/entries/25287857-Always-Include-Shipping-Inform…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_cart_needs_shipping', '__return_true' ); |
add_filter( 'woocommerce_cart_needs_shipping', '__return_true' );
This worked for me!
Cheers.
Both of these work for me, but I actually need to get woocommerce to show the Order Delivery Date option at checkout (without showing some of the other shipping options). Anyone know the variable I should use in the filter?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Filter name is incorrect, try
add_filter( 'woocommerce_cart_needs_shipping_address', '__return_true', 50 );