Hi
I addes into my shop, via: Code Snippets, this code:
add_filter( ‘woocommerce_product_add_to_cart_text’, function( $text ) {
if ( ‘Wybierz opcje’ == $text ) {
$text = __( ‘Zobacz szczegóły’, ‘woocommerce’ );
}
return $text;
} );
Now, if a product have few different variants, if I click on the button “Zobacz szczegóły” whats meens: “See more details,” under the image
i go to a new page with more details.
But if I have a simple product without any variants, I see under the image the button: “Dodaj do koszyka”, what meens “Add to cart”.
It’s passibe to add any new PHP code what would be passible to change the funktion of the button under a simple product, that he would works like the
button under products which have few different variants?
Kr
RObert