leroysabrina
Forum Replies Created
-
Hey,
I had to do this has well so i use this code :
add_action( 'woocommerce_checkout_process', 'suppress_check_local_pickuptime', 9 ); add_action( 'woocommerce_checkout_update_order_meta', 'suppress_check_local_pickuptime', 9 ); function suppress_check_local_pickuptime(){ $shipping_methods = $_REQUEST['shipping_method']; $has_local_pickup = false; foreach($shipping_methods as $shipping_method){ if(strpos($shipping_method, 'local_pickup') !== false){ $has_local_pickup = true; } } if(!$has_local_pickup){ $Local_Pickup_Time = Local_Pickup_Time::get_instance(); remove_action('woocommerce_checkout_process',array($Local_Pickup_Time, 'field_process')); remove_action( 'woocommerce_checkout_update_order_meta', array( $Local_Pickup_Time, 'update_order_meta' ) ); } }
It is in a custom plugin for me but you can paste it in functions.php
Hi again,
Considering this is not a free theme, we would be able to help you but it would require an longer intervention from someone in our team.
Please contact us at [email protected], we will be happy to give you a quotation.
Thanks
SabrinaThank you for your message,
Would you be able to let us know which theme you are using ?
We offer compatibility warranty only with storefront, however if your theme is use wodely, we can try to fix this issue.
Thanks a lot,
Have a good day,
SabrinaForum: Plugins
In reply to: [Hide Categories and Products for Woocommerce] Category still VisibleHi there,
Do you still experience issues with the plugin ?
I tried with the last version of WC and last version of the plugin, the category is hidden on produt page, and on list generated by WC.Maybe your list is generated by another theme, and it doesn’t allow for our filter to be applied ?
We use get_terms_args and get_the_terms filters to hide categories, maybe you can pass the information onto your developper ?have a nice day
Sabrina