Results 1 to 5 of 5
  1. #1

    Default Invoice template Get rid of Inc, Exc columns

    I recently upgraded to 1.3.9h and my invoices do not look right. They have columns for price and totals including excluding tax. The code looks like there is a switch that enables just price and total but I think I tried all of them with no change. The if $display tax I think is what needs to be active/inactive. I want the (else) active to print my invoices. How do I do it? I am not a coder. Thank you for your help!

    php if ($display_tax) { ?>
    <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>
    <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td>
    <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>
    <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>
    <?php }
    else { ?>
    <td class="dataTableHeadingContent" align="right" width="20%"><?php echo TABLE_HEADING_PRICE_NO_TAX; ?></td>
    <td class="dataTableHeadingContent" align="right" width="20%"><?php echo TABLE_HEADING_TOTAL_NO_TAX; ?></td>
    <?php } ?>

  2. #2

    Default Re: Invoice template Get rid of Inc, Exc columns

    Ok I figured out which switch actually changes it. Its the TAX EXEMPT Organization in Super orders 3. When you add a number in there it automatically changes everything.

    I would like to change the code to eliminate the Price exl, Price incl and just make price. The code for price including tax does not seem to work anyway so its confusing to customers unless I am missing something.

  3. #3
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Invoice template Get rid of Inc, Exc columns

    did you ever figure this out i'm racking my brain with it at the moment
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  4. #4

    Default Re: Invoice template Get rid of Inc, Exc columns

    I got it to display right in my invoice. Don't remember completely if I did other stuff but here is the change I mad to the code. This is from the page super_invoice.php since I have super orders installed, but I am sure you can find this in the normal invoice that zencart uses. Notice I just removed a couple lines. I might

    <?php if ($display_tax) { ?>

    <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>
    <!-- JP REMOVED <td class="dataTableHeadingContent" BGCOLOR="#ffff00" align="right" width="10%"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td> -->
    <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>
    <!-- JP REMOVED <td class="dataTableHeadingContent" align="right" width="10%"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>-->



    Also I removed a couple other sections as well by trial and error commenting them out. Notice two sections removed below.


    <!-- JP REMOVED

    <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" .
    '
    -->

    <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" .
    '
    <!-- JP REMOVED <td BGCOLOR="#ffff00" class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>-->' . "\n";
    echo ' </tr>' . "\n";

  5. #5

    Default Re: Invoice template Get rid of Inc, Exc columns

    I am not a coder by any means so if you see a better way please let me know. I sort of hacked away at it till I got it after about 3 days worth of head scratching.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 12 May 2013, 03:56 AM
  2. shopping cart sidebox...confused - problem with inc/exc VAT mod
    By spid3r1987 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Oct 2010, 10:47 AM
  3. Get rid of the words "best way" on invoice, etc
    By get bucked in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 31 Oct 2008, 07:26 PM
  4. Vat Exc and Vat Inc
    By bluesky2008 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 1 Sep 2008, 05:41 PM
  5. How Do I Show Both VAT Exc & Inc Prices on a Product?
    By RSpec in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 6
    Last Post: 28 May 2008, 02:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR