Change/remove '--Please Select--' message from Custom Option dropdown on Magento Product page

Change/remove '--Please Select--' message from Custom Option dropdown on Magento Product page

July 28, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Change/remove '--Please Select--' message from Custom Option dropdown on Magento Product page

Removing the ‘Please Select’ Message from Magento Custom Option Dropdowns

If you’re a Magento store owner or developer looking to customize your product pages, chances are you’ve encountered the default message --Please Select-- in your custom option dropdowns. This guide will walk you through how to remove or change this message using core Magento files and proper development practices.

Understanding Where the Message Comes From

The --Please Select-- message is generated by Magento when a custom option is added to a product without any values assigned yet. It’s a placeholder that tells customers to select an option once they become available.

By default, this message is hardcoded into Magento’s core files as it considers it a necessary UI element for product configuration. However, you can override this behavior by following the steps below.

Changing the Message Using Translation Files

The easiest way to change or remove the message is through your theme’s translation file (translate.csv). This allows you to modify the string without touching any core files, adhering to Magento’s best practices.

  1. Navigate to app/design/frontend/{Vendor}/{Theme}/i18n in your project root directory.

  2. Open or create a new translate.csv file and add the following line:

"Please Select","Your Custom Message"

Replace "Your Custom Message" with the text you want to display instead of --Please Select--. Save the changes.

  1. Clear your cache using the command: php bin/magento cache:clean

Now, when a customer visits a product page with custom options, they should see the new message you specified in the dropdown title.

Removing the Message Completely

If you want to remove the message entirely and have an empty dropdown until options are added, you’ll need to override a core template file.

  1. Create a new directory structure app/design/frontend/{Vendor}/{Theme}/Magento_ConfigurableProduct/templates/product/view/options.phtml.

  2. Copy the contents of the original file located at vendor/magento/module-configurable-product/view/frontend/templates/product/view/options.phtml into your new file.

  3. Replace this line:

<?= $block->getAddOptionLabel() ?>

With an empty string or custom logic:

<?php if ($this->hasCustomOptions()): ?>
    <?= $block->getAddOptionLabel() ?>
<?php endif; ?>

This checks if the product has any custom options before displaying the dropdown title. If no options are available, nothing will be rendered.

  1. Save your changes and clear the cache again using php bin/magento cache:clean.

Conclusion

Removing or changing the --Please Select-- message requires a combination of understanding Magento’s core files and applying proper development techniques like translation overrides and template overloading. Always ensure you have a backup before making any modifications to your production environment.

Remember, modifying Magento’s core templates directly is not recommended by Magento themselves due to upgrade issues. Using override techniques or third-party extensions is the preferred method for customizing product pages in a sustainable way.

For more advanced customizations and best practices in Magento development, feel free to explore our resources at Laravel Company. We provide comprehensive guides on how to extend Magento’s functionality while keeping your codebase maintainable and upgrade-friendly.

Catalog Cache Themes Configuration

Our network