|
Loading...
|
spree-user@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
[spree-user] Re: Access product property in template William Pramana Thu Feb 23 05:00:31 2012
Thank you John! On Feb 21, 11:07 pm, John Hwang <[EMAIL PROTECTED]> wrote: > William, > > You could probably add something like this to your application helper > to access a specific value of a property: > > def property_values_for(product, property_name) > return nil unless property = product.properties.find_by_name(property_name) > return nil unless product_properties = > product.product_properties.find_by_property_id(property.id) > product_properties.value > end > > https://gist.github.com/1877182 > > /John > -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
- [spree-user] Access product property in template William Pramana 2012/02/18
- Re: [spree-user] Access product property in template Ryan Bigg 2012/02/18
- Re: [spree-user] Access product property in template John Hwang 2012/02/21
- [spree-user] Re: Access product property in template William Pramana 2012/02/23 <=