php - just echo price from this tag -


how can echo salesprice without creating pricediv? have tried echo salesprice doesn't seem working.

<?php echo "<span  class='pricecolor2'>" . $this->currencydisplay->createpricediv ('salesprice', '', $this->cart->pricesunformatted, false) . "</span>"  ?> 

the code echos price in separate div this:

<span  class='pricecolor2'><div class="pricesalesprice" style="display : block;" ><span class="pricesalesprice" >£20.00</span></div></span> 

try this...

<?php echo "<span  class='pricecolor2'>" . strip_tags($this->currencydisplay->createpricediv ('salesprice', '', $this->cart->pricesunformatted, false)) . "</span>"  ?> 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -