skullj
July 12, 2012, 12:00am
#1
You have to set up a controller too. There is an addon for this already here on the forum that I even upgraded to 3.0.1.
You can also follow the instructions in the knowledge base. You'll need t tweak the code a bit for your own individual needs, but it should get you started.
Thanks,
Brandon
skullj
July 13, 2012, 12:00am
#3
Nothing of those really works. Forum is full of reports that addons not working or working accidentally after X hours… or something.
the controller yes! I just forgot this!
So, I know that is wrong but works for me fine.
In controllers/customer/categories.php
FIND
fn_gather_additional_products_data($products, array('get_icon' => true, 'get_detailed' => true, 'get_options' => true, 'get_discounts' => true, 'get_features' => false));
And PASTE AFTER that:
//START - Added by me
$subcat = $view->get_var('subcategories');
$subcat = fn_get_subcategories($_REQUEST['category_id']);
foreach($subcat as $k => $v) {
$subcat[$k]['main_pair'] = fn_get_image_pairs($v['category_id'], 'category', 'M', true, true);
}
$view->assign('subcategories', $subcat);
//END