Magento 2.4
I already have my observer in place, but setting a custom subtotal for my item does not work. I am listening to the checkout_cart_product_add_after
event. This is my observer code:
$item = $observer->getEvent()->getData('quote_item');
$item->setQty(3); // works
$item->setCustomPrice(250); // works
$item->setOriginalCustomPrice(250); // works
$item->getQuote()->setSubtotal(250); // does NOT work ?
$item->setSubtotal(250); // does NOT work either?
No matter, it always multiplies the 250 (custom price) by 3 (custom qty). Any ideas how to solve this?