• Currently I have the below code but how can I make it get the variation,sale price or like it is now the normal price when a variation is selected?

    Code:

    
        <div class="row">
        <div class="col-md-14" style="margin-top:50px;">
        <?php if($product->is_on_sale())
        		{
        			$price = $product->get_sale_price();
        		}else{
        			$price = $product->get_price();
        	}
        
        ?>
        <script async src="in=50&max=400&amount=<?php echo $price; ?>" type="application/javascript"></script>
        </div>
        </div>
    
  • The topic ‘Get price via ajax’ is closed to new replies.