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)
-   -   display wholesale price including and excluding taxes (https://forum.x-cart.com/showthread.php?t=60875)

yvesk 09-13-2011 05:51 AM

display wholesale price including and excluding taxes
 
Hi
In my product page, I would like to show the wholesale prices including tax and excluding tax.

I've edited /common_files/customer/main/product_prices.tpl

Code:

<div id="wl-prices"{if not $product_wholesale} style="display: none;"{/if}>

  {if $product.taxes}
    {capture name=taxdata}
      {include file="customer/main/taxed_price.tpl" taxes=$product.taxes display_info="Y"}
    {/capture}
  {/if}

  <table cellspacing="1" summary="{$lng.lbl_wholesale_prices|escape}">

    <tr class="head-row">
      <th>{$lng.lbl_quantity}</th>
      <th>{$lng.lbl_price} incl tax</th>
      <th>{$lng.lbl_price} exc tax</th>
     
    </tr>

    {foreach from=$product_wholesale item=w name=wi}
      <tr>
        <td>
          {strip}
          {$w.quantity}{if $w.next_quantity eq 0}+{elseif $w.next_quantity ne $w.quantity}-{$w.next_quantity}{/if}
          &nbsp;
          {if $w.quantity eq "1"}
            {$lng.lbl_item}
          {else}
            {$lng.lbl_items}
          {/if}
          {/strip}
        </td>
        <td>{currency value=$w.taxed_price tag_id="wp`$smarty.foreach.wi.index`"}</td>
        <td>{currency value=$w.price tag_id="wp`$smarty.foreach.wi.index`" }</td>
        </tr>
    {/foreach}

  </table>



The price without taxes are not showing

Also I would like to start showing the price from the first item

in example
1 -- 2 : standard price
2 -- 5 : first wholesale price

Thanks

carlisleglass 09-14-2011 04:48 AM

Re: display wholesale price including and excluding taxes
 
...


All times are GMT -8. The time now is 09:49 PM.

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