View Single Post
  #685  
Old 07-22-2013, 08:28 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: X-Cart Smart Template v4.4.x

Quote:
Originally Posted by PhilJ
Anyone wishing to display bestsellers in horizontal format... (not in side menu)

1) Adjust the bestseller module settings to disable the bestsellers in the menu.

2) Upload the attached bestsellers.tpl file to...

skin/smart_template/modules/Bestsellers

3) In modules/Bestsellers/bestsellers.php

Before...

Code:
$smarty->assign_by_ref('bestsellers', $bestsellers);

Insert...

Code:
# Get Bestseller Product Descriptions foreach ($bestsellers as $k => $v) { $bestsellers[$k]['descr'] = func_query_first_cell("select descr from $sql_tbl[products] where productid='$v[productid]'"); }

4) Clear template cache.


I cant seem to get the description to work in version 4.5, the description doesnt show up with this code, please can you help, thanks in advance
__________________
Richard


Ultimate 5.4 testing
Reply With Quote