
Originally Posted by
imak
I'm using STL 1.01.
In the "Your Total" box (Step 2 of 3) it is possible to add line between PST and Total lines to show the shipping costs (with taxes includes) ? :
ex:
Sub-Total: $XX.XX
GST : $X.XX
PST: $XX.XX
Shipping (taxes includes if apply) : $XX.XX
Total: $XX.XX
Hi imak,
I'm not sure I fully understand what you're asking, but I'm sure there's a way to make it happen. Whether or not it's quick and easy is the question :-)
It sounds like you want to have only the subtotal taxes displayed (and split), and the shipping taxes you want to have added into the shipping cost and displayed on one line. If that's what you want, here's an approach that might do the trick (I haven't tried it myself):
- Modify the ot_shipping.php file in includes->modules->order_total. First, force it to *not* split shipping taxes by forcing) the conditional expression that checks DISPLAY_SPLIT_TAX_LINES (line 67 for stl1.01 and line 52 for stl1.1). Something like this should do the trick:
Code:
//Begin SplitTaxLines modification
//--------------------------------
if ('true')
{
Then, in function process() (line 134 for stl1.01 line 131 for stl1.1) you will see:
Code:
'value' => $order->info['shipping_cost']);
Add in the calculated taxes like this (I repeat, I haven't tried this myself)
Code:
'value' => $order->info['shipping_cost'] + $order->info['tax_groups']["$shipping_tax_description"]);
- Change the priorities of the shipping and taxes items in the order_total module (in the admin area, modules->order_total) so that taxes are higher than shipping.
In my head, that should all work. Again, I haven't tried it so please be careful and don't wreck a live cart. Please do respond and let us all know how it worked out though, ok?

Originally Posted by
imak
Is the version 1.01 of SLT working fine with the module SuperOrder ?
I have never tried SuperOrder so I can't say if it works. If you end up trying it, can you post back with your experiences? Thanks.

Originally Posted by
vhjdb
Alan,
Any plans to create reportin for Admin for different taxes? Thanks in advance.
Hi vhjdb,
I'm assuming that you want to know the grand totals for collected GST and PST for a time period (tax time, anyone?). I'm not planning for that since SplitTaxLines is a cosmetic mod only, it splits the display of taxes.
As long as you don't delete your orders after you've fulfilled them, you still have the required info in the database and can run a quick query to sum it all up. You can join the zen_orders and zen_orders_total tables on the orders_id field and then sum up all fields with the appropriate tax description that fall in your desired date range. Since zencart uses the tax description as the database key, you'll have to make sure that you didn't change your tax description partway through the year because that will screw up your totals and the tax man will not be happy.
Hmm.. as I write it looks like this really wouldn't be too hard to accomplish. I'll see if I can find some time to look at this a little closer...
Alan