From 9315b2a7ca0ad818eb9fe6e265029f052870f079 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 4 Sep 2012 12:51:57 +0000 Subject: [PATCH] // fixed #PSCFV-3900 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17164 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Product.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index d3bd2a01d..8ba9637a0 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2351,8 +2351,7 @@ class ProductCore extends ObjectModel && Configuration::get('VATNUMBER_MANAGEMENT')) $usetax = false; - $id_customer = 0; - if (Validate::isLoadedObject($context->customer)) + if (is_null($id_customer) && Validate::isLoadedObject($context->customer)) $id_customer = $context->customer->id; return Product::priceCalculation(