![]() |
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 |
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? |
i figured it out myself...
login.php Code:
<? |
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 |
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 |
I just get a blank page of nothingness!
Here is what my code looks like for my custom login.php Code:
<?php help! 8O |
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 |
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:
<?php *grumble* :) |
I will post full code and instructions shortly.
|
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:
{elseif $main eq "myaccount"} 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:
{include file="location.tpl"} Code:
{include file="dialog.tpl" title="My Account" content=$smarty.capture.dialog extra="width=100%"} Code:
{assign var="last_location" value="My Account"} 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! |
All times are GMT -8. The time now is 08:16 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.