On Wed, Feb 24, 2010 at 3:53 PM, Vik <[email protected]> wrote:

> We want to charge US customers in US Dollars and canadian customers in
> canadian dollars which is not happening as paypal converts the US
> dollars to the primary currency.
>
>
If you are charging them the same dollar amount, with no conversion, it is
actually pretty easy.

Make a filter to do this.  Here's some pseudo-code for you:

@register.filter
def smart_currency(order):
   currencies = { "US" : "USD", "CA" : "CAD" }
   return currencies.get(order.bill_country, 'USD')

Then copy payment/templates/shop/checkout/paypal/confirm.html to your
templates.  Load your currency tag library and update the {{ currency_code
}} part, changing to "order|smart_currency".

Let me know if that works for you.

-- 
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

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