| Wednesday 13 January 2010 11:01:42 am 
                                                                 Well, after a few searches, I found a way to do that. First, I added some Option attributes in my class Product ("sample_colors", "sample_sizes"). Then, in the cart's form I added some "attribute_view_gui attribute" to display some drop-down menus with the options I filled in the admin : 
<form method="post" action={"content/action"|ezurl}>{attribute_view_gui attribute=$node.data_map.sample_colors}
 {attribute_view_gui attribute=$node.data_map.sample_sizes}
 <input type="submit" class="defaultbutton" name="ActionAddToBasket" value="{"Add to basket"|i18n("design/base")}" />
 <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
 <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
 <input type="hidden" name="ViewMode" value="full" />
 </form>
 Now, the options are added to the product when ordering and I can see them in the admin. The last thing wrong now is the email sent, which doesn't include them. But I guess it's not a big deal. If someone knows how to do that, thanks ;) I hope it will be useful for someone. |