On Thu, Oct 2, 2008 at 9:51 AM, mengkuan <[EMAIL PROTECTED]> wrote:

>
> On Oct 3, 12:39 am, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote:
> > 1) Make a templates directory for your store
> > 2) Add it to your TEMPLATE_DIRS at the top of the list so that it will be
> > first in the search order
> > 3) Make a directory in your new templates dir: satchmo/templates/email/
> > 4) Copy the file in there and edit to your desire.
>
> Sorry, I think I wasn't clear in the way I phrase my question.
>
> This is from email_complete.txt:
>
> {% trans "Total" %}
> -----
> {% if order.discount %}
> {% trans "Discount" %} - {{order.discount|currency}}
> {% endif %}
> {% if order.is_shippable %} {% trans "Shipping" %} +
> {{order.shipping_sub_total|currency}} {% endif %}
> {% if order.tax %}
> {% trans "Tax" %} + {{order.tax|currency}}
> {% endif %}
> {% trans "Total" %} = {{order.total|currency}}
>
> Even if there is no discount, the order is not shippable and there is
> no tax, the email generated contains extra whitespace in lines 3 to 5
> as seen here:
>


Ah, just get rid of the whitespace like so:
{% if order.discount %}{% trans "Discount" %} -
{{order.discount|currency}}{% endif %}

---
Bruce Kroeze
http://gosatchmo.com

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