Hi, everyone!
I use OC 3.0.3.2 and Journal theme (with OpenCart cherckout).
Normally, OC displays its warning messages at the top of each STEP under Checkout page.
I would like to show the warning messages at the top and bottom of each step.
How can I do it?
Please see the attached image.
Best regards,
And thanks!
Well the terms part is actually prepended via javascript.
Not sure its worth the effort, you could probably hook into the .buttons class and place it above.
In catalog/view/theme/default/template/checkout/checkout.twig.
Around line 786 find
Replace
This is based on a default OC not Journal so use as reference only. If you want something different google how to use jQuery selectors and you can probably refine as needed.
Clear caches, etc... untested.
Not sure its worth the effort, you could probably hook into the .buttons class and place it above.
In catalog/view/theme/default/template/checkout/checkout.twig.
Around line 786 find
Code: Select all
$('#collapse-payment-method .panel-body').prepend('<div class="alert alert-danger alert-dismissible">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');
Code: Select all
$('#collapse-payment-method .panel-body .buttons').prepend('<div class="alert alert-danger alert-dismissible">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');
Clear caches, etc... untested.
Backup and learn how to recover before you make any changes!
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
Who is online
Users browsing this forum: No registered users and 6 guests