Hide 'order by' control for the Hand-Picked collection
This commit is contained in:
parent
16bb48c5a0
commit
88e04f1b3a
|
@ -86,7 +86,10 @@ const ProductCollectionInspectorControls = (
|
|||
const showFilterableControl =
|
||||
! isArchiveTemplate && shouldShowFilter( CoreFilterNames.FILTERABLE );
|
||||
const showOrderControl =
|
||||
showQueryControls && shouldShowFilter( CoreFilterNames.ORDER );
|
||||
showQueryControls &&
|
||||
shouldShowFilter( CoreFilterNames.ORDER ) &&
|
||||
// See https://github.com/woocommerce/woocommerce/issues/50862
|
||||
attributes.collection !== 'woocommerce/product-collection/hand-picked';
|
||||
const showOnSaleControl = shouldShowFilter( CoreFilterNames.ON_SALE );
|
||||
const showStockStatusControl = shouldShowFilter(
|
||||
CoreFilterNames.STOCK_STATUS
|
||||
|
|
Loading…
Reference in New Issue