Hi is there a way to put a text before the price example: From $ 3,50.
I want to do this on the shop/archive page where you can see the products of the woocommerce plugin.
Nevermind you can close this, i’ve already done it. The code is.
add_filter( ‘woocommerce_get_price_html’, ‘cw_change_product_price_display’ );
add_filter( ‘woocommerce_cart_item_price’, ‘cw_change_product_price_display’ );
function cw_change_product_price_display( $price ) {
// Your additional text in a translatable string
$text = __(‘Vanaf ‘);
// returning the text before the price
return $text . ‘ ‘ . $price;
}
Hi,
Thank you for sharing we much appreciate this! :)
If you need anything else please feel free to create a new post.
Best regards,
Basilis