best way to inject JS for our custom extension

  • Posts: 27
  • Thank you received: 1
  • Hikashop Business
2 years 2 weeks ago #340176

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 4.1.0
-- PHP version -- : 8.1.3
-- Browser(s) name and version -- : Brave 1.36.112

We recently had to change one line from hikashop core to allow our custom extension to continue to work: line no: 1134 of administrator\components\com_hikashop\classes\field.php. There is html safe function that cleans the script tag from our request. This is needed for our process. This is a new code for J4 hika, not available in J3 hika.

Is there a better way to be doing this? We just commented out the line referenced above to allow our JS to work.

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

  • Posts: 81379
  • Thank you received: 13037
  • MODERATOR
2 years 1 week ago #340179

Hi,

In the settings of your custom field, you should have an option "input filtering" which you can deactivate especially to skip the filtering.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum