Opencart 1.5.x Design Layout Override

Post By:user_7551 | Reply

We're new opencart designers / developers, we made a switch on the release of 1.5 due to the fantastic list of features.

However, there seems to be no comment anywhere regarding the Design Layout Overrides, for such as Categories - We'd like a different Layout on certain categories, which appears to be possible but I cant seem to see anything in the Theme Side, or is this controlled elsewhere?

Seems to be no documentation on what is an awesome feature of OpenCart - Basically makes it a free, Better version of Magento, which is vastly more user friendly.

Anyway, Hello everyone and any constructive feedback or links to external resources in regards to making /adding templates for this would be awesome (made ones are not showing up in the dropdown, likely putting them in the wrong place, who knows).

Thanks.
user_27 Mon, 13 Jun 2011

well you can do a different layout, but not necessarily a different theme.

user_7551 Mon, 13 Jun 2011

I can do the CSS Changes no problems, but when you add a Layout you just get "Route" and the store, there appears to be no way to change where blocks are located, or am I doing something incorrectly?

user_27 Mon, 13 Jun 2011

dijitul wrote:I can do the CSS Changes no problems, but when you add a Layout you just get "Route" and the store, there appears to be no way to change where blocks are located, or am I doing something incorrectly?

Well once you create the new layout then you go into your modules (blocks) and you add new module assign them to the new layout wherever you want them. Then in the individual category/product you choose your newly created layout.

user_7551 Mon, 13 Jun 2011

Aaahh, I feel quite blonde now!

Thanks for your help!

user_14112 Sat, 18 Jun 2011

Just tested The design override works with Categories pages, but not with Information pages - could it be bug?

I am using v1.5.0.5

user_26310 Mon, 27 Jun 2011

Yes, this is a bug - I've rectified this and posted the solution to the Google bug tacker.

Replace:

Code: Select all
if (substr($route, 0, 16) == 'product/information' && isset($this->request->get['information_id'])) { $layout_id = $this->model_catalog_information->getInformationLayoutId($this->request->get['information_id']); }


With:
Code: Select all
if (substr($route, 0, 23) == 'information/information' && isset($this->request->get['information_id'])) { $layout_id = $this->model_catalog_information->getInformationLayoutId($this->request->get['information_id']); }


In the following files: "column-left.php, column-right.php, content-top.php, content-bottom.php"

The above files are located in the "catalog/controller/common" directory.

Many thanks,
Adrian

user_5707 Thu, 12 Apr 2012

Hey guys!
I was trying to use the Layout override, in order to display our "Think Green!" Site in the menu bar. However, everytime I try to applied a module to the layout, the image slider for instance is not aligned. However, everything works fine on my "home" (default) page. Even when I set "think green"'s Layout override to "home", the modules applied to Home are misplaced.
I'd be happy if someone had a solution!
greetings

user_26311 Sun, 22 Apr 2012

I have a similar problem

user_26312 Wed, 16 May 2012

This problem still exists. For instance:

I notice that if I'm within a category and override the design with the information layout it produces a separate result than the category layout. However, if I edit the category.tpl it alters both category and information layouts.

user_13569 Wed, 17 Oct 2012

Our company has developed an extension for OpenCart 1.5.4.1 which provides a mechanism to overwrite any file, function, class or template of OpenCart in a separate location from the original files of the distribution.

The "OpenCart 1.5.4.1 Override" can be found at this URL: http://www.opencart.com/index.php?route ... on_id=8664

This extension is useful for programmers who need to perform many customizations in your store, and at the same time keep a record of the changes implemented to eventually apply them in future versions of OpenCart.

`Reply Or Comment!
Please LogIn to Reply!