[Skip to main content](#vessel-content)

#   best way to inject JS for our custom extension

##

- **[Genr8r](/forum/user/44235-genr8r "View Genr8r's Profile")**
- [![Genr8r's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44235-genr8r "View Genr8r's Profile") Topic Author
- [ Offline](/forum/user/44235-genr8r)

Less More

- Posts: 43
- Thank you received: 5
-
-

4 years 8 months ago [\#340176](#340176) by [Genr8r](/forum/user/44235-genr8r "View Genr8r's Profile")  *[best way to inject JS for our custom extension](/forum/30-integrations/904128-best-way-to-inject-js-for-our-custom-extension#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&#92;components&#92;com&#95;hikashop&#92;classes&#92;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.")* was created by *[Genr8r](/forum/user/44235-genr8r "View Genr8r's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQxMjgtYmVzdC13YXktdG8taW5qZWN0LWpzLWZvci1vdXItY3VzdG9tLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

4 years 8 months ago [\#340179](#340179) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[best way to inject JS for our custom extension](/forum/30-integrations/904128-best-way-to-inject-js-for-our-custom-extension#340179 "-- 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&#92;components&#92;com&#95;hikashop&#92;classes&#92;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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQxMjgtYmVzdC13YXktdG8taW5qZWN0LWpzLWZvci1vdXItY3VzdG9tLWV4dGVuc2lvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
