Quote:
Originally Posted by Eyeglasses Expert
details,pls?
|
In the file /pages.php, at the top, after this line:
Code:
require $xcart_dir."/include/categories.php";
I have put:
Code:
if ($pageid == '15') { $cat="104"; };
include './featured_products.php';
This means that if the Page ID (seen when you edit the page in the URL of the admin area) matches the $pageid variable, then it sets the category of the featured products to (in this case) Category 104.
So when you edit a static page, you need to insert this code into the body:
Code:
{include file=customer/main/featured.tpl f_products=$f_products}
Note: make sure you have selected the option "Parse Smarty tags in the content of embedded pages" in the Pages section.
This should now include the featured products from a particular category (the 104 ID) and include them in the specific page (with the Page ID 15).
If you still need help just reply in here.