Hi,
as a relative newcomer to Satchmo, I'm looking for a solution how to
display all products paginated, in any template.
I've written following custom templatetag, but dunno if it's necessary:
from django import template
from product.models import Product
register = template.Library()
@register.assignment_tag
def all_products():
return Product.objects.all().order_by('name')
I'd like to display all products like it's done in product/category.html
template, but even if I do load satchmo_category templatetags in my custom
template, `products' tag is empty (missing context ?).
Any advice is appreciated.
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/groups/opt_out.