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

#   Cart dromdown 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 3 months ago [\#362620](#362620) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  *[Cart dromdown override](/forum/27-checkout/908498-cart-dromdown-override#362620 "-- url of the page with the problem -- :   demoisellegol.fr/fr/cart  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  hi how can i add a class name to this dropdown via overrides ? i'm using UIKit framework and i need this dropdown to have &quot;uk-select&quot; class")* was created by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")*

-- url of the page with the problem -- : [ demoisellegol.fr/fr/cart](https://demoisellegol.fr/fr/cart)
-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.1

hi
how can i add a class name to this dropdown via overrides ?
i'm using UIKit framework and i need this dropdown to have "uk-select" class

[ ![2024-08-12&#95;0-19-07.jpg](/forum/attachment/59603) ](/forum/attachment/59603 "...12&#95;0-19-07.jpg")

- [ ![2024-08-12&#95;0-19-07.jpg](/forum/attachment/59603) ](/forum/attachment/59603 "...12&#95;0-19-07.jpg") [ ](/forum/attachment/59603?download=1 "...12&#95;0-19-07.jpg")

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

2 years 3 months ago [\#362627](#362627) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart dromdown override](/forum/27-checkout/908498-cart-dromdown-override#362627 "-- url of the page with the problem -- :   demoisellegol.fr/fr/cart  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  hi how can i add a class name to this dropdown via overrides ? i'm using UIKit framework and i need this dropdown to have &quot;uk-select&quot; class")*

Hi,

In order to find which view file displays it, you could activate the "display view files" setting of the HikaShop configuration.
You'll see that it should be the layouts / quantity.php view file.
So you can edit it for your frontend template via the menu Display&gt;Views.
There, I think you can just change the line:
$extra_classes = '';
to:
$extra_classes = 'uk-select';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwODQ5OC1jYXJ0LWRyb21kb3duLW92ZXJyaWRlP3RtcGw9bWFya2Rvd24=) 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 3 months ago [\#362631](#362631) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Cart dromdown override](/forum/27-checkout/908498-cart-dromdown-override#362631 "-- url of the page with the problem -- :   demoisellegol.fr/fr/cart  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  hi how can i add a class name to this dropdown via overrides ? i'm using UIKit framework and i need this dropdown to have &quot;uk-select&quot; class")*

i enabeld that option
when I hover on every element i can see the view file exepct that dropdown !!\
I also added the desired class to $extra_classes in layouts/quantity.php but it did not worked

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 3 months ago -  2 years 3 months ago [\#362633](#362633) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Cart dromdown override](/forum/27-checkout/908498-cart-dromdown-override#362633 "-- url of the page with the problem -- :   demoisellegol.fr/fr/cart  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  hi how can i add a class name to this dropdown via overrides ? i'm using UIKit framework and i need this dropdown to have &quot;uk-select&quot; class")*

Hello,

I'm really sorry, but if this doesn't work then there is probably an error in your **php/html** code.
From there, I can only invite you to double-check your code, also remember that you can also do reviews via AI applications like ChatGPT by example.
Regards

Last edit: 2 years 3 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwODQ5OC1jYXJ0LWRyb21kb3duLW92ZXJyaWRlP3RtcGw9bWFya2Rvd24=) 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 3 months ago [\#362653](#362653) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[Cart dromdown override](/forum/27-checkout/908498-cart-dromdown-override#362653 "-- url of the page with the problem -- :   demoisellegol.fr/fr/cart  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  hi how can i add a class name to this dropdown via overrides ? i'm using UIKit framework and i need this dropdown to have &quot;uk-select&quot; class")*

i exactly know where in the files of the main component (not view files) can add a class to this select field .. I only dont know how to create that override !

components/com_hikashop/views/layouts/tmpl/quantity.php
line 141

but the override of this file doesnt work

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 3 months ago -  2 years 3 months ago [\#362657](#362657) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Cart dromdown override](/forum/27-checkout/908498-cart-dromdown-override#362657 "-- url of the page with the problem -- :   demoisellegol.fr/fr/cart  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  hi how can i add a class name to this dropdown via overrides ? i'm using UIKit framework and i need this dropdown to have &quot;uk-select&quot; class")*

Hello,

In details, follow me step by step :
**1.** in your layouts/quantity, go around line 145
**2.** **AFTER** "**&lt;div id="&lt;?php echo $id; ?&gt;\_area" class="hikashop\_product\_quantity\_div hikashop\_product\_quantity\_input\_div\_select"&gt;&lt;?php**" (**line 143** in my screenshot)
add this code : "**$extra\_classes .= "uk-select";**"
To get this :
[ ![alt](https://i.ibb.co/4fLsry3/image.png) ](https://i.ibb.co/4fLsry3/image.png "alt")

Hope this will help you

Last edit: 2 years 3 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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