Thread Starter
Rempty
(@rempty)
This is the code used
add_filter('woocommerce_checkout_fields', 'remove_checkout_fields', 100);
function remove_checkout_fields( $fields ) {
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_city']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_country']);
unset($fields['billing']['billing_state']);
unset($fields['billing']['billing_address_1']);
unset($fields['billing']['billing_address_2']);
return $fields;
}
Ok, I found the problem, please close it
-
This reply was modified 5 years, 2 months ago by Rempty.
-
This reply was modified 5 years, 2 months ago by Rempty.
-
This reply was modified 5 years, 2 months ago by Rempty.
-
This reply was modified 5 years, 2 months ago by Rempty.
Edit dgd-scrollbox.php line 75
$post=get_queried_object();
and change to:
global $post;