On 09/05/2011 11:11 AM, Dan Gentry wrote:
I'm also open to other suggestions.  My goal is to not have a customer
try to put a sold item in the cart before being told it isn't
available.

Did you try unchecking "Allow checkout with 0 inventory?" on settings?
You can also try wrapping the checkout button on something like {% if product.in_stock %} {% endif %}

For example... on product.html template

{% if product.in_stock %}
<form id="options" action="{% url satchmo_smart_add %}" method="post">
{% trans "Quantity" %} <input type="text" size="5" name="quantity" id="quantity" value="1" class="priced" /> <input type="hidden" name="productname" id="productname" value="{{product.slug}}" />
<input type="submit" name="addcart" value="{% trans "Add to cart" %}" />
{% endif %}

You might also want to make "price" disappear using this same method.

Cheers,
Orion Vianna

--
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