- This topic has 1 reply, 2 voices, and was last updated 2 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Hi, I would like to change the status from LEGGI TUTTO to ESAURITO when a product is out of order. I tried to use this code, but it doesn’t work :
add_filter( ‘woocommerce_get_availability’, ‘availability_filter_func’ );
function availability_filter_func( $availability ) {
$availability[‘availability’] = str_replace( ‘Leggi tutto’, ‘Esaurito’, $availability[‘availability’] );
return $availability;
}
Thanks
Marcella
Hi Marcella,
At first, thank you for choosing our theme and service.
We recommend contacting the Woocommerce plugins support team and asking them for assistance.
Kind Regards