Videos

Commerce Fancy Attributes

Date Published: 
06/19/2012
Duration: 
06:08

This module provides a "Rendered term" attribute mode, that shows the rendered term instead of a radio button (degrades to a normal radio button when JS is off) on the add to cart form.

This module provides a "Rendered term" attribute mode, that shows the rendered term instead of a radio button (degrades to a normal radio button when JS is off) on the add to cart form.

Example usage:
0) Enable this module.
1) Create a Color vocabulary, add a text field called "Color" that will hold hex values.
Go to the "Manage Display" screen of that vocabulary, click the tab called "Add to Cart form - Attribute", enable only the color field (with the label hidden, and using the "Color" formatter).
2) Create several terms with matching hex colors (Black: #000000, White: #ffffff, etc).
3) Add a Color taxonomy_term_reference field to a product type.
4) When you add the color field on the product type, tick the checkbox "Enable this field to function as an attribute field on Add to Cart forms." and select "rendered term" as option of the "Attribute selection widget".

The Add To Cart form will now show the colors.
Of course, imagefields can be used instead of "textfields holding hex values" rendered as images.

Terms to link to Blog Posts: 

Comments

jhemsley30 on April 25, 2013

I'm not sure if you need to enable another module to get this working right. I couldn't understand some of the things he was saying.