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

#   Bug found for hikashop cart module

##

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

Less More

- Posts: 575
- Thank you received: 11
-
-

2 years 7 months ago [\#360131](#360131) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  *[Bug found for hikashop cart module](/forum/3-bug-report/907994-bug-found-for-hikashop-cart-module#360131 "-- HikaShop version -- : 5.0.1 -- Joomla version -- : 4.4.3 -- PHP version -- : 3.7.0  For &quot;Hikashop Cart Module &gt; Hikashop Options &gt; Hide if empty&quot;, the previous version can add HTML code, but the latest version cannot add code to it. After adding the code, it will automatically change the code to 0 after saving.")* was created by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")*

-- HikaShop version -- : 5.0.1
-- Joomla version -- : 4.4.3
-- PHP version -- : 3.7.0

For "Hikashop Cart Module &gt; Hikashop Options &gt; Hide if empty", the previous version can add HTML code, but the latest version cannot add code to it. After adding the code, it will automatically change the code to 0 after saving.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDc5OTQtYnVnLWZvdW5kLWZvci1oaWthc2hvcC1jYXJ0LW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

2 years 7 months ago [\#360135](#360135) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Bug found for hikashop cart module](/forum/3-bug-report/907994-bug-found-for-hikashop-cart-module#360135 "-- HikaShop version -- : 5.0.1 -- Joomla version -- : 4.4.3 -- PHP version -- : 3.7.0  For &quot;Hikashop Cart Module &gt; Hikashop Options &gt; Hide if empty&quot;, the previous version can add HTML code, but the latest version cannot add code to it. After adding the code, it will automatically change the code to 0 after saving.")*

Hi,

HikaShop doesn't filter what you can and can't input in this setting.
Either Joomla is doing it, or you have a security extension or software which does it.
I have no issue adding HTML in that setting with the latest version of HikaShop on my test website.

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

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

Less More

- Posts: 575
- Thank you received: 11
-
-

2 years 7 months ago [\#360306](#360306) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Bug found for hikashop cart module](/forum/3-bug-report/907994-bug-found-for-hikashop-cart-module#360306 "-- HikaShop version -- : 5.0.1 -- Joomla version -- : 4.4.3 -- PHP version -- : 3.7.0  For &quot;Hikashop Cart Module &gt; Hikashop Options &gt; Hide if empty&quot;, the previous version can add HTML code, but the latest version cannot add code to it. After adding the code, it will automatically change the code to 0 after saving.")*

May I know how to solve this problem? Previous versions don't have this issue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDc5OTQtYnVnLWZvdW5kLWZvci1oaWthc2hvcC1jYXJ0LW1vZHVsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

2 years 7 months ago [\#360310](#360310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Bug found for hikashop cart module](/forum/3-bug-report/907994-bug-found-for-hikashop-cart-module#360310 "-- HikaShop version -- : 5.0.1 -- Joomla version -- : 4.4.3 -- PHP version -- : 3.7.0  For &quot;Hikashop Cart Module &gt; Hikashop Options &gt; Hide if empty&quot;, the previous version can add HTML code, but the latest version cannot add code to it. After adding the code, it will automatically change the code to 0 after saving.")*

Hi,

You said initially that you have HikaShop 5.0.1. Maybe updating HikaShop to the latest version would help since I don't have the issue with it ? If this doesn't help, then I don't know what the problem is. If it's a security component on your website or your server which is blocking this, then you need to ct on this security component.

A simpler approach would be to not use this setting. If you leave it empty, HikaShop will display instead the default empty cart message in the cart module when the cart is empty. And in that case, you can use a translation override on the CART_EMPTY translation key to set your HTML.

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

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