| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#51
|
|||||||
|
|||||||
![]() Thanks a lot. Great idea!
__________________
Tanya x-cart version: 4.1.7 4.1.9. 4.2 |
|||||||
#52
|
|||||||||
|
|||||||||
![]() Quote:
I want to combine three templates into one page. I can't figure out how they are called. I don't need to edit the templates themselves, just have them all on the same page. Here's specifics: I have 3 separate pages as follows login = secure_login_form.tpl registration = register.tpl recover lost password = change_password.tpl these all come up on separate pages, I want them all on one. My home_main.tpl includes this: {elseif $main eq "register"} {include file="customer/main/register.tpl"} {elseif $main eq "secure_login_form"} {include file="customer/main/secure_login_form.tpl"} {elseif $main eq "change_password"} {include file="customer/main/change_password.tpl"} I'm not sure what file I need to modify.
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#53
|
|||||||||
|
|||||||||
![]() i couldnt get this to work. so what i did was duplicate this page - xcart/error_message.php?need_login. i'm not sure what unnecessary code can/should be removed from the duplicated file beyond what i've already removed so that it continues to work but...
create a file called myaccount.php and insert the following code Code:
then upload it to /xcart directory. then in skin1/common_templates.tpl add the following... Code:
then add the link to your page http://www.mysite/xcart/myaccount.php where you want it to appear.
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#54
|
|||||||||
|
|||||||||
![]() if it helps anyone, here's how i displayed the login link if logged out and vice versa...
Code:
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#55
|
|||||||||
|
|||||||||
![]() Quote:
I don't really understand why you would want them all on the same page, particularly since they do different things. "Register" does just that, registers new customers. "Secure Login" will login current customers using https. "Change Password" will allow current customers to change their password, and is part of "modify profile". "recover lost password = change_password.tpl" as you state is incorrect. "Recover Password" allows a current customer to retrieve their login information via email and has nothing to do with changing their password (unless of course you require them to change it at their next logon). Anyway, to get more than one template on a page, just call it... {elseif $main eq "whatever_you_want_to_name_your_page"} {include file="customer/main/register.tpl"} {include file="customer/main/secure_login_form.tpl"} {include file="customer/main/change_password.tpl"} You need to include the "requires" on "whatever_you_want_to_name_your_page.tpl"
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#56
|
|||||||
|
|||||||
![]() I'm running X-cart 4.1.11 and to get a login page, I just link to secure_login.php. Ideally you should use https, but either way. I'm not sure how long this program has been part of X-cart.
__________________
x-cart 4.1.11 x-cart 4.1.12 x-cart 4.2.3 x-cart 4.3.2 |
|||||||
#57
|
|||||||
|
|||||||
![]() I've copied updated Laureon's mod with your code above. Now, I need to remove the previous {if $login ne ""} info and include what you have posted. Can you direct me where this should go in the myaccount.tpl?
I will also be adding a 'password protect' register login for this new login page. Any suggestions are welcome. Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#58
|
|||||||
|
|||||||
![]() Boomer,
I've tried both your code and Laureon's, but I'm not having any luck. When I used your suggestion to copy the code from my site login_form.tpl <form> </form>, I could see the code and no way to submit. When I used your code and corrected any portion that points to your /lab/, then the login page shows, but still no submit button. Any suggestions? Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#59
|
|||||||
|
|||||||
![]() Hi Christine,
In the sample code you posted it is showing a link to: skin1/images/buttons/submit.gif I believe you will find no such file in your 4.1.x version of X-Cart. There is now a skin1/buttons/ folder and inside you will find submit.tpl (TPL not GIF). In place of the submit button, you may be able to use: {include file="buttons/login_menu.tpl"} Also, compare the source code on one of your existing web site login pages. The customer login page uses this template: customer/main/secure_login_form.tpl And here is part of the Submit Button code from that template: {if $js_enabled} {include file="buttons/submit.tpl" href="javascript:document.secureform.submit()" js_to_href="Y"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit} {/if} </td> </tr> </form> The above code shows how they are including the file: buttons/submit.tpl if Javascript is enabled, else include submit_wo_js.tpl Both submit.tpl and login_menu.tpl then include file="buttons/button.tpl" to create the Submit button image. One of those methods should work for you. Just work on a copy of the file and a test site (if you have one available). Robert
__________________
X-cart 4.1.10 |
|||||||
#60
|
|||||||
|
|||||||
![]() Thanks for your reply. I've made some progress with the login page, but I am having trouble with the submit-login button. I tried your code and your suggestion using {include file="buttons/login_menu.tpl"} with my original code from auth.tpl. Tonight the link is working in IE7, but earlier today it didn't work in Safari or Firefox. Do you have any suggestions for me to password protect register.php?
Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
|
|||
X-Cart forums © 2001-2020
|