This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Product Collection: Add support for filtering products by featured status #11522
Merged
imanish003
merged 9 commits into
trunk
from
add/11358-product-collection-featured-products-filter
Nov 8, 2023
Merged
Product Collection: Add support for filtering products by featured status #11522
imanish003
merged 9 commits into
trunk
from
add/11358-product-collection-featured-products-filter
Nov 8, 2023
Commits on Oct 31, 2023
-
Add support for filtering products by featured status
- Added `featured` attribute to `ProductCollectionQuery` type to enable filtering by featured status. - Implemented `FeaturedProductsControl` to provide a toggle option in the inspector controls. - Integrated `FeaturedProductsControl` into `ProductCollectionInspectorControls`. - Added `get_featured_query` function in `ProductCollection` class to generate query for fetching featured products. - Updated existing functions and queries in `ProductCollection` class to support featured products filtering.
Configuration menu - View commit details
-
Copy full SHA for 9fc5471 - Browse repository at this point
Copy the full SHA 9fc5471View commit details -
Configuration menu - View commit details
-
Copy full SHA for b575ad8 - Browse repository at this point
Copy the full SHA b575ad8View commit details
Commits on Nov 1, 2023
-
Refactor handling of 'featured' parameter
This commit makes the handling of the 'featured' parameter consistent in the ProductCollection class. Previously, the 'featured' parameter was being type-casted to boolean, which was not necessary and could lead to incorrect results. Now, the 'featured' parameter is used directly without type-casting, and the check for 'featured' products in the get_featured_query method has been updated accordingly. This ensures that the 'featured' parameter is handled consistently and correctly throughout the class.
Configuration menu - View commit details
-
Copy full SHA for 3685504 - Browse repository at this point
Copy the full SHA 3685504View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a772ce - Browse repository at this point
Copy the full SHA 3a772ceView commit details -
Handle undefined 'featured' index
This commit adds null coalescing operator to handle the case when 'featured' index is not set in the $query array. This prevents potential PHP notices or errors that may arise when trying to access an undefined index.
Configuration menu - View commit details
-
Copy full SHA for a915457 - Browse repository at this point
Copy the full SHA a915457View commit details
Commits on Nov 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bb45dd0 - Browse repository at this point
Copy the full SHA bb45dd0View commit details
Commits on Nov 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6112133 - Browse repository at this point
Copy the full SHA 6112133View commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for db472a0 - Browse repository at this point
Copy the full SHA db472a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5fc783 - Browse repository at this point
Copy the full SHA d5fc783View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.