Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70301
    Marcella Signorile
    Participant
    Premium Member

    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

    #70305
    vako
    Keymaster
    WP Royal Team

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.