andrew.drayton Posted August 23, 2010 Share Posted August 23, 2010 Hi all, I am having a bit of trouble attempting to convert Order Total into a Variable to deduct PayPal merchant fees from it. I require this as my client absorbs the merchant fee, they require this for paperwork. At the moment I am manually entering the total into the amount each time and producing the invoice. Here is what I have at the moment and as you can see $Total has been manually entered. Any advice? <?php $Total = 203.50; $Paypal = $Total * 0.024 + 0.30; $NetTotal = $Total - $Paypal; echo ' <tr>' . "\n". ' <td align="right" class="smallText">' . 'Less Paypal:' . ' </td>' . "\n". ' <td align="right" class="smallText">' . $currencies->format($Paypal) . '</td>' . "\n" . ' </tr>' . "\n". ' <tr>' . "\n". ' ><td align="right" class="smallText">' . 'Net Payment:' . ' </td>' . "\n". ' <td align="right" class="smallText">' . '<b>' . $currencies->format($NetTotal) . ' </b> ' . '</td>' . "\n" . ' </tr>' . "\n". ' <tr>' . "\n"; ?> Link to comment Share on other sites More sharing options...
andrew.drayton Posted August 27, 2010 Author Share Posted August 27, 2010 Can anyone help me? Link to comment Share on other sites More sharing options...
FIMBLE Posted August 27, 2010 Share Posted August 27, 2010 The variable already exists, im not sure where you want this to show i take it you do not want it visible to the customer? If you look in admin / includes / modules / index / orders.php you can see the make up there also you could add your own code and then use this file as a seperate file just for your own purpose. Hope this helps Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.