This is what I tried:
/storefront/controller/pages/checkout/guest_step_3.php
On line 76, insert this:
if ($this->request->is_POST()){
$this->session->data['comment'] = $this->request->post['comment'];
$this->extensions->hk_ProcessData($this);
}
On line 165, insert this:
$form = new AForm();
$form->setForm(array ('form_name' => 'guest'));
$this->data['form']['form_open'] = $form->getFieldHtml(
array (
'type' => 'form',
'name' => 'guest',
'action' => $action,
'csrf' => true
)
);
$this->data['form']['comment'] = $form->getFieldHtml(
array (
'type' => 'textarea',
'name' => 'comment',
'value' => $this->data['comment'],
'attr' => ' rows="3" style="width: 99%" '));
/storefront/controller/pages/checkout/guest_step_2
Remove (comment out) line 114 and lines 411-417.
////mytemplate/pages/checkout/confirm.tpl
On line 70, insert this:
<div class="ted"><h4 class="heading4"><?php echo $text_comment_dave; ?></h4></div>
<div class="registerbox">
<div class="content">
<?php echo $form['comment']; ?>
</div>
</div>
////mytemplate/pages/checkout/guest_step_2.tpl
Remove (comment out) the heading, registerbox, and form-comment from guest_step_2.
Outcome:
The Order Comments box is now located on GS3-Confirm page, but it doesn't work.
The customer comments are not transmitted to AC system. They cannot be viewed anywhere, they don't exist.
Can you help?
Thanks.