Reply 230542 to: makeup button product

Avatar: Rose Tyler
Rose Tyler
Support staff
March 1, 2020 at 16:09

It requests additional customization in files. For example, add this code in functions.php of your child theme –

add_filter( 'woocommerce_loop_add_to_cart_link', 'etheme_add_to_cart_shop_button', 50, 3 );

function etheme_add_to_cart_shop_button($sprintf, $product, $args) {
		return sprintf( '<a rel="nofollow" href="%s" class="button show-product">%s</a>',
			esc_url(  $product->get_permalink() ),
			__('Buy now', 'xstore')
	);
}

change “buy now” text to the desired one.

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.