Just use another set() method:
if ($value['pRange'] && $value['tags']) {
$wp_query->set('tax_query', array(
'relation' => 'OR',
array(
'taxonomy' => 'product_tag',
'field' => 'slug',
'terms' => $value['tags'],
),
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => $value['tags'],
),
array(
'taxonomy' => 'pa_branding',
'field' => 'slug',
'terms' => $value['tags'],
),
)
);
$wp_query->set('meta_query', array(
'relation' => 'AND',
array(
'key' => '_price',
'value' => array($value["pRange"][0], $value["pRange"][1]),
'compare' => 'BETWEEN',
'type' => 'NUMERIC'
)
)
);
}
Related Posts:
- Tax Query for custom Taxonomy field
- Hidden woocommerce products still showing up in search results [closed]
- WooCommerce conditional meta query
- WooCommerce: filter by parent product’s taxonomy and product variation’s meta data
- WordPress query through Products variation stock [closed]
- Woocommerce change tax rate programmaticly
- Filter WooCommerce Orders query with user meta data
- WooCommerce – Multiple meta query not working
- WP_Query with meta_query for children
- Filtering variable WooCommerce products by stock level using meta_query
- How to exclude a taxonomy from shop & search page wooCommerce?
- Need to check if user has completed a woo commerce payment
- Sort products by Sale price and stock status
- How to get rid of variations with unspecified attributes
- get woocommerce My account page link
- Where do the cart details are stored in database?
- Fetch Product information in WooCommerce
- New endpoint in my account gives 404 Error Woocommerce 3.6.5 and WP 5.2.2
- Add Custom CSS to Woocommerce Product Page in a specified category
- wc_get_product in a none woocommerce page
- How to echo billing phone number under My Account in Woocommerce? [closed]
- Unknow php file in wordpress core [closed]
- woocommerce_get_price filter hook not working for product variation price
- Woocommerce SKU on ALL products page [closed]
- Stop WooCommerce from updating user/user meta after checkout
- Displaying Custom Input Value to Customer Order Details (My Account) page in Woocommerce
- Get rid of product images mobile swipe functionality from WooCommerce single product [closed]
- Add custom order meta to Order Completed email
- How to upload Woocommerce product images via API? [closed]
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- show content of a page built using yootheme builder on different page/template
- Improve WooCommerce checkout process [closed]
- Do I need a different product type for WooCommerce [closed]
- Feed format for woocommerce [closed]
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- Have I got this IF Statement correct?
- WooCommerce Price Filter not working? [closed]
- get woocommerce product image url and price from database [closed]
- Trying to style Woocommerce sidebar Cart Widget [closed]
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Adding Field in WooCommerce
- Woocommerce Sort by default variation price
- Add Name and SKU Main Product to Secondary Product to Cart
- how to remove this image? [closed]
- separate functions for home VS other pages
- WooCommerce apply shipping rates based on price
- Extra items added to cart on refresh, woocommerce
- How disable some product features on woocomerce?
- WooCommerce – Split Multiple Items into Individual Line Items
- Change “Select Options” label in button to “Buy Now!” in store page
- How to add a special Woocommerce “buy now” button?
- Woocommerce: Any way to list all products *without* a specific attribute?
- Woocommerce product import exports product with price rounded to integer? [closed]
- How to hook to function of woocommerce product export _regular_price?
- Filter by Price filter button not working
- porto theme pagination on woocommerce not working
- Adding preference buttons to main nav that persist via user sessions. (Woocommerce)
- Woocommerce custom log in and register
- Is doing a database query in Woocommerce efficient to only display posts from a certain category?
- Call product search from custom hook
- CallBack URL for payment gateway redirecting to homepage instead of executing callback function
- Display when items are in Woocommerce cart but hide when empty
- Printing product variation return array to string conversion error
- woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output
- How to get cookie value?
- Woocommerce Disabling Auto Restocking for Cancelled Orders
- Custom pagination permalink structure Product page
- Woocommerce modifying the html on the checkout page?
- Pseudo class :before don’t working in a specific button
- How to speed up “My Account > Orders Page” on Site with More than 200,000 orders?
- Editing product categories suddenly crashes website and goes back to wordpress installation
- ACF in WooCommerce mail template
- Woocommerce – Default product image by user role
- WooCommerce product id as permalink
- Merge “description” and “additional informations” product tab
- I need to refresh the checkout page if someone changes the zip code
- Get user active posts randomly
- add_filter not works in ajax
- Website Tablet Check Out Field Issue
- WooCommerce order created via REST – sending the date_created along
- Add confirmation popup on place order button
- No results found for second level category
- Get Third Level Categories WooCommerce
- Change wp-login.php? Problem with .htaccess password protection and multi user shop
- Conditional email recipient based off Shipping Method [closed]
- Change WooCommerce Checkout Button – Reverts to normal
- Show pop up message for specific categoryies
- How to remove content from hacked pages? [closed]
- Disable WooCommerce Address State Dropdown
- How to show detailed order history on woocommerce product page [closed]
- Can I remove WooCommerce specific product categories from shop managers?
- Fetch products with filter by similar categories at same time
- Trying query woocommerce product order by menu order and stock status
- editing product page template – getting template for related products not working
- Disable Woocommerce Block Editor
- Woocommerce backend sorting product drag drop by menu_order to date
- Save customer email via WPForms on checkbox marking when placing the Woocommerce order
- Add another user role based on a defined input field in WordPress (Woocommerce)
- WooCommerce Webhook Action When a New Product Review was Submitted/Created
- Modify existing code to show user nickname in woocoomerce order email instead of user_login