Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter unpriced products in taxon_preview #2604

Conversation

jhawthorn
Copy link
Contributor

Previously, taxon_preview would return products without prices, resulting in an error.

This commit makes it respect the current_pricing_options and filter products which are available in the current price.

Fixes #2602

@jhawthorn jhawthorn added the WIP label Feb 27, 2018
@jhawthorn jhawthorn force-pushed the filter_taxon_preview_by_current_pricing_options branch from 3294ff9 to c8d126d Compare February 27, 2018 23:22
@jhawthorn jhawthorn removed the WIP label Feb 28, 2018
@jhawthorn
Copy link
Contributor Author

Spec failure unrelated and should be fixed by #2607

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a little typo in the spec description, otherwise 👍

expect(page).to have_content("Superman T-Shirt", count: 2)
end

context "with prices in other currncy" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currncy

currency

Previously, taxon_preview would return products without prices,
resulting in an error.

This commit makes it respect the current_pricing_options and filter
products which are available in the current price.
@jhawthorn jhawthorn force-pushed the filter_taxon_preview_by_current_pricing_options branch from c8d126d to 93a5441 Compare March 7, 2018 18:44
@jhawthorn jhawthorn merged commit cf29a55 into solidusio:master Mar 7, 2018
@jhawthorn jhawthorn added this to the 2.5.0 milestone Mar 8, 2018
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