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

Suggested Retail

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-24-2003, 06:14 PM
 
dawing dawing is offline
 

Member
  
Join Date: Aug 2003
Posts: 15
 

Default Suggested Retail

I would like to place a "Suggest Retail" price under my actual price. How do I do that?

Thanks!
Reply With Quote
  #2  
Old 08-25-2003, 03:44 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Is this not the market price ?
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-25-2003, 06:43 PM
 
dawing dawing is offline
 

Member
  
Join Date: Aug 2003
Posts: 15
 

Default Detailed

Yes but it is not showing up on my detailed description page. It does show up on the first description.

Thanks!
Jerry
Reply With Quote
  #4  
Old 08-26-2003, 03:29 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you could add this

Code:
{if $product[product].list_price gt 0} {math equation="100-(price/lprice)*100" price=$product[product].price lprice=$product[product].list_price format="%d" assign=discount} <font class=MarketPrice>{$lng.lbl_market_price}: <s> {include file="currency.tpl" value=$product[product].list_price} </s></font> {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 08-27-2003, 03:33 AM
 
dawing dawing is offline
 

Member
  
Join Date: Aug 2003
Posts: 15
 

Default File

Thank you for the code. Could you please tell me what file or template this would be added to?

Thanks!
Reply With Quote
  #6  
Old 08-27-2003, 03:49 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

the detailed description page is product.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 08-27-2003, 01:35 PM
 
dawing dawing is offline
 

Member
  
Join Date: Aug 2003
Posts: 15
 

Default Tried

Almost everywhere in the file however it did not show the market price.

Anything else I can try?

Thanks.
Reply With Quote
  #8  
Old 08-27-2003, 03:13 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

sorry, try this

Code:
{if $product.list_price gt 0} {math equation="100-(price/lprice)*100" price=$product.price lprice=$product.list_price format="%d" assign=discount} <font class=MarketPrice>{$lng.lbl_market_price}: <s> {include file="currency.tpl" value=$product.list_price} </s></font> {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 08-27-2003, 04:39 PM
 
dawing dawing is offline
 

Member
  
Join Date: Aug 2003
Posts: 15
 

Default Thanks

The code worked as it is showing up, however I attached a photo of what it looks like.


http://www.club5jax.com/images/details.gif

Here is the code:

<td>

{if $product.list_price gt 0}
{math equation="100-(price/lprice)*100" price=$product.price lprice=$product.list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$product.list_price}
</s></font>

{/if}

{if $product.price ne 0}
<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if}

{else}
<input type=text size=7 name=price>
{/if}
</td>
Reply With Quote
  #10  
Old 08-31-2003, 04:25 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default

As far as I know the "list_price" is the suggested retail price. Don't need extra code for it.
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:56 PM.

   

 
X-Cart forums © 2001-2020