Change the ,,select options” text in single product page sticky button

[ad_1]

Hello,

The sticky ,,select options” button i want to change text in: [https://imgur.com/a/fcnr7ua])

The code from inspector is:

<a class=”variable-grouped-sticky button href=”#shoptimizer-sticky-anchor”>select options</a>

I was told by the shoptimizer theme authors that this text is core woocommerce functionality and i can change it with this snippet in functions.php:

add_filter( ‘woocommerce_product_add_to_cart_text’, ‘bbloomer_change_select_options_button_text’, 9999, 2 );

function bbloomer_change_select_options_button_text( $label, $product ) {
if ( $product->is_type( ‘variable’ ) ) {
return ‘View Product’;
}
return $label;
}

Instructions from site: [https://www.businessbloomer.com/woocommerce-rename-select-options-button-shop-page/])

It changed text in te category page, not in the single product page. I want to change the text in sticky button ,,Select options” to ,,Dodaj do koszyka” on single product page.

It seems it is not core functionality if href is shoptimizer, but i do not know anything about it

Link to the example product: [https://posteracademy.pl/produkt/plakat-boho-do-salonu-promienie-slonca/#shoptimizer-sticky-anchor])

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer