Skip to content

Commit

Permalink
Merge pull request #75 from davidglezz/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper-O authored Mar 29, 2019
2 parents 05de115 + 5cd674e commit 6891996
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 @@ -2440,7 +2440,7 @@ private function getItemXML($product, $lang, $id_curr, $id_shop, $combination =
$no_tax = (!$use_tax ? true : false);
$product['price'] = (float) $p->getPriceStatic($product['id_product'], $use_tax, $combination) * $currency->conversion_rate;
$product['price_without_reduct'] = (float) $p->getPriceWithoutReduct($no_tax, $combination) * $currency->conversion_rate;
$product['price'] = $product['price'] = Tools::ps_round($product['price'], _PS_PRICE_DISPLAY_PRECISION_);
$product['price'] = Tools::ps_round($product['price'], _PS_PRICE_DISPLAY_PRECISION_);
$product['price_without_reduct'] = Tools::ps_round($product['price_without_reduct'], _PS_PRICE_DISPLAY_PRECISION_);
if ((float) ($product['price']) < (float) ($product['price_without_reduct'])) {
$xml_googleshopping .= '<g:price>'.$product['price_without_reduct'].' '.$currency->iso_code.'</g:price>'."\n";
Expand Down

0 comments on commit 6891996

Please sign in to comment.