0

カタログの価格設定ルールで Magento 1.8.0.0 にバグがありますか? 適切な価格でデータ フィードを取得しようとしていますが、1.8.0.0 では何も出力されませんが、1.8.1.0 では必要なものが得られます。

$store_id = 1; // Use the default store
$discounted_price = Mage::getResourceModel('catalogrule/rule')->getRulePrice( 
                Mage::app()->getLocale()->storeTimeStamp($store_id), 
                Mage::app()->getStore($store_id)->getWebsiteId(), 
                Mage::getSingleton('customer/session')->getCustomerGroupId(), 
                $_product->getId());

// if the product isn't discounted then default back to the original price
echo $discounted_price;`

残念ながら、私の開発サーバーは 1.8.1.0 で、私のライブ サイトは 1.8.0.0 を実行していますが、誰でも修正を提案できます。フロントエンド価格とプロモーション価格がすべて正しく表示されていることを追加する必要があります。そのため、データはどこかにあり、どこから取得すればよいか途方に暮れています。

4

1 に答える 1