Change “View Products” Button – Grouped Products
-
I have some grouped products. In the store grid view the button Show “View Products”.
That I agree because that’s a group product.
When I click that and the grouped page opens, I have the option to add items or click to open their page. BUT, the button, If I want to buy the product or add to cart is still showing “View Products”. When you click it, actually you are adding that to cart.I tried this code to change the text just inside grouped product page, not in store grid view.
Any ideas?
add_filter( 'gettext', 'bbloomer_translate_woocommerce_strings', 999, 3 ); function bbloomer_translate_woocommerce_strings( $translated, $text, $domain ) { if ( is_page( 'some-page-slug' ) ) { if ( ! is_admin() && 'woocommerce' === $domain ) { switch ( strtolower( $translated ) ) { case 'VER PRODUTOS' : $translated = 'View/Edit Order'; break; // enter a new case for each line where you want Woocommerce text to be changed. } } return $translated; }
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change “View Products” Button – Grouped Products’ is closed to new replies.