rubyonrailsin

A Ruby and Rails talk

Sunday, March 14, 2010


[spree-user] User Personalisation of Products

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I'm implementing personalisation for products, where a user can
personalise a product with text they supply. (I talked about this on
here a few weeks ago, but didn't get much correspondance)

After failing with this, I'm going back to the beginning ans I'm
trying to figure the logic I will need to implement this functionality
(and I would expect to release this as a plugin when I have developed
it).

I would appreciate some comments on my proposed logic, as stated
below.

======================================================
Each variant has many pers_options

pers_options stores a name, title and length (all of which will be
entered through the admin interface).

The product view will render each pers_option associated with the
variant.

Upon adding the product to the cart, the data input by the user in the
view is stored in a pers_details table, and the created line_item will
have many pers_details.
======================================================

One thing that I am worried about is a line_item is only ever created
once for a variant (per order) and then has its quantity incremented
if a user wants more. Surely this means that I can't store different
personalisation details for any variant that has a quantity of more
than 1?

I will look in to the implementation details once I am sure my logic
is correct.

(If I can't figure this out, I might need to resort to using Magento,
which has this functionality built-in. Wouldn't be my preferred
option...)

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive