Re: $smarty->assign("main", "home"); how it goes to home.tpl
Sorry, I missed the admin part of it. In admin things get a little weird. For X-Cart Gold it works like this, not sure about X-Cart Pro. To display the page the statements are:
@include $xcart_dir."/modules/gold_display.php";
func_display("admin/home.tpl", $smarty);
That include is what makes things weird. If the user is setup as fulfillment staff it displays skin1/fulfilment/home.tpl otherwise it displays skin1/single/home.tpl
Those are the two files you need to tweak to check main for your page name and include it.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]
UGG Boots and other fine sheepskin products
http://www.snowriver.com
|