Posts

Showing posts from June, 2017
<?php $video_url = get_field('video'); if( $video_url ): ?> <?php $video = wp_oembed_get( $video_url ); echo $video; ?> <?php endif; ?>
<?php     global $woocommerce;     $items = $woocommerce->cart->get_cart(); $a=array();         foreach($items as $item => $values) {             $_product = $values['data']->post;             //product image             $getProductDetail = wc_get_product( $values['product_id'] );              $getProductDetail->get_image(); // accepts 2 arguments ( size, attr )              "<b>".$_product->post_title.'</b>  <br> Quantity: '.$values['quantity'].'<br>';             $price = get_post_meta($values['product_id'] , '_price', true);              "  Price: ".$price."<br>";             /*Regular Price and Sale Price*/   ...