Page 1 of 1

Error in PhocacartOrder:: saveOrderMain()

Posted: 31 May 2018, 12:11
by srkuz
Hi,
I'm found an error in method PhocacartOrder:: saveOrderMain()

PHP Notice: Undefined index: comment in C:\home\hcproject\www\administrator\components\com_phocacart\libraries\phocacart\order\order.php on line 211

You coded: $d['comment'] = $data['comment'];

You should fix it: $d['comment'] = $data['phcomment'];

Because in the method PhocaCartControllerCheckout::order() you wrote: $item['phcomment'] = $this->input->get( 'phcomment', '', 'string' );

Best regards,
Sergey

Re: Error in PhocacartOrder:: saveOrderMain()

Posted: 31 May 2018, 13:18
by Jan
Hi, thank you very much for the info, which version do you use?


Jan

Re: Error in PhocacartOrder:: saveOrderMain()

Posted: 31 May 2018, 13:28
by christine
Hi Jan,

checked before. It's the latest (released) one. 3.1.0
Christine

Re: Error in PhocacartOrder:: saveOrderMain()

Posted: 31 May 2018, 13:58
by Jan
Ok, thank you. Will be fixed in next version.

Jan

Re: Error in PhocacartOrder:: saveOrderMain()

Posted: 13 Aug 2018, 23:43
by Jan
Hi, should be OK in version 3.1.1
https://www.phoca.cz/news/984-phoca-car ... 1-released

Jan