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

#   Creating override

##

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

Less More

- Posts: 61
- Thank you received: 3
-
-

2 years 11 months ago [\#356851](#356851) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  *[Creating override](/forum/25-install-update/907323-creating-override#356851 "-- url of the page with the problem -- :   demoisellegol.fr/fr/bouquets/product/homa  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 5.0.0 -- PHP version -- : 8.1  Hi can you please me how i can i create an override to add custom classes to hikashop dropdowns i tried by following documentations but did not managed to")* was created by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")*

-- url of the page with the problem -- : [ demoisellegol.fr/fr/bouquets/product/homa](https://demoisellegol.fr/fr/bouquets/product/homa)
-- HikaShop version -- : 5.0.0
-- Joomla version -- : 5.0.0
-- PHP version -- : 8.1

Hi
can you please me how i can i create an override to add custom classes to hikashop dropdowns
i tried by following documentations but did not managed to

[ ![2023-11-22&#95;18-29-47.jpg](/forum/attachment/58239) ](/forum/attachment/58239 "...2&#95;18-29-47.jpg")

- [ ![2023-11-22&#95;18-29-47.jpg](/forum/attachment/58239) ](/forum/attachment/58239 "...2&#95;18-29-47.jpg") [ ](/forum/attachment/58239?download=1 "...2&#95;18-29-47.jpg")

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

2 years 11 months ago [\#356853](#356853) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Creating override](/forum/25-install-update/907323-creating-override#356853 "-- url of the page with the problem -- :   demoisellegol.fr/fr/bouquets/product/homa  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 5.0.0 -- PHP version -- : 8.1  Hi can you please me how i can i create an override to add custom classes to hikashop dropdowns i tried by following documentations but did not managed to")*

Hi,

These dropdowns are options. They are displayed by the product / option view file so you can edit it via the menu Display&gt;Views in order to modify the code displaying the dropdowns. You can find by yourself if you follow this documentation:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

There, you'll find this line of code: Code:

$attribs.=' class="'.HK_FORM_SELECT_CLASS.'" ';

That's where the class of the dropdown is set. So you can change this line to add your own (your template I suppose) classes.

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

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

Less More

- Posts: 61
- Thank you received: 3
-
-

2 years 11 months ago [\#356879](#356879) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Creating override](/forum/25-install-update/907323-creating-override#356879 "-- url of the page with the problem -- :   demoisellegol.fr/fr/bouquets/product/homa  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 5.0.0 -- PHP version -- : 8.1  Hi can you please me how i can i create an override to add custom classes to hikashop dropdowns i tried by following documentations but did not managed to")*

thank you

that dropdowns are now fixed

would you please tell me how can i create override to add classes to these fields too :

[ ![2023-11-23&#95;14-37-06.jpg](/forum/attachment/58244) ](/forum/attachment/58244 "...3&#95;14-37-06.jpg")

these are order custom fields

i want too add classes in override so that i won't lose the classes after update

- [ ![2023-11-23&#95;14-37-06.jpg](/forum/attachment/58244) ](/forum/attachment/58244 "...3&#95;14-37-06.jpg") [ ](/forum/attachment/58244?download=1 "...3&#95;14-37-06.jpg")

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

2 years 11 months ago [\#356882](#356882) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Creating override](/forum/25-install-update/907323-creating-override#356882 "-- url of the page with the problem -- :   demoisellegol.fr/fr/bouquets/product/homa  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 5.0.0 -- PHP version -- : 8.1  Hi can you please me how i can i create an override to add custom classes to hikashop dropdowns i tried by following documentations but did not managed to")*

Hi,

Custom order fields are displayed by the view file checkout / show_block_fields
In there, you have the line: Code:

' class="'.HK_FORM_CONTROL_CLASS.'" '.$onWhat.'="window.hikashop.toggleField(this,\''.$fieldName.'\',\'order_' . $this-&gt;step . '_' . $this-&gt;module_position.'\',0,\'hikashop_\');"',

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

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