update
This commit is contained in:
@@ -104,10 +104,10 @@ return 'Rezerwuj miejsce';
|
||||
// Edit Archive Pages Add to Cart Buttons
|
||||
|
||||
add_filter( 'woocommerce_product_add_to_cart_text', 'bbloomer_archive_custom_cart_button_text' );
|
||||
|
||||
|
||||
function bbloomer_archive_custom_cart_button_text() {
|
||||
global $product;
|
||||
if ( has_term( array('webinar', 'ksiazka'), 'product_cat', $product->ID ) ) {
|
||||
global $product;
|
||||
if ( has_term( array('webinar', 'ksiazka'), 'product_cat', $product->ID ) ) {
|
||||
return 'Kup teraz!';
|
||||
} else {
|
||||
return 'Rezerwuj miejsce!';
|
||||
|
||||
Reference in New Issue
Block a user