I have an extension using the store_order_item_add_end hook.

I can set field values such as $item->price and $item->weight - but I cannot change the content of $item->modifiers.

I've also tried going via the $order->items array.

I have an existing modifier value I need to update. I can read its contents fine - but any changes I make are never reflected.

1 Answer 1


Apparently the key is to use:

$modifiers = $item->modifiers;

// modify the $modifiers data


in the store_order_item_add_end hook.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.