Jump to content

opencart checkout, select store branch and pick-up date


Go to solution Solved by Yohanne,

Recommended Posts

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



Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • Solution

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');


SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data


<b>Notice</b>: Undefined index: branchname in <b>/home/octagon/public_html/ocs_shop/upload/catalog/controller/checkout/shipping_method.php
Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.