| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Wholesale Pricing table problem | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Wholesale Pricing table problem
Calling all experts : How to show in "1-XX items" in the wholesale pricing table?
Quantity Price 1-11 items $5.00 <-- how to show this row ? 12-35 items $4.50 (xcart automatically generate this 36+ items $4.00 and this) I understand that the code should be editing in product_prices.tpl, however, I am not quite sure where. I have tried to put {$lng.lbl_singlepce} ( i have added this label just to show 1-11 items) before {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} {if $w.quantity eq "1"} {$lng.lbl_item} {else} {$lng.lbl_items} {/if} {/strip} </td> But it wont work. Anyone can give me some ideas? Thanks in advance.
__________________
JOHN - v.5.3.X biz, X-payment 3.X |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Wholesale Pricing table problem
Here is a code snippet from 4.1 for customer/main/product_prices.tpl that might help you get started. We put this inside "{if $smarty.section.wi.first}":
PHP Code:
|
|||||||||
#3
|
|||||||
|
|||||||
Re: Wholesale Pricing table problem
Thanks,
<table cellspacing="1" summary="{$lng.lbl_wholesale_prices|escape}"> <tr class="head-row"> <th>{$lng.lbl_quantity}</th> <th>{$lng.lbl_price}{if $smarty.capture.taxdata|trim}*{/if}</th> </tr> {*add one pcs line*} <tr> <td>{$lng.lbl_singlepcs} <-- my lable for lbl_singlepcs = 1-11 items ( this is permanent, hence I use a label instead) {include file="currency.tpl" value=$product.taxed_price}</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} {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> </tr> {/foreach} </table> It showed for a bit, after I clean it up with cleanup.php, it disappear. Do i have to edit the func.js as well? If so, can you guide me? Thanks
__________________
JOHN - v.5.3.X biz, X-payment 3.X |
|||||||
#4
|
|||||||
|
|||||||
Re: Wholesale Pricing table problem
Although older post, if anyone is still looking at how to get the wholesale prices table to show prices for 1-N (e.g. 1 - 11 or 1 - 6) with N responding dynamically, I have posted code for 4.6.4 in the following post :
http://forum.x-cart.com/showthread.php?p=377050#post377050 Hope it helps.
__________________
Ben X-Cart 4.6.6 Gold Plus - lots of modules X-Cart 4.7.9 Gold Plus - lots of modules |
|||||||
|
|||
X-Cart forums © 2001-2020
|