Skip to content

Add scope to show only products which are not assemblies#144

Open
vinay-mittal wants to merge 1 commit into
spree-contrib:masterfrom
vinay-mittal:show_only_not_assembly_in_available_products
Open

Add scope to show only products which are not assemblies#144
vinay-mittal wants to merge 1 commit into
spree-contrib:masterfrom
vinay-mittal:show_only_not_assembly_in_available_products

Conversation

@vinay-mittal

Copy link
Copy Markdown

A scope in the product with name without_parts is added. As currently when available products are searched, it shows all the products including those which are assemblies.
An assembly product should only be able to add only non-assembly products.

@jkelleyj

Copy link
Copy Markdown

@vinay-mittal @priyank-gupta this PR looks good to me. I think that's a sensible condition to put on parts. Am I correct that this edge case can only happen if someone marks a product that is an assembly as "can be part" in the admin?

@priyank-gupta

Copy link
Copy Markdown

@jkelleyj Yeah

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.

3 participants