Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Another Australian hack


xxxMicrobexxx

Recommended Posts

Here's another update, this time for the page "order_total.php". so it will display the total GST on the order confirmation page.

 

Just before the line

return $output_string;

(near the bottom) add this

 $theTotal = (substr($myTotal,4));

$output_string .='          <tr>' . "\n" .
       '            <td align="right" class="smallText">Total GST in invoice:</td>' . "\n" .
       '            <td align="right" class="smallText">$'. round($theTotal - ($theTotal/1.1),2) . '</td>' . "\n" .
       '          </tr>' . "\n";

 

Cheers.

Link to comment
Share on other sites

  • 2 months later...
Here's another update, this time for the page "order_total.php". so it will display the total GST on the order confirmation page.

 

Just before the line

return $output_string;

(near the bottom) add this

 $theTotal = (substr($myTotal,4));

$output_string .=' ? ? ? ? ?<tr>' . "\n" .
? ? ? ?' ? ? ? ? ? ?<td align="right" class="smallText">Total GST in invoice:</td>' . "\n" .
? ? ? ?' ? ? ? ? ? ?<td align="right" class="smallText">$'. round($theTotal - ($theTotal/1.1),2) . '</td>' . "\n" .
? ? ? ?' ? ? ? ? ?</tr>' . "\n";

 

Cheers.

 

Sorry, Can't find "order_total.php".

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...