Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

display wholesale price including and excluding taxes

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-13-2011, 05:51 AM
 
yvesk yvesk is offline
 

Newbie
  
Join Date: Feb 2011
Location: France
Posts: 9
 

Default 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
__________________
version 4.4.4
version 4.5.1
Reply With Quote
  #2  
Old 09-14-2011, 04:48 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Re: display wholesale price including and excluding taxes

...
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:00 PM.

   

 
X-Cart forums © 2001-2020