/** * Form to capture users delivery details * * @return DeliveryDetailsForm */ public function DeliveryForm() { $form = DeliveryDetailsForm::create($this, 'DeliveryForm'); $data = Session::get("Checkout.DeliveryDetailsForm.data"); if (is_array($data)) { $form->loadDataFrom($data); } $this->extend("updateDeliveryForm", $form); return $form; }
/** * Form to capture users delivery details * * @return DeliveryDetailsForm */ public function DeliveryForm() { $form = DeliveryDetailsForm::create($this, 'DeliveryForm')->addExtraClass('forms')->addExtraClass('columnar')->addExtraClass('row'); $data = Session::get("Commerce.DeliveryDetailsForm.data"); if (is_array($data)) { $form->loadDataFrom($data); } $this->extend("updateDeliveryForm", $form); return $form; }