Darklings Posted June 2, 2005 Share Posted June 2, 2005 Hi, Does anyone knows how the tax get calculated?? When i took a look at checkout_confirmation.php page I dont understand how it works. There somwhere in the code something like this: <?php if (sizeof($order->info['tax_groups']) > 1) { ?> <tr> <td class="main" colspan="2"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td> <td class="smallText" align="right"><b><?php echo HEADING_TAX; ?></b></td> <td class="smallText" align="right"><b><?php echo HEADING_TOTAL; ?></b></td> </tr> <?php } else { ?> Thats for the top column. It looks to me that the code checks for tax if there is tax it shows an extra column or something? Else it will just show what you ordered. But I dont understand the perpose of it.. i thought tax was calculated on the total_price?? At the end .. in a second table. In the order_total module or something. Could someone pls axplain to me how osC does it calculations pls? Tyvm Kind Regards, Tom Maene Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2005 Share Posted June 2, 2005 tax is calculated based upon how you have the zones setup in your admin and the products setup to be taxed. Link to comment Share on other sites More sharing options...
Darklings Posted June 3, 2005 Author Share Posted June 3, 2005 Yeah i understand, but I thought tax only comes at the end, after the subtotal. Aparently there are two places where it gets calculated right? Like in the code i posted in my first post in this topic. For each individual product. And then again at the end?? I'm so confused on this matter..... Kind regards, Tom Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf Link to comment Share on other sites More sharing options...
Wendy James Posted June 3, 2005 Share Posted June 3, 2005 You can show products prices + tax or without tax. Then the tax is shown when checking out as well. It doesn't add it twice, atleast it shouldn't be. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Dada1 Posted June 3, 2005 Share Posted June 3, 2005 How I understand it is a break down of each item being purchased so you know just how much tax is per item. Then the total for all of it together. Is that what your looking for? Link to comment Share on other sites More sharing options...
Darklings Posted June 6, 2005 Author Share Posted June 6, 2005 Well, i'm not looking for it.. But while i was 'trying' to change the look of the checkout_confirmation i saw this tax column with an if and not in the else. So i thought this meant sometimes the tax shows and somethimes not, now i understand , thnx to Wendy, why i does that. Thats all i wanted to know, so its save for me to just drop out that line, since my shop works withouth tax, only shows tax at the verry end. Kind Regards Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.