[*] Core: conversion_rate of currencies are now multishop

This commit is contained in:
Rémi Gaillard
2012-12-20 11:35:20 +01:00
parent e87d0f9337
commit 2a14176055
6 changed files with 19 additions and 2 deletions
+7
View File
@@ -830,6 +830,13 @@ class CartCore extends ObjectModel
$id_product_attribute = (int)$id_product_attribute;
$product = new Product($id_product, false, Configuration::get('PS_LANG_DEFAULT'), $shop->id);
if ($id_product_attribute)
{
$combination = new Combination((int)$id_product_attribute);
if ($combination->id_product != $id_product)
return false;
}
/* If we have a product combination, the minimal quantity is set with the one of this combination */
if (!empty($id_product_attribute))
$minimal_quantity = (int)Attribute::getAttributeMinimalQty($id_product_attribute);