New Feature - create a product with variants from a hash of option types & values #1189
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.
This pull request adds the ability to create variants for products from a hash of option_types and option_values. Basically you can do something like this:
Why?!
...so we can create new products & variants from prototypes! Once you select a prototype from the new product page you'll get a group of checkboxes for each option type and it's option values. Select whichever type/value combo you'd like then click create. Now visit the product variants page and see your newly created variants.
If you'd like to see it in action, just check out the video:
http://vimeo.com/37367111
Specs are included and all are passing 🍺 🍺