magento-configurable-simple
magento-configurable-simple copied to clipboard
Multistore special price issue
Hello i've a multistore site on 1.9.2 if i put special price on admin storeid 0 it works correctly if i add special price only on single site it doesn't work on configurable product, i check the file /app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Product/Type/Configurable/Price.php and i think the problem is in it, it don't filter the storeid in collection. Can someone help me?
i fix it
public function getChildProductWithLowestPrice($product, $priceType, $checkSalable=true)
{
$childProducts = $this->getChildProducts($product, $checkSalable);
if (count($childProducts) == 0) { #If config product has no children
return false;
}
$minPrice = PHP_INT_MAX;
$minProd = false;
foreach($childProducts as $childProduct) {
$pro=Mage::getModel('catalog/product')->load($childProduct->getId());
if ($priceType == "finalPrice") {
$thisPrice = $pro->getFinalPrice();
} else {
$thisPrice = $pro->getPrice();
}
if($thisPrice < $minPrice) {
$minPrice = $thisPrice;
$minProd = $pro;
}
}
return $minProd;
}
thank you so much, I very very need it