Post by berd » Sun Jun 05, 2022 4:51 pm

Is there anyone who can explain step by step how to make a copy of the default theme so that I can modify it a bit.
I am a user and not a programmer.

The manual states that this is now done via the extension folder. [extension\mytheme\catalog\view\template]
I can create this manually but what steps are needed to activate it?

Cheers

Newbie

Posts

Joined
Wed Mar 08, 2017 7:05 pm

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by berd » Sun Jun 05, 2022 5:16 pm

Thanks for the reply, but how exactly does this override work?
Where to place this code and how to activate?

Code: Select all

'view/*/before' => [
	-1 => 'extension/{code}/catalog/event/theme',
]

Newbie

Posts

Joined
Wed Mar 08, 2017 7:05 pm

Post by ScoobyRoobyDoo » Tue Jun 07, 2022 2:50 pm

Im struggling with this too!! Can't get my head around how the vents system works. The documentation out there is pretty limited especially when it comes to themes!.

I get how to create the install/uninstall parts in my controller (even though i'm not quite sure how to use them yet!), and I have created a copy of the default theme and called it basic_extended.

I have created a zip and installed it through the installer and realised it removed the 'templates' folder from my upload. After reading many forum post I understand now that I have to create an event to overide the loading of template files, but this is where i'm really struggling.

I have seen the codes below posted, but not with much of an explanation of how to use it/where to put it.

A decent explanation/example would be greatly appeciated if anyone can help?!

Code: Select all

'view/*/before' => [
	-1 => 'extension/{code}/catalog/event/theme',
]

Code: Select all

function event(&$route) {
$route = 'extension/mytheme/view/' . $route;
}


Posts

Joined
Tue Jun 07, 2022 2:30 pm
Who is online

Users browsing this forum: gunownergear and 7 guests