View Single Post
  #2  
Old 07-12-2010, 12:31 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: How to display best sellers in a static page?

Open pages.php

FIND:

Code:
# Assign the current location line
$smarty->assign("location", $location);


BEFORE ADD:

Code:
if ($active_modules["Bestsellers"])
include $xcart_dir."/modules/Bestsellers/bestsellers.php";


In your static page use:
Code:
{if $active_modules.Bestsellers ne ""}
{include file="modules/Bestsellers/bestsellers.tpl"}
{else}
Provide a disabled message.
{/if}

This is for version 4.1.x..

__________________
4.6.1 Platinum


Reply With Quote