order - Drupal commerce save personnal field -


i'm new drupal commerce ...

i added 2 fields in order table : field_date_de_livraison (text) , field_info_comp_cmde (long text).

in personalized pane , try save entered values ​​with code :

function pane_date_livraison_checkout_form_submit($form, &$form_state, $checkout_pane, $order) {

if (!empty($form_state['values'][$checkout_pane['pane_id']])) {     $date_saisie = $form_state['values'][$checkout_pane['pane_id']];         if (!empty($date_saisie['date_livraison'])) {         $date_sauvegarde = new datetime($date_saisie['date_livraison']);                     $date_sauvegarde = $date_sauvegarde->format('d/m/y');                                 $order->field_date_de_livraison = $date_sauvegarde;     }     if (!empty($date_saisie['info_comp'])) {         $order->field_info_comp_cmde = $date_saisie['info_comp'];     }                 }  dpm($order, "return_submit", $type = 'status');       

}

with dpm , see values ​​assigned variables , not saved table?

thank's answers !


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -