For OpenCart 3.0, default checkout
Edit this file:
catalog\controller\checkout\payment_method.php
Find:
if (!$json) {
Add before it:
Edit this file:
catalog\controller\checkout\payment_method.php
Find:
if (!$json) {
Add before it:
Code: Select all
if (empty(trim($this->request->post['comment']))) {
$json['error']['warning'] = 'Comment is required!';
}
In the above instructions, it does not indicate to go to a TWIG file. It rather indicates to go to a PHP file which is not available from the theme editor but rather from FTP or cPanel's file manager console.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
A Few Weeks Ago, I Did Exactly what some of you Suggested in cPanel, and the Comments Box Isn't Always Answered. So Tonight I Looked In cPanel, and the Added Required Code Was Gone. How Do I Get the Required Code to Not Disappear?!
By not editing the cached files and, to notice the change live, see the FAQ: viewtopic.php?f=176&t=200804#p718325How Do I Get the Required Code to Not Disappear?!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 3 guests