Jump to content

Home Page for Category


Recommended Posts

yes, it's posible, but is a manual and complicated work...

i have got a "homepage" for each supplier in my store (offline, sorry), with personal hooks (supplier1, supplier2, supplier3, etc...) and each one with the respective modules (homefeatured, editorial, etc...)

you can creat a php page in the root directory with the name manufacturer-1, with the respective .tpl file to the manufacturer n° 1, a php file called manufacturer-2, etc etc etc...

sorry, is a very long explanation

Link to comment
Share on other sites

you can create the PHP files of each manufacturers with the name "manufacturer-1", "manufacturer-2", "manufacturer-3"... the number is the ID of each manufacturer

the PHP file must be like this:

<?php

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');

$smarty->assign('HOOK_MANUFACTURER1', Module::hookExec('manufacturer1'));
$smarty->display(_PS_THEME_DIR_.'manufacturer-1.tpl');

include(dirname(__FILE__).'/footer.php');

?>



then, you must add the hook "manufacturer1" to your database and then you can copy the editorial module with the hook asignation to "manufacturer1"...

so, the .tpl file must be:

{$HOOK_MANUFACTURER1}



this is to one manufacturer, you must repeat this for each one...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...