View Single Post
  #1  
Old 08-25-2010, 11:11 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Displaying 'Wholesale price' instead of 'Product price'

Hi, I've just made a simple mod for customer/main/product_details.tpl, which changes the text from 'Product price' to 'Wholesale price' if a trade customer is logged in, I edited around line 103, which used to just say


Code:
{$lng.lbl_our_price}:

I replaced that with this:

Code:
{if $product_wholesale ne ''} {$lng.lbl_wholesale_price}: {else} {$lng.lbl_our_price}: {/if}

and then added a new language label

lbl_wholesale_price

which says
"Wholesale price"

(or whatever you want for your store).

But I then tried to edit customer/main/products_list.tpl, to do the same thing, on line 84, I changed

Code:
Code:
<span class="price"> {$lng.lbl_our_price}: </span>

to

Code:
<span class="price"> {if $product_wholesale ne ''} {$lng.lbl_wholesale_price}: {else} {$lng.lbl_our_price}: {/if} </span>

but it won't display "Wholesale price" - I presume this is because $product_wholesale doesn't work here. Can anybody tell me what variable I should be using?

If you can help me I can then put this into the Completed Mods section, as I think it will be useful to other users.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote