Error in PhocacartOrder:: saveOrderMain()

Phoca Cart - complex e-commerce extension
srkuz
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 May 2018, 11:47

Error in PhocacartOrder:: saveOrderMain()

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in PhocacartOrder:: saveOrderMain()

Post by Jan »

Hi, thank you very much for the info, which version do you use?


Jan
If you find Phoca extensions useful, please support the project
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Error in PhocacartOrder:: saveOrderMain()

Post by christine »

Hi Jan,

checked before. It's the latest (released) one. 3.1.0
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in PhocacartOrder:: saveOrderMain()

Post by Jan »

Ok, thank you. Will be fixed in next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in PhocacartOrder:: saveOrderMain()

Post by Jan »

Hi, should be OK in version 3.1.1
https://www.phoca.cz/news/984-phoca-car ... 1-released

Jan
If you find Phoca extensions useful, please support the project
Post Reply