Overriding the output from the Joomla! core

  • Posts: 16
  • Thank you received: 0
11 years 6 months ago #98526

Hello,

I have read this .

I followed the instruction, but when i modify the file, nothing change on the site.

Exemple, i copied my file field.php (root_site\administrator\components\com_hikashop\classes)
in my templates directory (root_site\templates\jeunesse_v1joomla\html\com_hikashop\classes)

After i copied the file, i see it on Hikashop but when i do some modifications, nothing change on the site, but the file is changed.

So what is the problem ?

Please Log in or Create an account to join the conversation.

  • Posts: 82761
  • Thank you received: 13348
  • MODERATOR
11 years 6 months ago #98543

Hi,

Output override only apply to view files. Actually, all the view files of HikaShop can be edited via the menu Display->Views.

The classes/field.php is a class (model) not a view file, so you can't override it with that method.

Overriding classes is more complex. You need to create a joomla system plugin and initialize the HikaShop library by calling the hikashop main helper file and then include all the classes you want to override in the plugin file.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 6 months ago #98589

Hello,

Thanks for your answer.

How i can create a joomla system plugin ?

Please Log in or Create an account to join the conversation.

  • Posts: 82761
  • Thank you received: 13348
  • MODERATOR
11 years 6 months ago #98594

Iinvite you to read the documentation of joomla on that:
docs.joomla.org/Plugin_Development

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum