https://www.templatemonster.com/help/ru/woocommerce-how-to-change-in-stock-out-of-stock-text-displayed-on-a-product-page.html
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’] = __(‘Available!’, ‘woocommerce’);
}
// Change Out of Stock Text
if ( ! $_product->is_in_stock() ) {
$availability[‘availability’] = __(‘Sold Out’, ‘woocommerce’);
}
return $availability;
}
Вместо Sold Out

Для кнопки плагин Woocommerce Customizer

Добавить комментарий

Ваш адрес email не будет опубликован.