If you’re running a WooCommerce or ClassicCommerce store and feature the same content in the product Short Description, you can use this snippet (added to your theme functions.php) to set a default text.
This will be displayed if the product Short Description is left blank – which will save you entering the same content for each product.
// ADD DEFAULT SHORT DESCRIPTION OPTION
function pands_echo_short_desc_if_empty() {
global $post;
if ( empty ( $post->post_excerpt ) ) {
$post_excerpt .= '<p>';
$post_excerpt .= 'This is your default short description';
$post_excerpt .= '</p>';
echo $post_excerpt;
}
}
add_action( 'woocommerce_single_product_summary', 'pands_echo_short_desc_if_empty', 21 );