By default, the plugin displays the text ‘Select Options’ instead of an add to cart button on any archive pages. The button directs the user to the product page in the same way as ‘Select Options’ does for variable products. This is to prevent the user from adding the product to the cart without selecting any add-on fields.
If you would like to change the ‘Select Options’ text, just use this snippet:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter 'View Product' text | |
*/ | |
function prefix_filter_view_product_text( $text, $product ) { | |
return 'Select Options'; | |
} | |
add_filter( 'pewc_filter_view_product_text', 'prefix_filter_view_product_text', 10, 2 ); |
You can find out how to add a snippet to your site here.