fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Change “Unavailable” text

Good morning, I would like to change the “Unavailable” text in the alt, when an out of stock product is selected, is this possible?
Thank you.

Hakik Zaman

Hi Federica,

Thanks for reaching out to us. Can you please give me a screenshot of your requirements?

A visual representation will help me to understand your issue clearly.

You can upload your screenshot issue here: https://snipboard.io/ and post the screenshot link in this reply box.

Thank You

Hakik Zaman

Hi Federica,

Please add the following snippet using the Code Snippets plugin and change the YOUR_TEXT as per your need:

add_action( 'woo_variation_swatches_pro_archive_page_loaded', function( $wvs_archive_pro ){
add_filter( 'woo_variation_swatches_js_options', function( $options ){
$options[ 'out_of_stock_tooltip_text' ] = esc_html__( '(YOUR_TEXT)', 'woo-variation-swatches-pro' );
return $options;
}, 99, 1);
});

Note: It will not work inside your child theme’s functions.php

Thank You