Thanks, Marc,

I like your solution. I'll add it to my options. At this point I am only 
dealing with "U.S." and "not U.S.", so the many-to-many may not be necessary. 
(Basically the product is either available in the U.S. or it is not.) Though 
there is always a chance that I will need exactly what you are talking about, 
and having the many-to-many would certainly be helpful there.

Thanks again.

Joe

On Monday, May 16, 2011 at 11:21 AM, Dierckx, Marc wrote: 
> Hello,
> 
> I had a similar issue in Europe where the company I work for has localised 
> products for every country. We only wanted to show the customers the products 
> for their country and not confuse them with products offered to other 
> countries. This can only be achieved if you now the origin of the request and 
> show the appropriate products.
> 
> We set up the following framework :
> 
> - a template context processor to add the origin of the country to the context
> - extension of the product model to include a ManyToManyField to countries 
> (over a OnetoOne relationship - no inheritance)
> - change the product templates to only show the products insofar they are 
> linked to the country
> 
> As always there are indeed many solutions in wonderfull django/satchmo to 
> achieve the goal.
> 
> p.s. the country in the context is also used to change the currency of the 
> offer. There is also a ManyToMany Relationship to currencies in the extension 
> of the product model.
> 
> regards,
> 
> marc
> 
> -----Ursprüngliche Nachricht-----
> Von: [email protected] im Auftrag von Joe K
> Gesendet: Mo 16.05.2011 18:36
> An: Satchmo users
> Betreff: Best way to handle "International Only" products?
> 
> My client (a U.S. company) had 3 types of products:
> - products available to all customers (Standard)
> - products available to only those within the U.S. (U.S. Only)
> - products available to only those outside of the U.S. (International
> Only)
> 
> We are kicking around a few ideas for how best to handle this. We
> could add a product attribute that specifies the type, or handle it
> with a custom shipping module, or set up categories such as
> "International Only" and "U.S. Only". All of these seem like they
> could work, but also seem to be an incomplete solution.
> 
> So what is the "right" way to handle something like this?
> 
> Thanks in advance.
> 
> Joe K
> 
> -- 
> 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.
> 
> Attachments: 
> - winmail.dat
> 
> 

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