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]
This might be useful: