Remove username and account password field from checkout page

Here is my answer and it’s working perfectly. function conditionally_remove_checkout_fields( $fields ) { // HERE the defined product Categories $categories = array(‘age-defying-skincare’,’az-brand-accessories’,’az-healthy-supplements’,’az-other-natural-products’,’Not available mwb_wgm_giftcard’,’little-geniuses-children’); $found = false; // CHECK CART ITEMS: search for items from our defined product category foreach ( WC()->cart->get_cart() as $cart_item ){ if( has_term( $categories, ‘product_cat’, $cart_item[‘product_id’] ) ) { $found = … Read more

Woocommerce Add prices

If you need to be able to add or remove an amount from standard prices at any time, you could add a custom field to WooCommerce’s settings pages, then modify the price of your products using the built-in filter. Here is how I would do it: (this would go in your theme’s functions.php file) /** … Read more