google checkout cart discount code

Issue #1354 resolved
Jason Buckner created an issue

The Google Checkout cart.xml file doesn't have support for discount codes applied to an order:

{{{ diff -r 7ecf86b07b3c satchmo/apps/payment/templates/shop/checkout/google/cart.xml --- a/satchmo/apps/payment/templates/shop/checkout/google/cart.xml Sat Oct 08 10:03:51 2011 -0500 +++ b/satchmo/apps/payment/templates/shop/checkout/google/cart.xml Fri Oct 14 13:41:05 2011 -0400 @@ -15,6 +15,14 @@ <unit-price currency="{{ currency }}">{{ orderitem.unit_price|truncate_decimal:2 }}</unit-price> <quantity>{{ orderitem.quantity|truncate_decimal:0 }}</quantity> </item>{% endfor %} + {% if order.discount != 0 %} + <item> + <item-name>Discount Code {{ order.discount_code }}</item-name> + <item-description>Discount Code {{ order.discount_code }}</item-description> + <unit-price currency="{{ currency }}">-{{ order.discount }}</unit-price> + <quantity>1</quantity> + </item> + {% endif %} </items> </shopping-cart> <checkout-flow-support>

}}}

Comments (1)

  1. Log in to comment