/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

// Change "Add to cart" text on shop/archive pages
add_filter('woocommerce_product_add_to_cart_text', function($text, $product){
    // For variable/grouped/external products, "Select options" / "Read more" exists
    // You can force a custom label for all:
    return 'View product';

    // OR: only for simple products, use Explore products:
    // if ( $product && $product->is_type('simple') ) return 'Explore products';
    // return 'View product';
}, 10, 2);

// Change button text on single product page
add_filter('woocommerce_product_single_add_to_cart_text', function($text){
    return 'Add to cart'; // or 'Explore products' if you want
});