
08-08-2010, 10:40 AM
|
|
|
|
 eXpert
|
|
Join Date: Sep 2006
Posts: 310
|
|
|
Re: product_prices.tpl for wholesale prices - won't edit
I also tried deleting the whole table, and that worked - i.e. the wholesale prices table completely vanished:
Code:
{*
$Id: product_prices.tpl,v 1.23.2.1 2010/02/25 11:15:18 aim Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<div id="wl-prices"{if !$product_wholesale} style="display: none;"{/if}>
{if $product.taxes}
{capture name=taxdata}
{include file="customer/main/taxed_price.tpl" taxes=$product.taxes display_info="N"}
{/capture}
{/if}
<div{if !$smarty.capture.taxdata} style="display: none;"{/if}>
<strong>*{$lng.txt_note}:</strong>{$smarty.capture.taxdata}
</div>
</div>
So somehow, the following piece of code doesn't actually do anything, even though it must!
Code:
{foreach from=$product_wholesale item=w name=wi}
<tr class="wholesale">
<td>
{strip}
{$w.quantity}{if $w.next_quantity eq 0}+{elseif $w.next_quantity ne $w.quantity}-{$w.next_quantity}{/if}
{$lng.lbl_item}{if $w.quantity > 1}s{/if}
{* COMMENTING OUT X-CART PLURAL CODE *}
{* {if $w.quantity eq "1"}
{$lng.lbl_item}
{else}
{$lng.lbl_items}
{/if} *}
{* COMMENTING OUT X-CART PLURAL CODE --->END *}
{/strip}
</td>
<td>{include file="currency.tpl" value=$w.taxed_price tag_id="wp`$smarty.foreach.wi.index`"}</td>
</tr>
{/foreach}
I know it must be doing something, because when I remove the following piece of code only, the table head row, I see two versions of the table data cells, one on top of the other:
Code:
<tr class="head-row">
<th>{$lng.lbl_quantity}</th>
<th>{$lng.lbl_price}{if $smarty.capture.taxdata}*{/if}</th>
</tr>
This is a real head scratcher for me.
__________________
X-Cart Gold Version 4.3.2
|
|