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

Our Price from

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-20-2009, 02:38 AM
 
info@sjidesign.com info@sjidesign.com is offline
 

Advanced Member
  
Join Date: Aug 2003
Posts: 46
 

Default Our Price from

Hi,

Searched all through the forum and can't find the answer.

Does anyone know how to make the product listing page (products_list.tpl) say

Our Price for products without options

and

Our Price From for any products that have options?

Many thanks in advance

Dan
__________________
X Cart Version 4.2
Reply With Quote
  #2  
Old 05-20-2009, 04:34 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: Our Price from

Find the following
Code:
{if $product.appearance.has_price} <div class="price-row{if $active_modules.Special_Offers ne "" && $product.use_special_price ne ""} special-price-row{/if}">
and then change the next one to this (create the language variable as well)
Code:
<span class="price">{if $product.is_variants}{$lng.lbl_priced_from}:{else}{$lng.lbl_our_price}:{/if}</span> <span class="price-value">{include file="currency.tpl" value=$product.taxed_price}</span>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 05-20-2009, 05:40 AM
 
info@sjidesign.com info@sjidesign.com is offline
 

Advanced Member
  
Join Date: Aug 2003
Posts: 46
 

Default Re: Our Price from

Thank you very much.

I had to alter the code slightly as have made quite a few changes to templates but your code worked perfectly with a little bit of fine tuning.

Thanks again it is appreciated.

In case anyone wants the code put this into products_listing.tpl

<span class="price">{if $active_modules.Special_Offers ne "" && $product.use_special_price ne ""} special-price-row}{else}{if $product.is_variants}Price from:{else}{$lng.lbl_our_price}:{/if}{/if}</span>

I used Price from instead of making a new language label but you can make one if required.

Regards

Dan
__________________
X Cart Version 4.2
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 05:16 AM.

   

 
X-Cart forums © 2001-2020