Hi Brian,

On Oct 25, 11:39 am, "Brian O'Connor" <[email protected]> wrote:
> Id like to have a link with "Most Popular" products.  There seems to be a
> mention that this is possible in the satchmo docs, but I don't see how to
> get that information

I'm not sure if this exists, but it should be easy enough to create
using a template tag, look at how the template tag satchmo_recentlist
works (search Satchmo code itself).

>
> I'd like to also produce a listing of "On Sale" items as well as "New this
> month" items.

Again, if this does not exist, you can either do it as mentioned above
or you could create a view and template to display this info. You
could also create a product category called 'On Sale' and place the
products in there. With regards to determining what products are on
sale, you could do this in a number of ways (ie discounts, product
attribute etc.).

For instance, if you wanted to use a product attribute, called
'on_sale' you could retrieve a list of products with the following;

from product.models import Product
products = Product.objects.filter
(productattribute__name__exact='on_sale')

> My last (for now) question is about template overrides.  My intuition tells
> me that I'm supposed to create new templates in my local store, and have
> those override the default satchmo stuff, however i just want to make sure
> I'm not supposed to edit the satchmo code itself.

No you will not need to and shouldn't edit the Satchmo code.

> Is there a standard on where to put these new store templates?

You should put them in your sites templates directory, for instance;

yoursite.com/templates/shop/
yoursite.com/templates/payment/
yoursite.com/templates/product/

Most likely the bulk of what you will want to do will be in /shop/

If you install django debug toolbar (http://github.com/robhudson/
django-debug-toolbar) this can tell you what templates are being used
for what urls (note however there are quite a few uses of inclusion
tags (http://docs.djangoproject.com/en/dev/howto/custom-template-tags/
#inclusion-tags) within Satchmo which will not show up in the list of
templates in debug_toolbar).

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