只是从这个标签回显价格

时间:2013-05-13 19:47:24

标签: php joomla virtuemart

如何在不创建价格的情况下回复salesPrice?我试过echo salesPrice,但这似乎没有用。

<?php echo "<span  class='priceColor2'>" . $this->currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->pricesUnformatted, FALSE) . "</span>"  ?>

代码目前在一个单独的div中回显价格:

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

1 个答案:

答案 0 :(得分:0)

试试这个......

<?php echo "<span  class='priceColor2'>" . strip_tags($this->currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->pricesUnformatted, FALSE)) . "</span>"  ?>