Yohanne Posted January 4, 2017 Share Posted January 4, 2017 Hi coders, i have added new fields for store branch and pick-up date, but i cannot insert the data in the said fields. i try many times but i cannot get it. so please help. give me an instruction where i did get wrong.. opecart v2.3 Quote Link to comment https://forums.phpfreaks.com/topic/302862-opencart-checkout-select-store-branch-and-pick-up-date/ Share on other sites More sharing options...
Destramic Posted January 13, 2017 Share Posted January 13, 2017 what errors have you got?...also if your storing in the database you want to be using DATE field type Quote Link to comment https://forums.phpfreaks.com/topic/302862-opencart-checkout-select-store-branch-and-pick-up-date/#findComment-1541361 Share on other sites More sharing options...
Solution Yohanne Posted January 23, 2017 Author Solution Share Posted January 23, 2017 when i add two text field below, branchname and pickdate i got the error message. if (!$json) { $this->session->data['shipping_method'] = $this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]]; $this->session->data['branchnamed'] = $this->request->post['branchname']; $this->session->data['pickup_dated'] = $this->request->post['pickup_date']; $this->session->data['comment'] = strip_tags($this->request->post['comment']); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); error.. SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data OK <b>Notice</b>: Undefined index: branchname in <b>/home/octagon/public_html/ocs_shop/upload/catalog/controller/checkout/shipping_method.php Quote Link to comment https://forums.phpfreaks.com/topic/302862-opencart-checkout-select-store-branch-and-pick-up-date/#findComment-1541904 Share on other sites More sharing options...
Yenta4 Posted February 9, 2017 Share Posted February 9, 2017 (edited) thanks Edited February 9, 2017 by Yenta4 Quote Link to comment https://forums.phpfreaks.com/topic/302862-opencart-checkout-select-store-branch-and-pick-up-date/#findComment-1542496 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.