
WordPress
136
Вклад в тег
<div id="introR" class="super_back"><canvas id="pollyfill-canvas"></canvas></div>
if (get_post_meta(get_the_ID(), '_stock_status', true) == 'outofstock') {
echo '<div class="outofstock">Нет в наличии</div>';
} else {
echo '<div class="stock">В наличии</div>';
}