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

Improve master variant documentation #2521

Merged

Conversation

benjaminwil
Copy link
Contributor

I rebased some changes to the variants article for my last pull request, but I never ended up pushing those changes to origin.

These are changes that @gmacdougall requested when he reviewed my PR. They much improve the documentation currently in master.

My apologies for the mixup. 👍

Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

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

One tiny nit.

`Spree::Price`.
- If a product has more than one variant configured, then the master variant
does *not* provide the price and other properties to the line item. **In this
case, the master variant is not saleable**. Instead, it is used as a template
Copy link
Contributor

Choose a reason for hiding this comment

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

s/saleable/sellable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Martin! 👍

@benjaminwil benjaminwil force-pushed the products_and_variants_documentation branch from a008479 to 99b7474 Compare January 23, 2018 19:50
variant created for a product. When additional variants are created, they
inherit the properties of the master variant until their unique properties are
set.
Every product has a master variant. By default, the master variant is first
Copy link
Contributor

Choose a reason for hiding this comment

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

the master variant is first => the master variant is *the* first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Thanks. Rebased with this change.

Thanks to gmacdougall for his review.
@benjaminwil benjaminwil force-pushed the products_and_variants_documentation branch from 99b7474 to be00001 Compare January 25, 2018 21:02
@jhawthorn jhawthorn merged commit 7ad9274 into solidusio:master Jan 25, 2018
@benjaminwil benjaminwil deleted the products_and_variants_documentation branch April 30, 2018 18:28
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.

4 participants