Skip to main content

best way to inject JS for our custom extension

4 years 8 months ago #340176 by Genr8r
-- 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.

4 years 8 months ago #340179 by nicolas
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.036 seconds
Powered by Kunena Forum