2015-04-18 52 views
1

Im使用virtmart进行网上商店,但该网站的所有者只想使用发票上的税款 她不想在每篇文章中填写他们,她希望他们可见并根据发票计算virtuemart发票计算税款

计算总价的代码是:

$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total, $this->currency); 

此将其显示为例如: €8.45

如何可以计算到该量的21%吗? 谢谢!

回答

0

这应该有所帮助。

$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total * 1.21, $this->currency); 
+0

'代码$这个 - > currency-> priceDisplay($这个 - > ORDERDETAILS [ '细节'] [ 'BT'] - > ORDER_TOTAL * 0.21,$这个 - >货币);'的伎俩! 我让它变得比实际上困难得多 非常感谢! – user2620358