best way to inject JS for our custom extension

  • Posts: 39
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
2 years 8 months 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: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 8 months 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.052 seconds
Powered by Kunena Forum