Code: Select all
<input type="text" name="name" value="{{ name }}" id="input-name" class="form-control" />

OpenCart 3.0.2.0
Code: Select all
<input type="text" name="name" value="{{ name }}" id="input-name" class="form-control" />
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Code: Select all
<input type="text" name="name" value="{{ name }}" id="input-name" class="form-control" />
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
This is the correct file path, sorry for the confusion.by mona wrote: ↑Tue Jun 14, 2022 7:58 pmis not correct code for catalog/controller/information/contact.phpCode: Select all
<input type="text" name="name" value="{{ name }}" id="input-name" class="form-control" />
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Using OC 3.0.2.0 (mentioned at the bottom of the original post). The only change is with styling/css, otherwise it's the same code for the contact.twig file. Regarding the 'name' text, refer to the code in /catalog/view/theme/default/template/information/contact.twig. There is no extension being used with the contact form.The screenshot shows that it is not a standard OpenCart. Some modifications were done it, and without more details or URL nobody will be able to help here. A standard OpenCart 3.0.3.8 does not have this issue, hence it's likely an extension bug, in which case it might also be a good idea to contact the extension author.
Code: Select all
<input type="text" name="name" value="{{ name }}" id="input-name" class="form-control" />
There are only very few users who created incident requests in the past on the forum about this issue while using the "name". However, this issue is not a frequent thing. One way to test this out would be from your developers kit > console tab and notice if there are any errors showing. Take note that errors that may be shown may not reflect to others whereas other users may not be impacted with this particular issue.msklut wrote: ↑Tue Jun 14, 2022 11:43 pmUsing OC 3.0.2.0 (mentioned at the bottom of the original post). The only change is with styling/css, otherwise it's the same code for the contact.twig file. Regarding the 'name' text, refer to the code in /catalog/view/theme/default/template/information/contact.twig. There is no extension being used with the contact form.The screenshot shows that it is not a standard OpenCart. Some modifications were done it, and without more details or URL nobody will be able to help here. A standard OpenCart 3.0.3.8 does not have this issue, hence it's likely an extension bug, in which case it might also be a good idea to contact the extension author.
Code: Select all
<input type="text" name="name" value="{{ name }}" id="input-name" class="form-control" />
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
Code: Select all
if (isset($this->request->post['name'])) {
$data['name'] = $this->request->post['name'];
} else {
$data['name'] = $this->customer->getFirstName();
}
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Users browsing this forum: No registered users and 66 guests