GEt/echo product variations description
-
Hello Is there any way how to get product variation description?
Here is par of code that get variations titles, images and prices
function woocommerce_variable_add_to_cart() { global $product, $post; $variations = $product->get_available_variations(); ?> <?php foreach ($variations as $key => $value) { ?> <div id="varianty"> <h3><?php echo implode('/', $value['attributes']);?></h3> <img src = "<?php echo $value['image']['full_src'];?>" width='250'> <br /> <?php echo $value['price_html'];?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘GEt/echo product variations description’ is closed to new replies.