Hey guys, thanks for helping me but none of the options is working. The code from @robinrsa don’t change the text and the code from @cedcommerce it’s giving me the following error: syntax error, unexpected ‘products’ (T_STRING).
Previously I used this code to change a text that was wrong also:
add_filter( 'woocommerce_get_availability', 'wcs_custom_get_availability', 1, 2);
function wcs_custom_get_availability( $availability, $_product ) {
// Change In Stock Text
if ( $_product->is_in_stock() ) {
$availability['availability'] = __('EM ESTOQUE!', 'woocommerce');
}
// Change Out of Stock Text
if ( ! $_product->is_in_stock() ) {
$availability['availability'] = __('ESGOTADO!', 'woocommerce');
}
return $availability;
}
I was thinking to use the same idea for this problem but I don’t know how to do it because I’m bad at this code language. Can you guys help me? The text I want in place of “No products in the cart.” is “Sem produtos no carrinho.”
Thanks!