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

#   Template customization and bootstrap.

##

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

Less More

- Posts: 61
- Thank you received: 0
-
-

10 years 1 month ago -  10 years 1 month ago [\#251112](#251112) by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")  *[Template customization and bootstrap.](/forum/31-development/886660-template-customization-and-bootstrap#251112 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla. This applies to files from directory /administrator/components/com&#95;hikashop/helpers/ , for example, cart.php Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com&#95;hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?")* was created by *[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6

During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla.
This applies to files from directory /administrator/components/com_hikashop/helpers/ , for example, cart.php
Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com_hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?

Last edit: 10 years 1 month ago by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NjY2MC10ZW1wbGF0ZS1jdXN0b21pemF0aW9uLWFuZC1ib290c3RyYXA/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

10 years 1 month ago [\#251133](#251133) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Template customization and bootstrap.](/forum/31-development/886660-template-customization-and-bootstrap#251133 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla. This applies to files from directory /administrator/components/com&#95;hikashop/helpers/ , for example, cart.php Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com&#95;hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?")*

Hi,

The cart.php file stuff can be overridden by the template too. We have documentation explaining that here:
[ www.hikashop.com/support/documentation/6...tation.html#override](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#override)
It's also possible to copy/paste the original class somewhere in your template and have it load before the default one or have your class extend the default one.

Regarding the bootstrap choice, as you can see, it bases itself on the setting "bootstrap_design"
So you could force that value yourself in the hikashop_config table.
And you would want to also add the value in the dropdown of the HikaShop configuration with an override of the "display" file of the "config" view that you would put in the default template of the backend.

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

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

Less More

- Posts: 61
- Thank you received: 0
-
-

10 years 1 month ago [\#251244](#251244) by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")  Replied by *[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")* on topic *[Template customization and bootstrap.](/forum/31-development/886660-template-customization-and-bootstrap#251244 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla. This applies to files from directory /administrator/components/com&#95;hikashop/helpers/ , for example, cart.php Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com&#95;hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?")*

Thanks for reply, nicolas.
Can you tell me, please, if the file and class names are correct in that example?:

Original name/address
/administrator/components/com_hikashop/helpers/cart.php
hikashopCartHelper

Override:
/templates/mytemplate/html/com_hikashop/administrator/helpers.cart.override.php
hikashopCartHelperOverride

File with an override is not loading. Is there any mistake?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

10 years 1 month ago [\#251249](#251249) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Template customization and bootstrap.](/forum/31-development/886660-template-customization-and-bootstrap#251249 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla. This applies to files from directory /administrator/components/com&#95;hikashop/helpers/ , for example, cart.php Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com&#95;hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?")*

Hi,

For more details about class override (and the correct file path), please see :
[ www.hikashop.com/forum/product-category-...atermark.html#184987](http://www.hikashop.com/forum/product-category-display/873470-watermark.html#184987)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 61
- Thank you received: 0
-
-

10 years 1 month ago -  10 years 1 month ago [\#251393](#251393) by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")  Replied by *[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")* on topic *[Template customization and bootstrap.](/forum/31-development/886660-template-customization-and-bootstrap#251393 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla. This applies to files from directory /administrator/components/com&#95;hikashop/helpers/ , for example, cart.php Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com&#95;hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?")*

Thanks for reply, it was useful. Here
[ www.hikashop.com/support/documentation/6...tation.html#override](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#override)
is written:
«You can do it by copying the file in administrator/components/com_hikashop/XXXX/yyy.php to templates/YOUR_TEMPLATE/html/com_hikashop/admnistrator/XXXX.yyy.override.php (for the frontend)»

An error was that between XXXX.yyy instead of "." should be slash.

Class methods overriding happens even when it's initialized, and without including to the parent class, just like: Code:

class hikashopImageHelperOverride { }

That means without «include» and «extends». Is it possible to use that way?

Last edit: 10 years 1 month ago by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

10 years 1 month ago [\#251396](#251396) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Template customization and bootstrap.](/forum/31-development/886660-template-customization-and-bootstrap#251396 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6  During template development we met a problem that not all Hikashop files could be overrided in the template html directory. Part of html markup and javascript is mixed with code, besides in the admin files of Joomla. This applies to files from directory /administrator/components/com&#95;hikashop/helpers/ , for example, cart.php Also I would like to ask, how we can choose Bootstrap version? Now we can do it only in /administrator/components/com&#95;hikashop/helpers/helper.php:3507 but it will be rewritten after updade. How we can manage it?")*

Hi,

If you don't want to include the original file in order to extend it ; you can.
But in that case you have to copy the full content of the class into your override and you have to be sure that, if the core class is updated (receive new functions) your override also include them.

That's why, I would highly recommend to use the include + extends ; otherwise I am quite sure that you will have some issues with updates.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")

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

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