Forum › Forum › Magento Theme › SNS Kalolia – Magento Theme › Auto-select option from dropdown
-
AuthorPosts
-
February 26, 2016 at 4:46 pm #16513
Hello,
I have configurable products in a shop. The options are color and size. When I go to a detail page of a product, the select drop downs are available.
My problem is now:
When the configurable product has simple products which all have the same color, but different size options, then on the detail page, we have these select dropdowns:Color
– Please select
– BlueSize
– Please select
– S
– M
– LAlthough there is only one color available, the customer has to click on ‘Blue’ to make the Size options visible. This is not user-friendly.
How can I change this so that the option is auto-selected when there is only one option available?
I tried to add a ‘selected’ attribute in the Color dropdown, however, then the Size dropdown is not filled. Is there a JavaScript event which I have to call?Claudia
-
AuthorPosts
You must be logged in to reply to this topic. Click here to login or register
Useful
Recent Topics
Support Policy
- Official hour: Mon-Fri / 9am-5pm
- Location time: GMT + 7