Thanks, Laszlo!

How did you indicate from the admin site that the product should never be added? I'm trying to avoid a solution that (1) uses a special value of some unrelated field as a flag, which I think is very bad practice in general, or (2) makes me customize the admin site with added controls and database fields, which I'd rather not undertake
if I have a choice.

Thanks again,

        - Allan


On Mon, 31 Jan 2011, Laszlo Antal wrote:

Hi,

I did that once and I used the signal to prohibit the product to be added to 
the cart.
I am not front of my editor but I think the signal name was something like
cart_add_veto

lzantal

On Jan 31, 2011, at 12:54, allan <[email protected]> wrote:

Hello all,

I need to be able to add products that are "Coming soon".  They will
have names, descriptions and attributes, but customers won't be able
to order them.

Has anyone done this?  What is a clean way to do it?

My best idea so far is to put them in a category named "Coming soon"
and then put logic that checks for this name into templates, e.g.,

{% if product.get_category.name != "Coming soon" %}
   ... <widget that adds product to cart> ...
{% endif %}

But this seems kludgy, fragile and hard to maintain.

Use a negative price as a flag that a product can't be ordered, and
check for that in the templates?  About as bad.  Maybe worse, since
some developer may think of some other use for negative prices in the
future!

Better ideas?

Many thanks,

- Allan

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


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


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