| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
My Account Login | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
My Account Login
At one time I remember someone posting a topic with a way to make a "My account Login" link, that sent you to a login form, verses having the login authbox on the side menu.
Does anyone know that toppic thread or now how I can do this? Thanks |
|||||||
#2
|
|||||||
|
|||||||
Login on separate "My Account" page
Elab,
Here's what I have done: 1. Create a new template in the skin1/Help direcetory and call it Login.tpl. Put the following code in it, note the (3) template files that it referrences - they are customizations of the respective files, minus the "_mod" would equal the original template. Also, there are some languages that I used: see {$lng.txt_login_header_1} etc. for the Login.tpl: Code:
Code:
By doing the last step, you will be able to call the Login page as: http://yourdomain.com/xcart/help.php?section=Login Now what about the three templates referrenced as: auth_mod.tpl, menu_profile_mod.tpl and authbox_mod.tpl? They should all be located in the root skin1 directory, like their original files that I have modified. First create additional templates with three names (like my "_mod" extension for the modified template) or some variation of the original templates, but be sure to change the name respectively in the created Login.tpl. Now, what do you put in the three _mod files? Well, for starters, you'll need to modify the code to take it out of a menu template with the boxes and borders. I have made some additional changes to get the new templates to fit the new format and I'll put the files below. Keep in mind, you may need to adjust some of the html to get your desired table widths and check the "languages" referrenced. I created new language varaibles, like lng.txt_login_header_1 and others, so be sure to either use the original template variable or create a variable to your liking. My three modified files are below, use them, tweak them as you wish. They are only a good starting point as I created them to fit within my site framework. I know that they will at least get you started. For file auth_mod.tpl, insert the code: Code:
In the menu_profile_mod.tpl file, you'll need to remove the menu look that was originally used in the column-menu design. Also, you will see three language texts added: {$lng.txt_menu_profile_option1}, {$lng.txt_menu_profile_option2} and {$lng.txt_menu_profile_option3}. These show up in "My Account" after the user has logged in. I created the language text to say the following: {$lng.txt_menu_profile_option1} = "Change your password, billing or shipping addresses." {$lng.txt_menu_profile_option2} = "Need to remove or delete your current profile?" and {$lng.txt_menu_profile_option3} = "View, print or modify your (Company Name) orders." So change accordingly. Here's my menu_profile_mod.tpl file: Code:
Code:
Let me know if you have any problems. This works well for me and I have referrenced in the functionality for the user to return to "My Account" at any time to Modify/Delete their profile, search for orders and of course Login/Logout. If anyone has any improvements of this work, I would love to see them here! Nothing is ever finished. This is just one step that I have done to get the clunky X-Cart style menus reduced to their core: Products, products and products - that's all that should be in the category/side menus. Additional functionality should be achieved by using headers, footers and a good site map. The best way to prevent users from getting lost in your web city is just to take them their to begin with ... - Mike
__________________
4.1.9 |
|||||||
#3
|
|||||||
|
|||||||
mffowler,
This looks like a great mod which I have almost got to work on my site except within your 'menu_profile_mod.tpl' you include the following file="buttons/button_vunc.tpl" I am assuming that this is also a modified file or is calling a file that you have previously amended but unfortunately is not listed within your extensive expanations above. Can you please advise what is included within this file or what .tpl your button_vunc is based upon. Look forward to your response.
__________________
Mike -------------- Version: 4.0.11 Live, RMA, AOM & X-Affiliate PHP 4.3.4 MySQL server 3.23.58 MySQL client 3.23.58 Web server Apache/1.3.29 (Unix) Site: http://www.clubsrefinished.co.uk |
|||||||
#4
|
|||||||
|
|||||||
I am also interested in this solution! So far, I implemented the MOD and I am able to log in and create an account correctly, but once I am logged in, I obtain the following error if I try to view the /help.php?section=Login:
Warning: Smarty error: unable to read template resource: "menu_profile_mod.tpl" in /home/lapislaz/public_html/store/Smarty-2.5.0/Smarty.class.php on line 1042 Warning: Smarty error: unable to read template resource: "authbox_mod.tpl" in /home/lapislaz/public_html/store/Smarty-2.5.0/Smarty.class.php on line 1042 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Login on separate "My Account" page
I get this error. Warning: Smarty error: unable to read resource: "menu_mod.tpl" in /hsphere/local/home/eaglemob/eaglemobiles.co.uk/e-shop/Smarty-2.6.3/Smarty.class.php on line 1082
Thanks
__________________
X-Cart Gold 4.3.2 X-Cart Gold 4.4.1 Unix High Quality CCTV DVRs & Cameras http://www.eaglemobiles.co.uk/CCTV |
|||||||||
#6
|
|||||||
|
|||||||
I did this using a different approach. I just have a link to the following in my header and it works fine:
store/customer/secure_login.php?
__________________
X-Cart Gold 4.1.8 |
|||||||
#7
|
|||||||
|
|||||||
I was able to solve the eroor I was getting: all this was because I use ?Login instead of ?login! I sometimes forget that X-cart is case sensitive.
Now, a question: How would I display "user logged in !" message, along with the Logoff buttom, one a customer is logged in? Where do you recommend displaying this message? Ussually, it can be found right inside the menu we are trying to eliminate. Regards, Lorena |
|||||||
#8
|
|||||||
|
|||||||
Good mod. Thanks.
Code:
In 4.0.11, menu_mod.tpl should be menu.tpl.
__________________
version 4.1.1 |
|||||||
#9
|
|||||||
|
|||||||
once logged in, i get these error:
Code:
What is this "buttons/button_vunc.tpl" ? Please advise. Thanks for a great mod !
__________________
X-Cart 4.0.11 {My simple mods} Adding Market list and % save on product detail Quantity input box |
|||||||
#10
|
|||||||
|
|||||||
sorry
i just changed it to " buttons/button.tpl " and realized what a dumb mistake I have made. that was just the buttons image thanks again for a great mode.
__________________
X-Cart 4.0.11 {My simple mods} Adding Market list and % save on product detail Quantity input box |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|