Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magicsetter when sales_order_place_after event
 
bauchinj
Jr. Member
 
Total Posts:  23
Joined:  2009-07-29
 

hello community!

I have to change some values in order, when sales_order_place_after event is thrown.

$order $observer->getEvent()->getOrder();
$subtotal $order->getSubtotalInclTax();

This works fine, but if I try to set some value (e.g.):

$order->setTaxAmount($tax);
$order->save();
It don’t work, I don’t see any error in the logs, but no order is created and checkout process starts again. Are there any suggestions?

Thank you very much!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top