0

I would like to keep the title 'Choose an Option' but when the user click on the dropdown, this label not appear in the proposition. Did you know if it's possible ?

What I currently have and I don't want to change : enter image description here

What I have when I click : enter image description here

What I would like to have : enter image description here

Someone know if it's possible ?

For information, I talk about the dropdown for size in the product page.

The phtml is here :

src/vendor/magento/module-configurable-product/view/frontend/templates/product/view/type/options/configurable.phtml

And the Js here :

src/vendor/magento/module-configurable-product/view/frontend/web/js/configurable.js

Thanks,

0

Magento is standard html select element behaviour.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

Maybe you need to play around with CSS or the hidden attribute

https://stackoverflow.com/questions/27350843/how-can-i-hide-default-select-option-when-the-drop-down-is-clicked

  • Thank you for your help, I will take a look to your links – Kozame Jul 4 '19 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.