שינוי טקסט אזל מהמלאי
Thu Jun 03 2021 14:34:36 GMT+0000 (UTC)
Saved by
@Shesek
add_filter('woocommerce_get_availability_text', 'Computec_change_soldout', 10, 2 );
/**
* Change Sold Out Text to Something Else
*/
function Computec_change_soldout ( $text, $product) {
if ( !$product->is_in_stock() ) {
$text = 'אזל מהמלאי';
}
return $text;
}
content_copyCOPY
קרדיט: שמעון סביר
Comments