X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove the "Tax" column from order_data.tpl (https://forum.x-cart.com/showthread.php?t=14058)

MikeBrum 05-17-2005 06:07 PM

Remove the "Tax" column from order_data.tpl
 
I'd like to completely remove the 'tax' column (located between Б─≤ProductБ─≥ and Б─≤Item PriceБ─≥) from our invoices. It displays '7.25%' on every single item ordered...seems redundant. The tax total is already displayed under the Б─≤SubtotalБ─≥.
Its in here somewhere but I broke it once already trying to remove it.
:(

My /mail/html/order_data.tpl

Code:

{* $Id: order_data.tpl,v 1.18.2.6 2004/12/01 15:15:52 mclap Exp $ *}
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">

<TR>
<TD align="center"><FONT style="FONT-SIZE: 14px; FONT-WEIGHT: bold;">{$lng.lbl_products_ordered}</FONT></TD>
</TR>

</TABLE>

<TABLE cellSpacing="0" cellPadding="3" width="100%" border="1">

<TR>
<TH width="60" bgColor="#cccccc">{$lng.lbl_sku}</TH>
<TH bgColor="#cccccc">{$lng.lbl_product}</TH>
{if $order.extra.tax_info.display_cart_products_tax_rates eq "Y"}
<TH nowrap width="100" bgColor="#cccccc">{if $order.extra.tax_info.product_tax_name ne ""}{$order.extra.tax_info.product_tax_name}{else}{$lng.lbl_tax}{/if}</TH>
{/if}
<TH nowrap width="100" bgColor="#cccccc" align="center">{$lng.lbl_item_price}</TH>
<TH width="60" bgColor="#cccccc">{$lng.lbl_quantity}</TH>
<TH width="60" bgColor="#cccccc">{$lng.lbl_total}
[img]{$ImagesDir}/spacer.gif[/img]</TH>
</TR>

{foreach from=$products item=product}
<TR>
<TD align="center">{$product.productcode}</TD>
<TD><FONT style="FONT-SIZE: 11px">{$product.product}</FONT>
{if $product.product_options ne ''}
<TABLE>

<TR>
<TD valign="top">{$lng.lbl_options}:</TD>
<TD>{include file="modules/Product_Options/display_options.tpl" options=$product.product_options options_txt=$product.product_options_txt}</TD>
</TR>

</TABLE>
{/if}
</TD>
{if $order.extra.tax_info.display_cart_products_tax_rates eq "Y"}
<TD align="center">
{foreach from=$product.extra_data.taxes key=tax_name item=tax}
{if $tax.tax_value gt 0}
{if $order.extra.tax_info.product_tax_name eq ""}{$tax.tax_display_name} {/if}
{if $tax.rate_type eq "%"}{$tax.rate_value}%{else}{include file="currency.tpl" value=$tax.rate_value}{/if}

{/if}
{/foreach}
</TD>
{/if}
<TD align="right" nowrap>{include file="currency.tpl" value=$product.display_price}</TD>
<TD align="center">{$product.amount}</TD>
<TD align="right" nowrap>{math assign="total" equation="amount*price" amount=$product.amount price=$product.display_price}{include file="currency.tpl" value=$total}</TD>
</TR>
{/foreach}

{if $giftcerts ne ''}
{foreach from=$giftcerts item=gc}
<TR>
<TD></TD>
<TD><NOBR>{$lng.lbl_gift_certificate}:</NOBR> {$gc.gcid}</TD>
{if $order.extra.tax_info.display_cart_products_tax_rates eq "Y"}
<TD align="center">-</TD>
{/if}
<TD align="right" nowrap>{include file="currency.tpl" value=$gc.amount}</TD>
<TD align="center">1</TD>
<TD align="right" nowrap>{include file="currency.tpl" value=$gc.amount}</TD>
</TR>
{/foreach}
{/if}

</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">

<TR>
<TD align="right" width="100%" height="20">{$lng.lbl_subtotal}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.display_subtotal}</TD>
</TR>

{if $order.discount gt 0}
<TR>
<TD align="right" height="20">{$lng.lbl_discount}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.discount}</TD>
</TR>
{/if}

{if $order.coupon and $order.coupon_type ne "free_ship"}
<TR>
<TD align="right" height="20">{$lng.lbl_coupon_saving}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.coupon_discount}</TD>
</TR>
{/if}

{if $order.discounted_subtotal ne $order.subtotal}
<TR>
<TD align="right" width="100%" height="20">{$lng.lbl_discounted_subtotal}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.display_discounted_subtotal}</TD>
</TR>
{/if}

<TR>
<TD align="right" height="20">{$lng.lbl_shipping_cost}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.display_shipping_cost}</TD>
</TR>

{if $order.coupon and $order.coupon_type eq "free_ship"}
<TR>
<TD align="right" height="20">{$lng.lbl_coupon_saving}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.coupon_discount}</TD>
</TR>
{/if}

{if $order.applied_taxes and $order.extra.tax_info.display_taxed_order_totals ne "Y"}
{foreach key=tax_name item=tax from=$order.applied_taxes}
<TR>
<TD align="right" width="100%" height="20">{$tax.tax_display_name}{if $tax.rate_type eq "%"} {$tax.rate_value}%{/if}:</TD>
<TD align="right">{include file="currency.tpl" value=$tax.tax_cost}</TD>
</TR>
{/foreach}
{/if}

{if $order.giftcert_discount gt 0}
<TR>
<TD align="right" height="20">{$lng.lbl_giftcert_discount}:</TD>
<TD align="right">{include file="currency.tpl" value=$order.giftcert_discount}</TD>
</TR>
{/if}

<TR>
<TD bgColor="#000000" colspan="2">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
</TR>

<TR>
<TD align="right" bgColor="#cccccc" height="25">{$lng.lbl_total}:</TD>
<TD align="right" bgColor="#cccccc">{include file="currency.tpl" value=$order.total}</TD>
</TR>

{if $order.applied_taxes and $order.extra.tax_info.display_taxed_order_totals eq "Y"}
{foreach key=tax_name item=tax from=$order.applied_taxes}
<TR>
<TD align="right" width="100%" height="20">{$lng.lbl_including_tax|substitute:"tax":$tax.tax_display_name}{if $tax.rate_type eq "%"} {$tax.rate_value}%{/if}:</TD>
<TD align="right">{include file="currency.tpl" value=$tax.tax_cost}</TD>
</TR>
{/foreach}
{/if}

</TABLE>

{if $order.applied_giftcerts}


<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
        <TD align="center"><FONT style="FONT-SIZE: 14px; FONT-WEIGHT: bold;">{$lng.lbl_applied_giftcerts}</FONT></TD>
</TR>
</TABLE>

<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0">

<TR>
<TH width="60" bgColor="#cccccc">{$lng.lbl_giftcert_ID}</TH>
<TH bgColor="#cccccc">{$lng.lbl_giftcert_cost}</TH>
</TR>

{foreach from=$order.applied_giftcerts item=gc}
<TR>
<TD align="center">{$gc.giftcert_id}</TD>
<TD align="right" nowrap>{include file="currency.tpl" value=$gc.giftcert_cost}</TD>
</TR>
{/foreach}

</TABLE>
{/if}

{if $order.extra.special_bonuses ne ""}
{include file="mail/html/special_offers_order_bonuses.tpl" bonuses=$order.extra.special_bonuses}
{/if}


Thanks in advance for your help.

Zaja 05-18-2005 09:25 AM

Remove (lines 15 > 17):
Code:

{if $order.extra.tax_info.display_cart_products_tax_rates eq "Y"}
<TH nowrap width="100" class=TableSubHead>{if $order.extra.tax_info.product_tax_name ne ""}{$order.extra.tax_info.product_tax_name}{else}{$lng.lbl_tax}{/if}</TH>
{/if}


and (lines 38 > 47):
Code:

{if $order.extra.tax_info.display_cart_products_tax_rates eq "Y"}
<TD align="center">
{foreach from=$product.extra_data.taxes key=tax_name item=tax}
{if $tax.tax_value gt 0}
{if $order.extra.tax_info.product_tax_name eq ""}{$tax.tax_display_name} {/if}
{if $tax.rate_type eq "%"}{$tax.rate_value}%{else}{include file="currency.tpl" value=$tax.rate_value}{/if}

{/if}
{/foreach}
</TD>
{/if}


and (lines 59 > 61):
Code:

{if $order.extra.tax_info.display_cart_products_tax_rates eq "Y"}
<TD align="center">-</TD>
{/if}


MikeBrum 05-18-2005 01:54 PM

Very nice Zaja. Thanks for your help! :D


All times are GMT -8. The time now is 05:32 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.