name ?>
get_name(), 'COSMODOG') !== false): ?>
COSMODOG
get_name(), 'COSMOCAT') !== false): ?>
COSMOCAT
get_name(), 'КОСМОБАКА') !== false): ?>
КОСМОБАКА
get_name(), 'KOSMOBAKA') !== false): ?>
KOSMOBAKA
get_type() == 'variable'):
?>
>
= $w_product['regular_price'] ?>
= round(($w_product['regular_price'] - $w_product['sale_price']) / $w_product['regular_price'] * 100) ?>
get_type() == 'variable-subscription'): ?>
get_stock_quantity();
$available_variations = $product->get_available_variations();
$product_id = $available_variations[0]['variation_id']; $i = 0;
foreach ($available_variations as $key => $value) { $i++;
$product_variation = new WC_Product_Variation( $value['variation_id'] );
$variation_price = $product_variation->get_regular_price();
$attr = $value['attributes']['attribute_pa_subscription'];
$attr = get_term_by( 'slug', $attr, 'pa_subscription' );
echo '
';
}
?>
get_price() ?>
get_sale_price()):
?>
= $product->get_regular_price() ?>
= round(($product->get_regular_price() - $product->get_sale_price()) / $product->get_regular_price() * 100) ?>
get_type() . '_add_to_cart' );
?>