なんらかの理由で、構成可能な製品の「バックオーダー」メッセージがカート ページに 2 回表示されます。エラー メッセージを次の Mage コードまで追跡しました。
if ($this->getBackorders() == Mage_CatalogInventory_Model_Stock::BACKORDERS_YES_NOTIFY) {
if (!$this->getIsChildItem()) {
$result->setMessage(
Mage::helper('cataloginventory')->__('This product is not available in the requested quantity. %s of the items will be backordered.', ($backorderQty * 1))
);
} else {
$result->setMessage(
Mage::helper('cataloginventory')->__('"%s" is not available in the requested quantity. %s of the items will be backordered.', $this->getProductName(), ($backorderQty * 1))
);
}
}
私はそれらのメッセージのそれぞれを取得しています。同じ製品を 2 回チェックしているようなものです。1 回は構成可能で、もう 1 回はシンプルです。
これは構成の問題であり、コード内で変更する必要があるものではないと考えています。この奇妙な動作の原因は何ですか?