I want to set custom data in quote item from plugin. i have shipping rates in an array.If i set data rates array array in addition_data from that plugin it appears correctly in checkout_onepage_controller_success_action event.
Is that correct way to set custom data inside addition_data ?

i am doing something like this in plugin

$shipping_rates[$shiping['method_name']] = $shiping['fee'];

If i am doing wrong then please suggent me anyother way so that i set any custom array from plugin and retrieve that custom array during checkout event. I also want to know the exact purpose of additiol_data colum in quote _item table.

  • No answers so far? – Bunyamin Inan Feb 18 '19 at 15:53
  • i believe this column is to add custom attributes data. – Ashar Riaz Feb 18 '19 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.