X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Redesign of site with CSS - new folder? (https://forum.x-cart.com/showthread.php?t=48674)

Sisom 07-18-2009 12:28 PM

Re: Redesign of site with CSS - new folder?
 
Okay, auth.tpl has this line at the bottom:

{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }

and menu.tpl has this part:

<tr><td>{$menu_content}<br /></td></tr>

but I can't work out where to find $smarty.capture.menu, which I presume contains the URL that the login arrow goes to. Should I be looking in a .php file for this? It's been over a year since I last edited the site in this depth, I'm afraid.


EDIT:
At the top of auth.tpl, I found this:

<form action="{$form_url}/include/login.php" method="post" name="authform">

so that must be where I need to look!

EDIT:

I think it might be this part of /include/login.php:

switch ($redirect) {
case "admin":
$redirect_to = DIR_ADMIN;
$current_type = 'A';
break;


But I'm not sure where the DIR_ADMIN variable is.

cflsystems 07-18-2009 12:53 PM

Re: Redesign of site with CSS - new folder?
 
Open config.php in www.mysite.com/tomcat and change the paths for your site. And you want to have a separate DB for this test site
Also make sure your .htaccess doesnt have something to redirect to www.mysite.com

Sisom 07-18-2009 01:10 PM

Re: Redesign of site with CSS - new folder?
 
Thanks Steve, I'll try that, much appreciated.

EDIT: I have a strange problem now. I'm in www.mysite.com/tomcat/admin, and I've made a change to home.tpl so that it displays a red bar across the top of the page, so that I can easily see which version of the site I am looking at. But when I go into 'General' and close the shop, it closes the real version of the shop, but not the test version! But I was definitely in www.mysite.com/tomcat/admin/configuration.php when I ticked the box to close the shop.

I'm not sure how to create a separate database - is this easy to do?

cflsystems 07-18-2009 02:28 PM

Re: Redesign of site with CSS - new folder?
 
Yes you need a separate DB to work with the test site. You can use phpmyadmin and copy the existing one with a different name. Then make sure in the config.php for the test site you change the db too


All times are GMT -8. The time now is 01:45 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.