minadreapta Posted March 11, 2008 Share Posted March 11, 2008 in invoice.tpl, i have this: {$invoiceitem.amount} but if i try to define it in {php} like this: $product_price = $this->get_template_vars('invoiceitem.amount'); it doesn't work. all the other amounts work except for this one. i need to define the item amount in php in order to calculate the price in my own currency. can someone please help me? 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted March 12, 2008 Share Posted March 12, 2008 Try: $invoiceitem = $this->get_template_vars('invoiceitem'); $product_price = $invoiceitem['amount']; 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted March 13, 2008 Share Posted March 13, 2008 Please see http://forum.whmcs.com/showthread.php?t=8031&page=2 This has been solved. 0 Quote Link to comment Share on other sites More sharing options...
minadreapta Posted March 13, 2008 Author Share Posted March 13, 2008 ok, thanks guys. it only worked after i defined those variables between {foreach} and {/foreach} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.