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

recommended $list_price not displaying

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-16-2008, 01:02 PM
 
effour effour is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 96
 

Default recommended $list_price not displaying

I'm hoping someone can help me figure out why this snippet won't display on the recommends.tpl page

PHP Code:
{include file="currency.tpl" value=$products[product].list_price

Any help is appreciated.

Thx
__________________
4.1.7
Reply With Quote
  #2  
Old 04-16-2008, 01:10 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: recommended $list_price not displaying

This isn't a bug, so moving to Template Editing. You need to look at the code - the array called on the recommends page is not the same as the product page, so you can't just copy code. You need to use the same value format that is used to call the links and product names.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-16-2008, 01:22 PM
 
effour effour is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 96
 

Default Re: recommended $list_price not displaying

Would you know what file i would edit to modify the array?

Thanks,

E

Quote:
Originally Posted by balinor
This isn't a bug, so moving to Template Editing. You need to look at the code - the array called on the recommends page is not the same as the product page, so you can't just copy code. You need to use the same value format that is used to call the links and product names.
__________________
4.1.7
Reply With Quote
  #4  
Old 04-16-2008, 01:33 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: recommended $list_price not displaying

You just need to call the correct code in the template you are editing. Look at the way the products are called, then copy that format for the price.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-16-2008, 02:01 PM
 
effour effour is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 96
 

Default Re: recommended $list_price not displaying

The product price displays using the following code in the recommends:
${$product.price}

I try to display the list price using {$product.list_price} and it doesn't display anything.

Is that what you mean?

Thx,
__________________
4.1.7
Reply With Quote
  #6  
Old 04-16-2008, 02:14 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: recommended $list_price not displaying

Is the [product] part populated with an item when you are passing it through?

Code:
{include file="currency.tpl" value=$products[product].list_price}

ie. does printing {$products[product].list_price} produce a price on the same .tpl from which you are calling from?
__________________
Doms
kube v4.1.9
Reply With Quote
  #7  
Old 04-16-2008, 02:31 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: recommended $list_price not displaying

The only price I can see from the recommends array is taxed price...

Code:
{section name=num loop=$recommends} <li><a href="product.php?productid={$recommends[num].productid}" class="ItemsList">{$recommends[num].product}</a> {include file="currency.tpl" value=$recommends[num].taxed_price}</li> {/section}
__________________
Doms
kube v4.1.9
Reply With Quote
  #8  
Old 04-17-2008, 08:06 AM
 
effour effour is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 96
 

Default Re: recommended $list_price not displaying

No, {$products[product].list_price} does not display the list price.

{$recommends[num].productid} displays the product IDIs there some other options that I can try?

Thx!



Quote:
Originally Posted by kube
Is the [product] part populated with an item when you are passing it through?

Code:
{include file="currency.tpl" value=$products[product].list_price}

ie. does printing {$products[product].list_price} produce a price on the same .tpl from which you are calling from?
__________________
4.1.7
Reply With Quote
  #9  
Old 04-17-2008, 08:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: recommended $list_price not displaying

$recommends[num].list_price
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 04-17-2008, 08:25 AM
 
effour effour is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 96
 

Default Re: recommended $list_price not displaying

This doesn't work either

Quote:
Originally Posted by balinor
{$recommends[num].list_price}
__________________
4.1.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:41 PM.

   

 
X-Cart forums © 2001-2020