Permalink
Browse files

use proper _total methods of Order model, include tax_total as tax_cart

  • Loading branch information...
1 parent 7cb9aee commit 5b07492d2f52cd83ae1fc17cc9aec1b46dd53f85 @tomash tomash committed Nov 16, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/views/checkout/_paypal_checkout.html.erb
@@ -19,7 +19,8 @@
<!-- input id="amount" name="amount" type="hidden" value="58.97" /-->
<input id="currency_code" name="currency_code" type="hidden" value="<%= Spree::Paypal::Config[:currency_code] %>" />
- <input id="handling_cart" name="handling_cart" type="hidden" value="<%= @order.shipment_cost %>" />
+ <input id="handling_cart" name="handling_cart" type="hidden" value="<%= @order.ship_total %>" />
+ <input id="tax_cart" name="tax_cart" type="hidden" value="<%= @order.tax_total %>" />
<!-- <input name="no_shipping" type="hidden" value="1" /> -->

0 comments on commit 5b07492

Please sign in to comment.