From 5cd674e35503837dd22997448d9a050dd65a9835 Mon Sep 17 00:00:00 2001 From: David Gonzalez Date: Fri, 29 Mar 2019 09:18:45 +0100 Subject: [PATCH] Fix double assignment --- gshoppingflux/gshoppingflux.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gshoppingflux/gshoppingflux.php b/gshoppingflux/gshoppingflux.php index 2f06df0..0c12e76 100644 --- a/gshoppingflux/gshoppingflux.php +++ b/gshoppingflux/gshoppingflux.php @@ -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 .= ''.$product['price_without_reduct'].' '.$currency->iso_code.''."\n";