Questions tagged [satchmo]

Satchmo is an open source Python framework for e-commerce web applications--it is built on top of the Django project. Use this tag for questions regarding Satchmo which are not more generally applicable to Django.

Satchmo is an open source Python framework for e-commerce web applications--it is built on top of the Django project. Use this tag for questions regarding Satchmo which are not more generally applicable to Django.

The Satchmo Project's home page can be found at http://www.satchmoproject.com/.

127 questions
0
votes
1 answer

Queryset equivalent of SQL

I'm trying to improve the performance of this code: orderitems = OrderItem.objects.filter(order__contact=contact) for orderitem in orderitems: try: pv = ProductVariation.objects.get(product=orderitem.product) if pv.parent_id ==…
handros
  • 597
  • 1
  • 5
  • 14
0
votes
2 answers

Tiered shipping problem in Satchmo

When I try to use the tiered shipping module in my store, I get the following error: TypeError at /shop/checkout/dummy/ object.__init__() takes no parameters Request Method: GET Request URL: …
Rahul
  • 568
  • 2
  • 6
  • 16
0
votes
1 answer

Using querysets properly

I'm pretty sure the following code can be done much more efficiently using querysets. I just don't know how. Any suggestions? Here's my code: orders = Order.objects.filter(contact=contact) for order in orders: for item in…
handros
  • 597
  • 1
  • 5
  • 14
0
votes
1 answer

Attaching a .png file to an email sent by satchmo

In a Satchmo Store, I need to attach a small .png (a barcode) to an email that django sends on completion of the order. The email is formatted in HTML using send_order_confirmation() which calls send_store_mail() (both part of satchmo.) Neither of…
handros
  • 597
  • 1
  • 5
  • 14
0
votes
1 answer

In satchmo, How to display price in featured products, home page and category page of products

I used {% if sale %} {{ product|discount_price:""|currency }} {% endif %} {{ product|discount_price:sale|currency }} This works without sale i.e.,…
Santosh S Kumar
  • 469
  • 1
  • 6
  • 30
0
votes
1 answer

Running Satchmo Store

Python2.7 , Django1.4 Browser: A server error occurred. Please contact the administrator. Server Error: File "/home/edinteri/public_html/old/boxdecor/admin.py", line 6, in from edinteriores.boxdecor.models import Boxdecor,…
Silence
  • 11
  • 6
-1
votes
1 answer

ModelForm fields order inaffected?

trying to alter order of fields in admin ModelForm. Bellow is my attempt, however order is kept unchanged. Added fields oi_number and vat_number are rendered at the end besides they are not at the end in self.fields SortedDict dictionary. class…
David Unric
  • 7,421
  • 1
  • 37
  • 65
1 2 3
8
9