Skip to main content

Possible to populate custom field onShippingSave?

10 years 4 months ago #243785 by dyvel
Hi

I have a custom shipping plugin where I wan't to store some information to a custom field e.g. onShippingSave, something like:
Code:
function onShippingSave(&$order,&$methods,&$shipping_id) { $order->pakkeshop = $methods[$shipping_id]->shipping_description; }

$methods[$shipping_id]->shipping_description contains the info I like to populate into my custom order field called pakkeshop.

Is it possible to do?

Please Log in or Create an account to join the conversation.

10 years 4 months ago #243790 by Jerome
Hi,

onShippingSave affect the cart so you will have some issues.
Best is to use onBeforeOrderCreate, in that trigger you can be sure that you'll get your order object and the data will be stored in the database.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum