To update an attribute like order attribute, product attribute etc…, without save, here is the solution :

$order->setMyAttribute($myValue);
$order->getResource()->saveAttribute($order, 'my_attribute');
Easily update object’s attributes without save (orders, products etc…)

Leave a Reply

Your email address will not be published. Required fields are marked *

We use cookies to ensure that we give you the best experience on our website.
Ok