Ropes Posted December 1, 2021 Share Posted December 1, 2021 (edited) Almost have it... we Australians have been trying to tailor Cubecart to fit with the Australian Tax Rules when it come to invoices showing ABN, Tax Invoice, GST shown correctly as "Total including GST", showing product prices in store (including GST) and not adding it to the product price on checkout. Check the image of my Invoice format Downside 1... Cubecart insisted on showing Sales Tax as $0 on the invoice... Fix? changed line to read "Packaging" ! Happy to always show as $0 Downside 2... Sales Tax shows as $0 in Monthly Sales Reports.. not a real problem, just manually work out 1/11th is GST What would be nice is a 1 line code to add under the Grand Total Including GST line, the words "This invoice includes GST of $xx.xx" This would simply be 1/11th of the Grand Total incl GST value, being {$order.total}/11 Any suggestions? Edited December 1, 2021 by Ropes Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 2, 2021 Share Posted December 2, 2021 (edited) Even though CubeCart has a new feature where the admin can edit the Invoice using the WYSIWYG editor(admin, Documents, Invoice Editor tab), I recommend not doing so - I find problems with this. Instead, using a programmer's text editor, in the admin skin template orders.print.php: Find: <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> Add after: <div class="total"><strong>Includes GST of {"%01.2f"|sprintf:$order.total/11}</strong></div> The {"%01.2f"|sprintf:$order.total/11} should show the value to two decimal points. PHP's sprintf() requires the first argument to be the format pattern, which requires Smarty to operate on the string, then use the value as the second argument to sprintf(). Try that. (I haven't tried it myself.) Edited May 17, 2022 by bsmither Too many lines of code was given to find and change. Quote Link to comment Share on other sites More sharing options...
Ropes Posted December 2, 2021 Author Share Posted December 2, 2021 Thanks Brian .. was to use Invoice ed but as you do not recom. will be later this eve I use your line in a text ed prog thanks again Peter Quote Link to comment Share on other sites More sharing options...
harrisorganic Posted May 17, 2022 Share Posted May 17, 2022 On 12/2/2021 at 8:17 AM, bsmither said: <div class="total"><strong>Includes GST of {"%01.2f"|sprintf:$order.total/11}</strong></div> </div> Brian, Should there be two </div> ? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 17, 2022 Share Posted May 17, 2022 Sorry, no. Find: <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> Add after: <div class="total"><strong>Includes GST of {"%01.2f"|sprintf:$order.total/11}</strong></div> 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.