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

Newest Products Template modification

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-12-2005, 06:11 PM
 
Edda Edda is offline
 

Member
  
Join Date: Nov 2005
Posts: 25
 

Default Newest Products Template modification

I have bought newest_products modification, so
I want add to this template: fts_newest_products_display.tpl
also the product price... but I don't know how... somebody can help me ??
Thanks in advance

Code:
{if $new_products|@count gt 0} {capture name=newest_products} <table width="100%" border="0" cellpadding="0" cellspacing="10"> {section name=i loop=$new_products} {if %i.first% or %i.index% is div by 3} <tr> {/if} <td width="33%" align="center" valign="top"> <a href="product.php?productid={$new_products[i].productid}" target="{$targetwin}">{include file="product_thumbnail.tpl" productid=$new_products[i].productid image_y=100 product=$new_products[i].product tmbn_url=$new_products[i].tmbn_url} {$new_products[i].product}</a> </td> {if (%i.index% + 1) is div by 3 or %i.last%} </tr> {/if} {/section} </table> {/capture} {include file="dialog.tpl" title="Ultimi arrivi...." content=$smarty.capture.newest_products} {/if}
__________________
x-cart version 4.0.16
Reply With Quote
  #2  
Old 11-14-2005, 06:59 AM
 
cbarnes cbarnes is offline
 

Member
  
Join Date: Oct 2005
Location: Kansas
Posts: 18
 

Default

Hi Edda,

You need to find out what is available in the "$new_products" array.

I would suggest contacting FTS for this information.

Alternatively, you could try and print the array inside the PHP code.

For example,

Code:
print_r($new_products);

If you see a value that appears to look like a price, you could then use it in your template.

Maybe something similar to:

Code:
{$new_products[i].product_price}

I hope this helps.
__________________
Chris Barnes
Ative LLC
X-Cart Development & Consulting
Reply With Quote
  #3  
Old 12-09-2005, 07:27 AM
 
Edda Edda is offline
 

Member
  
Join Date: Nov 2005
Posts: 25
 

Default

nobody can help me ???
__________________
x-cart version 4.0.16
Reply With Quote
  #4  
Old 12-09-2005, 07:37 AM
 
balinor balinor is offline
 

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

Default

Why not contact the vendor you bought this mod from?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-15-2005, 03:45 PM
 
Edda Edda is offline
 

Member
  
Join Date: Nov 2005
Posts: 25
 

Default firetanksoftware.com so bad support !!!!

I've contacted the vendor (firetanksoftware.com) but the vendor support have a so bad support....
I've opened one ticket from 3 days and I haven't any reply !!! so bad so bad support !!!!
__________________
x-cart version 4.0.16
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 06:03 AM.

   

 
X-Cart forums © 2001-2020