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

#   Product variant selection

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 9 months ago [\#140798](#140798) by [alexsp](/forum/user/30771-alexsp "View alexsp's Profile")  *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#140798 "-- url of the page with the problem -- :...")* was created by *[alexsp](/forum/user/30771-alexsp "View alexsp's Profile")*

-- url of the page with the problem -- : [ adellin.gr/index.php/%CE%BC%CF%80%CE%B1%...%81%CF%8C%CF%82-mini](http://adellin.gr/index.php/%CE%BC%CF%80%CE%B1%CE%BD%CE%B9%CE%BF/%CF%80%CE%B5%CF%84%CF%83%CE%AD%CF%84%CE%B5%CF%82/product/731-%CF%80%CE%B5%CF%84%CF%83%CE%AD%CF%84%CE%B1-%CF%87%CE%B5%CE%B9%CF%81%CF%8C%CF%82-mini)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,
there is a problem in the product page view used, product variants are not selectable for some reason.
Can you give some guidance where to search for this problem?

Kindest regards
Alex

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#140841](#140841) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#140841 "-- url of the page with the problem -- :...")*

Hi,
Your issue is probably coming from the modifications that you have made through your product view's files, and from your [ CSS](http://www.hikashop.com/support/153-customize-the-display.html) code that is hiding your quantity field and add to cart button: Code:

.hikashop_product_quantity_field { width: 25px !important; display: none; } #hikashop_product_characteristics .hikashop_product_stock .btn.button.hikashop_cart_input_button { display: none; }

Note that another solution can be to set the "Characteristics selection method" option to **Dropdown** through the page : "*Hikashop-&gt;System-&gt;Configuration-&gt;Main*".

The following user(s) said Thank You: [alexsp](/forum/user/30771-alexsp "View alexsp's Profile")

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 9 months ago [\#140943](#140943) by [alexsp](/forum/user/30771-alexsp "View alexsp's Profile")  Replied by *[alexsp](/forum/user/30771-alexsp "View alexsp's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#140943 "-- url of the page with the problem -- :...")*

Hi Mohamed,
thanks for your support.
i corrected what you mentioned,
Now i have an addtocart and a quantity filed for each product variation, nut there is one more add to cart and quantity field that i think its confusing and doesn't make sense. Do you know how i could get rid of it?

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

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#140967](#140967) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#140967 "-- url of the page with the problem -- :...")*

You could add such CSS:
.hikashop_product_stock{ display: none; }
\#hikashop_product_characteristics .hikashop_product_stock{ display: block; }

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 9 months ago [\#140987](#140987) by [alexsp](/forum/user/30771-alexsp "View alexsp's Profile")  Replied by *[alexsp](/forum/user/30771-alexsp "View alexsp's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#140987 "-- url of the page with the problem -- :...")*

Hi nicolas,
thanks for your reply.
This css solved my problem when the product has variants but it also disappeared the add to cart button for the products that do not have variants.
For example in this url
[ adellin.gr/index.php/%CE%BC%CF%80%CE%B1%...8E%CF%80%CE%BF%CF%85](http://adellin.gr/index.php/%CE%BC%CF%80%CE%B1%CE%BD%CE%B9%CE%BF/%CF%80%CE%B5%CF%84%CF%83%CE%AD%CF%84%CE%B5%CF%82/product/725-%CF%80%CE%B5%CF%84%CF%83%CE%AD%CF%84%CE%B1-%CE%BC%CE%B1%CE%AF%CE%B1%CE%BD%CE%B4%CF%81%CE%BF%CF%82-classic-%CF%80%CF%81%CE%BF%CF%83%CF%8E%CF%80%CE%BF%CF%85)
What i would like to have if possible is to display (only) a per variant add to cart button when a product has variants but also display an add to cart button when the product has no variants.

Thanks again

Kindest regards
Alex

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

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#141225](#141225) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#141225 "-- url of the page with the problem -- :...")*

Hi,

That's not possible with just CSS. You'll have to modify the file "show_default" further to display the main add to cart button or not based on whether there are characteristics or not for the current product.

The following user(s) said Thank You: [alexsp](/forum/user/30771-alexsp "View alexsp's Profile")

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 9 months ago [\#141297](#141297) by [alexsp](/forum/user/30771-alexsp "View alexsp's Profile")  Replied by *[alexsp](/forum/user/30771-alexsp "View alexsp's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#141297 "-- url of the page with the problem -- :...")*

Hi nicolas,
i know that this is not possible with just css. I will try to solve it by editing show_default.php file but i may need your help also.
I think that this should the normal, i don't see a reason to display an extra add to cart button below the per product variant add to cart buttons as this is confusing and doesn't make sense from my point of view at least.

Kindest regards
Alex

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

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#141332](#141332) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product variant selection](/forum/25-install-update/865245-product-variant-selection#141332 "-- url of the page with the problem -- :...")*

Hi,

You're right and that's actually not the case by default as far as I know (I'm not able to reproduce that issue on my end), so I can only conclude that this happens because of your modifications to the view file.

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

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

[](#top)
