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

Comments for Rails Ecommerce Product Optioning in Spree #230

Open
phinjensen opened this issue Nov 11, 2017 · 4 comments
Open

Comments for Rails Ecommerce Product Optioning in Spree #230

phinjensen opened this issue Nov 11, 2017 · 4 comments

Comments

@phinjensen
Copy link
Contributor

phinjensen commented Nov 11, 2017

Comments for https://www.endpointdev.com/blog/2009/12/rails-ecommerce-product-optioning-in/
By Steph Skardal

To enter a comment:

  1. Log in to GitHub
  2. Leave a comment on this issue.
@phinjensen
Copy link
Contributor Author

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.

  • defining order of option types,
  • modifiers to price for option values,
  • easy generation of multiple variants from that option values (with price beeing sum of base price and all modifiers).
  • If some variants are missing (like you don't have Black XXL tshirts) you can remove variant, and option combination will be disabled (when you click XXL black button will become inactive)
  • It's tested

@phinjensen
Copy link
Contributor Author

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

@phinjensen
Copy link
Contributor Author

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.

@phinjensen
Copy link
Contributor Author

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

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

No branches or pull requests

1 participant