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

#   Hikashop and Bootstrap 5

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

5 years 6 months ago [\#331870](#331870) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Hikashop and Bootstrap 5](/forum/50-feature-request/902415-hikashop-and-bootstrap-5#331870 "Hi, I recently read this which says that Joomla 4 will be with the support of Bootstrap 5. Is it possible for Hikashop to be adapted for him? In my tests it works perfectly with version 4, thus...")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

Hi, I recently read this [ article](https://developer.joomla.org/news/839-joomla-4-0-will-ship-with-bootstrap-5.html) which says that Joomla 4 will be with the support of Bootstrap 5. Is it possible for Hikashop to be adapted for him? In my tests it works perfectly with version 4, thus saving a lot of time for shaping the design. I will be really happy to have a framework on which to build all the components - this will save a lot of time for customizations. ![B)](/media/kunena/emoticons/9.png "B)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDI0MTUtaGlrYXNob3AtYW5kLWJvb3RzdHJhcC01P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86324
- Thank you received: 14288
-
-

5 years 6 months ago [\#331873](#331873) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop and Bootstrap 5](/forum/50-feature-request/902415-hikashop-and-bootstrap-5#331873 "Hi, I recently read this which says that Joomla 4 will be with the support of Bootstrap 5. Is it possible for Hikashop to be adapted for him? In my tests it works perfectly with version 4, thus...")*

Hi,

HikaShop is not integrated with bootstrap. So it can display properly regardless of the version of bootstrap used by the template / Joomla, and even if they don't use bootstrap at all.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDI0MTUtaGlrYXNob3AtYW5kLWJvb3RzdHJhcC01P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 105
- Thank you received: 2
-
-

4 years 1 week ago [\#346012](#346012) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  Replied by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")* on topic *[Hikashop and Bootstrap 5](/forum/50-feature-request/902415-hikashop-and-bootstrap-5#346012 "Hi, I recently read this which says that Joomla 4 will be with the support of Bootstrap 5. Is it possible for Hikashop to be adapted for him? In my tests it works perfectly with version 4, thus...")*

HI,
i have an issue with hikashop and bootstrap 5;
In the button "check terms" when checking out, if the button is not clicked, then an alert message is displayed, coming from the file
"administrator/components/com_hikashop/helpers/helper.php".
in this file, the alert is displayed using the line
$html = '&lt;div class="alert alert-'.$type.' alert-block"&gt;'.($close?'&lt;button type="button" class="close" data-dismiss="alert"&gt;×&lt;/button&gt;':'').'&lt;p&gt;'.implode('&lt;/p&gt;&lt;p&gt;',$display_messages).'&lt;/p&gt;&lt;/div&gt;';

the problem is that bootstrap 5 uses "data-bs-dismiss" and not "data-dismiss". So the message can't be closed.
Do you have a solution ? (without me to add specific js function to close it)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDI0MTUtaGlrYXNob3AtYW5kLWJvb3RzdHJhcC01P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86324
- Thank you received: 14288
-
-

4 years 1 week ago [\#346013](#346013) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop and Bootstrap 5](/forum/50-feature-request/902415-hikashop-and-bootstrap-5#346013 "Hi, I recently read this which says that Joomla 4 will be with the support of Bootstrap 5. Is it possible for Hikashop to be adapted for him? In my tests it works perfectly with version 4, thus...")*

Hi,

Well, a simple solution would be to hide the close button with a bit of CSS:
.alert .close{display:none;}
Not having a close button for an error message is not really a problem in itself.

Another solution would be a view override of show_block_terms changing the line: Code:

$this-&gt;checkoutHelper-&gt;displayMessages('terms_' . $this-&gt;step . '_' . $this-&gt;module_position);

to: Code:

ob_start(); $this-&gt;checkoutHelper-&gt;displayMessages('terms_' . $this-&gt;step . '_' . $this-&gt;module_position); echo str_replace('data-dismiss', 'data-bs-dismiss', ob_get_clean());

A third option would be for us to add data-bs-dismiss as well in there. That way, the data-dismiss attribute would be picked up by old versions of BS and the data-bs-dismiss would be picked up by BS 5 and above. Sounds like a good thing to add in HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDI0MTUtaGlrYXNob3AtYW5kLWJvb3RzdHJhcC01P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.087 seconds

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