Hi,

I'd like to implement an "add to cart" button in the category view
(for each product listed in the category). I've tried copying code
from product list... but it doesn't work... I mean it add a product to
the cart just not the one I've clicked on...and it's always the sam
product

Is this possible?

The code:
<input type="hidden" name="quantity" id="quantity-{{product.slug}}"
value="1" />
                        <input type="hidden" name="productname"
id="productname-{{product.slug}}" value="{{product.slug}}" />
                        <input type="submit" name="addcart" value="{%
trans "Add to cart" %}" class="btn" />

The form wrapps all the products... the whole category
<form id="options" action="{% url satchmo_smart_add %}" method="post">

Thanks!
BR

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en.

Reply via email to