- Posts: 5
- Thank you received: 0
overriding file in hikkashop
- rekinysukcesu
-
Topic Author
- Offline
Less
More
9 years 11 months ago - 9 years 11 months ago #251081
by rekinysukcesu
overriding file in hikkashop was created by rekinysukcesu
Hello
I have question about overriding file in hikkashop
From many sites i learn somethink about this but still i cant create properly overide of conttroler.
Exactly what I need is override of front checkout controller.
that is why it needs to answer to:
1). front controler can be overide or need some kind of joomla plugin.
2).What should be the path to overide
3). who schould look class of the override file
I have question about overriding file in hikkashop
From many sites i learn somethink about this but still i cant create properly overide of conttroler.
Exactly what I need is override of front checkout controller.
that is why it needs to answer to:
1). front controler can be overide or need some kind of joomla plugin.
2).What should be the path to overide
3). who schould look class of the override file
Last edit: 9 years 11 months ago by rekinysukcesu.
Please Log in or Create an account to join the conversation.
9 years 11 months ago #251082
by nicolas
Replied by nicolas on topic overriding file in hikkashop
Hi,
The class override system of HikaShop isn't compatible with controllers. So if you want to override a controller, you need to develop a small system plugin for that.
You can for example use what is explained in the summary here:
docs.joomla.org/How_to_override_the_comp...rom_the_Joomla!_core
Or in the Example section with more details here:
www.informit.com/articles/article.aspx?p=1858258&seqNum=8
the only difference from the example is that you want to use components/com_hikashop/controllers/XXX.php instead of libraries/joomla/database/tablenested.php
The class override system of HikaShop isn't compatible with controllers. So if you want to override a controller, you need to develop a small system plugin for that.
You can for example use what is explained in the summary here:
docs.joomla.org/How_to_override_the_comp...rom_the_Joomla!_core
Or in the Example section with more details here:
www.informit.com/articles/article.aspx?p=1858258&seqNum=8
the only difference from the example is that you want to use components/com_hikashop/controllers/XXX.php instead of libraries/joomla/database/tablenested.php
Please Log in or Create an account to join the conversation.
Time to create page: 0.161 seconds