is_visible() ) { return; } ?> name){ $is_available = false; ?> get_type() != 'variable'){ $stock = $product->get_stock_quantity(); if($stock == 0){ $is_available = false; } } $tags = wc_get_product_terms( get_the_ID(), 'pa_catalog_tags' ); ?> get_type() == 'variation'): $_product = wc_get_product( $product->get_parent_id() ); $available_variations = $_product->get_available_variations(); $tags = wc_get_product_terms( $product->get_parent_id(), 'pa_catalog_tags' ); $weight_list = []; $terms = wc_get_product_terms( $product->get_parent_id(), 'pa_soon' ); foreach ($terms as $term) { if($term -> name){ $is_available = false; ?> get_sale_price()){ $is_sale = true; } foreach( $available_variations as $variation ) { $variation_obj = new WC_Product_Variation($variation['variation_id']); if( $variation_obj->has_weight() ) { $weight = $variation_obj->get_weight(); $weight_list[] = array( 'weight'=> $weight, 'price'=> $variation_obj->get_price(), 'id'=> $variation_obj->get_id(), 'stock' => $variation_obj->get_stock_quantity(), ); } } // ?>
get_image_id(); ?>

get_price() ?>

get_sale_price()): ?>

get_regular_price() ?>

- get_regular_price() - $product->get_price()) / $product->get_regular_price() * 100) ?> %

  • name ?>

    get_weight()){ $active_class = ' active'; } if ($w_item['stock'] > 0): ?>

get_price() ?>

get_type() == 'variable'): $available_variations = $product->get_available_variations(); $weight_list = []; foreach( $available_variations as $variation ) { $variation_obj = new WC_Product_Variation($variation['variation_id']); if( $variation_obj->has_weight() ) { $weight = $variation_obj->get_weight(); $weight_list[] = array( 'weight'=> $weight, 'price'=> $variation_obj->get_price(), 'id'=> $variation_obj->get_id(), 'stock' => $variation_obj->get_stock_quantity(), ); } } foreach( $available_variations as $variation_item ) : $is_sale = false; $variation= new WC_Product_Variation($variation_item['variation_id']); $stock = $variation->get_stock_quantity(); if($stock == 0){ $is_available = false; } if ($variation->get_sale_price()){ $is_sale = true; } ?>
get_variation_attributes() ); $variations = $variat->get_variation_attributes(); $var_slug = $variations['attribute_pa_weight']; $var_label = get_term_by('slug', $var_slug, 'pa_weight'); $var_label = substr($var_label->name, 0, strrpos($var_label->name, ' ')); $var_intLabel = (float)$var_label; $ves = $args['ves']; $ves_bolshaya = array('bolshaya-upakovka', 'large'); if( empty($ves) || (isset($ves) && in_array($ves,$ves_bolshaya) ? $var_intLabel >= 3 : $var_intLabel <= 3)): ?>
get_image_id(); ?>
ID ) ?> — get_weight() ?>

get_price() ?>

get_sale_price()): ?>

get_regular_price() ?>

- get_regular_price() - $variation->get_price()) / $variation->get_regular_price() * 100) ?> %

  • name ?>

    get_weight()){ $active_class = ' active'; } ?> 0): ?>

get_price() ?>

get_sale_price()){ $is_sale = true; } ?>
get_image_id(); ?>

get_price() ?>

get_sale_price()): ?>

get_regular_price() ?>

- get_regular_price() - $product->get_price()) / $product->get_regular_price() * 100) ?> %

  • name ?>

get_price() ?>