View Single Post
  #7  
Old 12-21-2010, 05:09 PM
 
ozchris ozchris is offline
 

Senior Member
  
Join Date: Jun 2007
Posts: 100
 

Default Re: Adding Featured Products to a Static Page

I'm trying to do this on a 4.3 site.

They wanted a handful of static pages to be used as SEM landing pages, with featured products for a non-display category.

So I've rigged the sidemenu to not display certain categories with pos > 800.
Then created the category and featured products.

So far my static page contains:
Code:
{php} $cat=10; include "./include/categories.php"; include "./featured_products.php"; {/php} {include file="customer/main/featured.tpl" f_products=$f_products}


But how do I pass the category parameter to the module?
I also seem to be getting fatal errors when the included php module performs the smarty assign statement.

Fatal error: Call to a member function assign() on a non-object in /var/www/devwww.aimbooks.com.au/include/categories.php on line 52


__________________
Linux. Apache. PHP 5.2
Site 1 - now xcart 4.4.1 DSEFU, AOM, RMA, Magnifier, Upsells. Heavy mods for Australian postcode validation and extra Aussie payment method.
Site 2 - xcart 4.1.11, DSEFU
Site 3 - xcart 4.2
Site 4 - xcart 4.3
Reply With Quote