Skip to content

Commit

Permalink
FIX: Inacurate roundings shipping
Browse files Browse the repository at this point in the history
replaced number_format with Tools::ps:round
  • Loading branch information
Casper-O committed Dec 2, 2017
1 parent a23f3f0 commit 5fe26ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gshoppingflux/gshoppingflux.php
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ private function getItemXML($product, $lang, $id_curr, $id_shop, $combination =
$xml_googleshopping .= '<g:shipping>' . "\n";
$xml_googleshopping .= "\t" . '<g:country>' . $country['iso_code'] . '</g:country>' . "\n";
$xml_googleshopping .= "\t" . '<g:service>' . $shipping['delay'] . '</g:service>' . "\n";
$xml_googleshopping .= "\t" . '<g:price>' . number_format($shipping['price'], 2, '.', ' ') . ' ' . $currency->iso_code . '</g:price>' . "\n";
$xml_googleshopping .= "\t" . '<g:price>' . Tools::ps_round($shipping['price'], _PS_PRICE_COMPUTE_PRECISION_) . ' ' . $currency->iso_code . '</g:price>' . "\n";
$xml_googleshopping .= '</g:shipping>' . "\n";
}
}
Expand Down

0 comments on commit 5fe26ff

Please sign in to comment.