我需要配置产品价格范围,例如
对于产品名称:$140 - 310 我使用以下代码
if(Mage::getSingleton('customer/session')->isLoggedIn())
{
// Get group Id
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
}
else
{
$groupId = 0;
}
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
$result = $db->query('SELECT price ,final_price, min_price, max_price, tier_price, group_price FROM catalog_product_index_price WHERE entity_id='.$_product->getId().' AND customer_group_id ='.$groupId.' ORDER BY customer_group_id ASC LIMIT 1');
$rows = $result->fetch();
我还需要配置产品的常规价格范围。我也认为我在产品名称之后的范围是错误的,因为我Your Price have a price $135
怎样才能获得最低价值和最高特价以及正常价格?
我怎么能得到那个?
谢谢并恭祝安康