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

#   Script code gets distorted when applying a layout override

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

7 years 1 month ago -  7 years 1 month ago [\#311393](#311393) by [jjonker](/forum/user/36849-jjonker "View jjonker's Profile")  *[Script code gets distorted when applying a layout override](/forum/27-checkout/898362-script-code-gets-distorted-when-applying-a-layout-override#311393 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.20 -- Browser(s) name and version -- : Chrome 77.0.3865.90  When we apply an override (from the Hikashop backend) to the show&#95;block&#95;fields view (checkout) the inline javascript on the page in the browser gets 'distored'. This is really weird...  The script tags looks like this after adding the override:   type = 'text/j-avascript&quot;&gt;  Some hypens are add. Ans nog the scipt shows up as content on the page. Not what we want ;-)  I have tried it on two different sites with the same result. On different servers.  The script is actually present that way in the html template override folder in the template folder. So this somehow happens when Hikashops writes the code to the template folder. I have bene able to coreect this in the ovveride 'manually' but only for the first javascipt part. I can not find the second piece in this override file.  Any thoughts?  Kind regards, Jip")* was created by *[jjonker](/forum/user/36849-jjonker "View jjonker's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.2.20
-- Browser(s) name and version -- : Chrome 77.0.3865.90

When we apply an override (from the Hikashop backend) to the show_block_fields view (checkout) the inline javascript on the page in the browser gets 'distored'. This is really weird...

The script tags looks like this after adding the override:

&lt;s-cript&gt; type = 'text/j-avascript"&gt;

Some hypens are add. Ans nog the scipt shows up as content on the page. Not what we want ![;-)](/media/kunena/emoticons/24.png ";-)")

I have tried it on two different sites with the same result. On different servers.

The script is actually present that way in the html template override folder in the template folder. So this somehow happens when Hikashops writes the code to the template folder. I have bene able to coreect this in the ovveride 'manually' but only for the first javascipt part. I can not find the second piece in this override file.

Any thoughts?

Kind regards,
Jip

- [ ![hikashop&#95;javascript&#95;01.jpg](/forum/attachment/47807) ](/forum/attachment/47807 "...ascript&#95;01.jpg") [ ](/forum/attachment/47807?download=1 "...ascript&#95;01.jpg")
- [ ![hikashop&#95;javascript&#95;02.jpg](/forum/attachment/47808) ](/forum/attachment/47808 "...ascript&#95;02.jpg") [ ](/forum/attachment/47808?download=1 "...ascript&#95;02.jpg")

Last edit: 7 years 1 month ago by [jjonker](/forum/user/36849-jjonker "View jjonker's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODM2Mi1zY3JpcHQtY29kZS1nZXRzLWRpc3RvcnRlZC13aGVuLWFwcGx5aW5nLWEtbGF5b3V0LW92ZXJyaWRlP3RtcGw9bWFya2Rvd24=) 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: 86560
- Thank you received: 14306
-
-

7 years 1 month ago [\#311397](#311397) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Script code gets distorted when applying a layout override](/forum/27-checkout/898362-script-code-gets-distorted-when-applying-a-layout-override#311397 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.20 -- Browser(s) name and version -- : Chrome 77.0.3865.90  When we apply an override (from the Hikashop backend) to the show&#95;block&#95;fields view (checkout) the inline javascript on the page in the browser gets 'distored'. This is really weird...  The script tags looks like this after adding the override:   type = 'text/j-avascript&quot;&gt;  Some hypens are add. Ans nog the scipt shows up as content on the page. Not what we want ;-)  I have tried it on two different sites with the same result. On different servers.  The script is actually present that way in the html template override folder in the template folder. So this somehow happens when Hikashops writes the code to the template folder. I have bene able to coreect this in the ovveride 'manually' but only for the first javascipt part. I can not find the second piece in this override file.  Any thoughts?  Kind regards, Jip")*

Hi,

That's not something done by HikaShop but by a security extension on your website or a security module of your server.
You should deactivate that or do the overrides differently (via the Joomla override system or via FTP).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODM2Mi1zY3JpcHQtY29kZS1nZXRzLWRpc3RvcnRlZC13aGVuLWFwcGx5aW5nLWEtbGF5b3V0LW92ZXJyaWRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 5
- Thank you received: 0
-
-

7 years 1 month ago [\#311434](#311434) by [jjonker](/forum/user/36849-jjonker "View jjonker's Profile")  Replied by *[jjonker](/forum/user/36849-jjonker "View jjonker's Profile")* on topic *[Script code gets distorted when applying a layout override](/forum/27-checkout/898362-script-code-gets-distorted-when-applying-a-layout-override#311434 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.20 -- Browser(s) name and version -- : Chrome 77.0.3865.90  When we apply an override (from the Hikashop backend) to the show&#95;block&#95;fields view (checkout) the inline javascript on the page in the browser gets 'distored'. This is really weird...  The script tags looks like this after adding the override:   type = 'text/j-avascript&quot;&gt;  Some hypens are add. Ans nog the scipt shows up as content on the page. Not what we want ;-)  I have tried it on two different sites with the same result. On different servers.  The script is actually present that way in the html template override folder in the template folder. So this somehow happens when Hikashops writes the code to the template folder. I have bene able to coreect this in the ovveride 'manually' but only for the first javascipt part. I can not find the second piece in this override file.  Any thoughts?  Kind regards, Jip")*

OK thanks Nicolas, I will try to override 'manually' for now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5ODM2Mi1zY3JpcHQtY29kZS1nZXRzLWRpc3RvcnRlZC13aGVuLWFwcGx5aW5nLWEtbGF5b3V0LW92ZXJyaWRlP3RtcGw9bWFya2Rvd24=) 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.058 seconds

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