Open phinjensen opened 6 years ago
original author: Swistak
date: 2009-12-03T02:55:01-05:00
You might want to check http://github.com/swistak/spree-enchanced-option-types
It allows for everything you showed + much more.
original author: Steph Powell
date: 2009-12-12T00:57:38-05:00
Swistak,
As discussed in the spree user group (http://groups.google.com/group/spree-user) thread on option type extensions, my extension is very simple. I provided it to the community to be used as a simple option type variant display or as a good starting block for someone who wanted to implement customized product variant display.
In my extension, if a variant is out of stock, an "X" is shown so that the user cannot select that item instead of disabling the add to cart.
A user has plenty of control to define the order of option types, it's just that the order would be hard-coded in the extension rather than by using the database. This implementation is not robust, but again this simple extension can be used as a starting block for adding variant and option type functionality.
My extension has been tested and is in use on a live site. It also has no known JavaScript problems. The work completed for the client used JavaScript because it was on an older version of Spree with a different add to cart form. It was compatible with IE6, IE7, IE8, Chrome, FF, and Safari. The code provided here and in this version of the extension does not rely on any JavaScript.
The extension I worked on was initially done for a client, and I wanted to contribute the work to the Spree community by providing good documentation and examples of it's use. If you feel like incorporating some of my extension ideas into your extension, feel free. I think my extension serves as a manageable and useful way to make the variant display more elegant while keeping up with the quickly evolving Spree code base.
~Steph
original author: Anonymous
date: 2009-12-12T15:10:10-05:00
Hello again.
Since I liked Stephanies idea - A LOT.
I've incorportated 2d table as one of select options for Enchanced option types extension
Concept is really similar, only It should work out of box, you don't need to change any code (no hardcoding of option types/option values).
I hope you like it.
original author: mojo
date: 2010-08-18T06:44:23-04:00
Nice post, I have a question in related to OptionType posted on my blog here:
http://joneslee85.wordpress.com/
I hope you could help me out
Comments for https://www.endpointdev.com/blog/2009/12/rails-ecommerce-product-optioning-in/ By Steph Skardal
To enter a comment: