I've been trying to echo an image in the following code, but even the "echo" gets printed.
This is the code:
public function add_to_cart_text() { $text = $this->is_purchasable()
&& $this->is_in_stock() ? __( 'IMAGE HERE', 'woocommerce' ) : __( 'Read
more', 'woocommerce' );
return apply_filters( 'woocommerce_product_add_to_cart_text', $text,
$this ); }
I need to show an image where the "IMAGE HERE" text is, echo looks like it is not working, at least the way im trying to use it.
Is it possible to be done?