1

店舗で選択した商品にカスタム属性を追加する必要があります。そのために、Model_Price_Observer を使用しています。Magento 1.7 を使用しています。これまでのところ、カスタム属性を追加することはできますが、計算された価格が間違っています - 税金がありません。

私のコードは(一部)です:

    $quote_item->getProduct()->setIsSuperMode(true);
    $quote_item->setOriginalCustomPrice( $customprice );
    $quote_item->setCustomPrice( $customprice );

    $quote_item->setTaxAmount($taxAmount);
    $quote_item->setBaseTaxAmount($taxAmount);

私が間違っていることは何ですか?

正しいトリガーを使用していますか?

4

1 に答える 1