karthiiiiiiiiiik Posted February 25, 2014 Share Posted February 25, 2014 (edited) Hi to all, Is there any hook available for creating new order status while installing the module.... Edited February 25, 2014 by karthik who_am_i (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted February 25, 2014 Share Posted February 25, 2014 I would suggest searching native ps modules for 'new OrderState' this will allow you add order states at module install Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 $orderState = new OrderState(); $orderState->name = array(); foreach (Language::getLanguages() AS $language) { if (strtolower($language['iso_code']) == 'fr') $orderState->name[$language['id_lang']] = 'Autorisation acceptée par PayPal'; else $orderState->name[$language['id_lang']] = 'Authorization accepted from PayPal'; } $orderState->send_email = false; $orderState->color = '#DDEEFF'; $orderState->hidden = false; $orderState->delivery = false; $orderState->logable = true; $orderState->invoice = true; if ($orderState->add()) a part of paypal module, full solution just use own translations, colors etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now