Skip to content

Commit

Permalink
Merge pull request #431 from dave-lp/patch-2
Browse files Browse the repository at this point in the history
Update standard.tpl to fix too many decimals from tax mathematics that stops order convert
  • Loading branch information
François Gaillard committed Aug 7, 2015
2 parents b859eef + 4c406fc commit bab5da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paypalusa/views/templates/hook/standard.tpl
Expand Up @@ -42,7 +42,7 @@
{if $paypal_usa_total_discounts == 0}
{foreach from=$cart->getProducts() item=paypal_usa_product name="paypal_usa_products"}
<input type="hidden" name="item_name_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.name|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.price|floatval}" />
<input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.price|string_format:"%.2f"}" />
<input type="hidden" name="quantity_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.quantity|intval}" />
{/foreach}
{assign var="paypal_usa_total_shipping" value=$cart->getOrderTotal(true, Cart::ONLY_SHIPPING)}
Expand Down

0 comments on commit bab5da8

Please sign in to comment.