I would have thought a lot more people would have known how to do this. Here are all the steps:
1. Create 'new_page.php' file in the '<xcart_root_dir>' with the following content :
---------------------------------------
<?php
require "./auth.php";
# Assign Smarty variables and show template
$smarty->assign("main","new_page");
func_display("customer/home.tpl", $smarty);
?>
---------------------------------------
2. Open '<xcart_root_dir>/skin1/customer/home_main.tpl' template and add following code :
---------------------------------------
{elseif $main eq "new_page"}
{include file="new_page.tpl"}
---------------------------------------
after the following fragment:
---------------------------------------
{elseif $smarty.get.mode eq "unsubscribed"}
{include file="main/unsubscribe_confirmation.tpl"}
---------------------------------------
3. Then create 'request_catalog.tpl' template in the '<xcart_root_dir>/skin1/' folder with the following content:
---------------------------------------
{$lng.lbl_new_page}
---------------------------------------
Then, when the customer opens the 'new_page.php' URL the standard X-Cart page will appear with the '{$lng.lbl_brochures_text}' language variable text in the central area.
__________________
Product: X-Cart Gold
Current version: 4.0.14
Additional Mods: X-Affiliate
|