Skip to content

allow passing criteria to product's getPrices method#98

Merged
lukeholder merged 2 commits into
1.xfrom
bugfix/allow-criteria-in-getPrices
Dec 1, 2025
Merged

allow passing criteria to product's getPrices method#98
lukeholder merged 2 commits into
1.xfrom
bugfix/allow-criteria-in-getPrices

Conversation

@i-just

@i-just i-just commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Description

Allows passing a query criteria array to the product’s getPrices() method.

The getPrices() method returns a collection of product prices, but it’s currently not possible to customise the query used to get those prices. This means that, for example, getting all the disabled prices for the product requires additional queries. With this PR, you’ll be able to customise which prices should be returned. For example, to get only the disabled prices for a product, you’ll be able to use product.prices({status: 'disabled'}).all().

Related issues

#97

@i-just
i-just requested a review from nfourtythree November 7, 2025 08:48
@lukeholder
lukeholder merged commit b161f31 into 1.x Dec 1, 2025
9 checks passed
@lukeholder
lukeholder deleted the bugfix/allow-criteria-in-getPrices branch December 1, 2025 07:52
@lukeholder

Copy link
Copy Markdown
Member

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants