• Hi

    i updated my woocommerce to 2.6.2 to 2.6.4

    and some functions in my function.php fils seems not working anymore

    this that display SOLD instead of out of stok on my theme

    function custom_get_availability( $availability, $_product ) {
    //change text “In Stock’ to ‘SPECIAL ORDER’
    if ( $_product->is_in_stock() ) $availability[‘availability’] = __(‘AVAILABLE’, ‘woocommerce’);

    //change text “Out of Stock’ to ‘SOLD OUT’
    if ( !$_product->is_in_stock() ) $availability[‘availability’] = __(‘SOLD’, ‘woocommerce’);
    return $availability;

    is someone have an idea why this doesn’t work anymore?

    Thanks

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘function.php’ is closed to new replies.