| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#11
|
|||||||
|
|||||||
Can we take it a bit further..?
Does the link change if the customer logs in? For ex. if you put the link that says Sign In, does is say Sign Out once they have signed in?
If not, can we make it so that it does? The one good thing about the auth box is that it lets the customer know that they have successfully signed in by saying logoff. I know the customer can see on the login page that they have signed in but once you go to another page the customer may see the Sign in link and think that they are not signed in. Also, does any one know of a "my account" mod where the wish list, profiles and the orders history links from the shopping cart have been moved onto a "my account" page? Thanks, elab |
|||||||
#12
|
|||||||
|
|||||||
can anyone please tell me how I can make this work for version 3.5.3 ?
i get a 'parse error' on 'line 3' anyone, please?
__________________
3rd site: 4.1.0 (currently working on) 2nd site: Version 4.0.12 X-Cart version 3.5.14 PHP 4.3.3 details MySQL server 4.0.15 |
|||||||
#13
|
|||||||
|
|||||||
i figured it out myself...
login.php Code:
__________________
3rd site: 4.1.0 (currently working on) 2nd site: Version 4.0.12 X-Cart version 3.5.14 PHP 4.3.3 details MySQL server 4.0.15 |
|||||||
#14
|
|||||||
|
|||||||
I tried this but placing changes in common_templates.tpl file disables webmaster mode functionality. ANy ideas?
I tried different approach and created login.php with this in it: <?php require "./auth.php"; require $xcart_dir."/include/categories.php"; $smarty->assign("main", "mainlogin"); $smarty->display("main/login.tpl"); ?> I copied login_incorrect code and created tpl file called login.tpl. Now I get what I want: http://216.93.188.234/shopping/customer/login.php But how do I get that to display within the regular page with header, footer etc...? Thanks, Predrag
__________________
X-Cart version 4.0.12 Gold PHP 4.3.8 MySQL 3.23.58 |
|||||||
#15
|
|||||||
|
|||||||
Getting the following error with this mod...
Warning: Smarty error: unable to read template resource: "shop/home.tpl" in /home/httpd/vhosts/shopgspot.com/httpdocs/Smarty-2.5.0/Smarty.class.php on line 1042 Can anyone help me out??? version: 3.5.4 |
|||||||
#16
|
|||||||||
|
|||||||||
I just get a blank page of nothingness!
Here is what my code looks like for my custom login.php Code:
help!
__________________
~jaime* shop.mpartworks.com ~~~~~~~~~~~~~~ xcart pro 3.5.5 heavily modified freeBSD 4.8 php 4.3.3 |
|||||||||
#17
|
|||||||
|
|||||||
Are you on v3.5.5 by any chance?
Try this: <? require "./auth.php"; require $xcart_dir."/include/categories.php"; $smarty->assign("main", "mainlogin"); $smarty->display("customer/home.tpl"); ?> You will need to have something like this in your 'common_templates' file: {elseif $main eq "mainlogin"} {include file="customer/main/mainlogin.tpl"} hope this helps
__________________
X-Cart Gold Version: 4.0.17 X-Configurator X-AOM X-FancyCategories X-RMA X-Offers |
|||||||
#18
|
|||||||||
|
|||||||||
Hiya!
i am somewhere between 3.5.4 & 3.5.5 - xcart is doing funky mods. i did exactly as you said: results are here: http://shop.mpartworks.com/login2.php Code:
http://shop.mpartworks.com/login.php Code:
*grumble*
__________________
~jaime* shop.mpartworks.com ~~~~~~~~~~~~~~ xcart pro 3.5.5 heavily modified freeBSD 4.8 php 4.3.3 |
|||||||||
#19
|
|||||||
|
|||||||
I will post full code and instructions shortly.
__________________
X-Cart Gold Version: 4.0.17 X-Configurator X-AOM X-FancyCategories X-RMA X-Offers |
|||||||
#20
|
|||||||
|
|||||||
Hi,
Creating a seperate 'Login' page: Step 1 - Create a file named 'myaccount.php' in the folder '[xcart]/customer' in the root x-cart directory. i.e. NOT [skin1]/customer. In the file 'myaccount.php' paste the following code, ensuring you leave no 'white spaces' at the bottom of the file. Code:
Step 2 - Creating a page to inform Smarty of which template to use: In [skin1]/common_templates.tpl add the following after the first if statement: Code:
Step 3 - Creating the 'login' page Create a new template 'myaccount.tpl' in [skin1]/customer/main. Then simply copy the login code from: '[skin1]/auth.tpl, inbetween the '{capture} and {/capture} tags as we don't want smarty to base the login page on the 'menu.tpl' template place it between the tags ' Code:
Code:
Code:
You will need to create a link to call 'myaccount.php' and that is pretty much it. This has been tested on v3.5.5. You can of course change modify the template to your liking and should form the basis of a 'seperate' login page. Any comments appreciated!
__________________
X-Cart Gold Version: 4.0.17 X-Configurator X-AOM X-FancyCategories X-RMA X-Offers |
|||||||
|
|||
X-Cart forums © 2001-2020
|