In opencart I have Information layout id, it's custom not default. How I can load custom layout by this id ?
It posible to have custom template in one of information pages ?
In opencart I have Information layout id, it's custom not default. How I can load custom layout by this id ?
It posible to have custom template in one of information pages ?
=> While adding/Editing Information page under the Design Tab you can overwrite layout dynamically which is preferable.
=> or you can pass manually
layout_id
based on your condition on each filecontente_top, content_button, column_left and Column_right
, which i dont recommand.$modules = $this->model_design_layout->getLayoutModules($layout_id, 'column_left');
To create a custom layout, you first need to create New Controller & View (findhere), after that you can add your own layout by going on
admin/system/design/layout
for your newController(Rout)
if you want to load custom template for particular information page, you can pass
custom tpl
file on your condition, createyourfile.tpl
go to
catalog/controller/information/information.php:49
here check the condition and pass your view tile.