WooCommerce Change “Choose Some Product Options” Text


There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About this Solution

A lot of the time, users will miss the attribute drop down on a variable product page and immediately go for the add to cart button. If this happens, and the user has not yet selected an option from the drop down, a window alert will appear saying “Choose Some Product Options”. This is not particularly user friendly and definitely isn’t tailored towards your product range. Being more specific with messages can benefit the user experience and help them understand what they are doing wrong and what they need to do in order to proceed. Making the ability to add a product to cart should not be difficult! This short guide shows you can change change this alert message to something a little more specific to your product range.

* Snippet Name:     Change the "Choose some product options" text on WooCommerce variable product drop-downs.
* Snippet Author:   ecommercehints.com

add_filter( 'woocommerce_get_script_data', 'change_alert_text', 10, 2 );
function change_alert_text( $params, $handle ) {
if ( $handle === 'wc-add-to-cart-variation' )
$params['i18n_make_a_selection_text'] = __( 'Please select a date first', 'domain' );
return $params;

Snippet Benefits

  • Personalise and make clearer error messages on variable product pages.
  • If you’re using WooCommerce to sell events for example, you may wish to change the message to “select a date first” which is a lot more specific and clearer, benefiting the User Experience (UX) and hopefully increasing conversions.
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

Your email address will not be published. Required fields are marked *

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers