From 26c0dbde941c111c2da6b9a29356c3dbdded28ec Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 2 Apr 2012 07:54:16 +0000 Subject: [PATCH] // Fixed missing deprecated methods ... #PSFV-735 --- classes/Product.php | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index e19970e77..a9a0ada79 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2014,7 +2014,7 @@ class ProductCore extends ObjectModel $tab_id_product[] = (int)$product['id_product']; else $tab_id_product[] = (int)$product; - + $front = true; if (!in_array($context->controller->controller_type, array('front', 'modulefront'))) $front = false; @@ -2459,7 +2459,7 @@ class ProductCore extends ObjectModel // convert only if the specific price is in the default currency (id_currency = 0) if (!$specific_price || !($specific_price['price'] > 0 && $specific_price['id_currency'])) $price = Tools::convertPrice($price, $id_currency); - + // Attribute price if (!$specific_price || !$specific_price['id_product_attribute']) { @@ -4884,4 +4884,27 @@ class ProductCore extends ObjectModel VALUES ('.(int)$this->id.', '.(int)$shop->id.', '.(int)$this->id_category_default.') ON DUPLICATE KEY UPDATE `id_category_default` = '.(int)$this->id_category_default); } + + /** + * @deprecated 1.5.0.10 + * @see Product::getAttributeCombinations() + * @param int $id_lang + */ + public function getAttributeCombinaisons($id_lang) + { + Tools::displayAsDeprecated('Use Product::getAttributeCombinations($id_lang)'); + return $this->getAttributeCombinations($id_lang); + } + + /** + * @deprecated 1.5.0.10 + * @see Product::deleteAttributeCombination() + * @param int $id_lang + */ + public function deleteAttributeCombinaison($id_product_attribute) + { + Tools::displayAsDeprecated('Use Product::deleteAttributeCombination($id_product_attribute)'); + return $this->deleteAttributeCombination($id_lang); + } + }