Tuesday 23 May 2006 8:05:28 pm
Hello! I've trying to setup a on-line shop. I've to create another page for products using this tutorial: http://www.sitepoint.com/article/ecommerce-website-ez-publish For your understanding the issue: I've a lot of products like this:
1) socks
size: 1, 2, 3
colors: white, blue, gray, orange price: XXX When a client choose more options for these socks, in the basket only display one product. I whant to display one product whith color per line, and calculate that. This is a model create based in my custom products:
<h1>{$node.name}</h1>
Nome
{attribute_view_gui attribute=$node.object.data_map.nome}
Descricao
{attribute_view_gui attribute=$node.object.data_map.description}
<h2>Opcoes</h2>
{attribute_view_gui attribute=$node.object.data_map.opcoes}
Imagem
{attribute_view_gui attribute=$node.object.data_map.imagem}
<h2>Preco</h2>
{attribute_view_gui attribute=$node.object.data_map.preco}
<form method="post" action={"content/action"|ezurl}>
<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>
Anyone have any idea to do that? ps: sorry about my english :)
|