Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

My Account Login

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 01-20-2006, 02:43 PM
 
yoshitoshi yoshitoshi is offline
 

Member
  
Join Date: Jan 2006
Posts: 10
 

Default

awesome, you guys do all the hard work for me
There should be a rating system so new-comers could check out the "more important" mods right away.

Thanks for the great job!
__________________
X-cart Gold 4.0.17
Windows XP/Mac OSX 10.3.9
Los Angeles, CA
Reply With Quote
  #52  
Old 05-26-2006, 08:10 AM
 
factoria factoria is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 39
 

Default

Let's try it, hope it works. I was having problems with the RMA mod when clients loged from the shop, does this mod enables users to generate the RMA?
__________________
X-Cart Version 4.1.0
Reply With Quote
  #53  
Old 08-05-2006, 02:31 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

Is everyone following shans code below?

Are there any problems with it?

Further, once they login, is there a page that shows the
orders, modify profile, etc?

I know by default xcart has those on the
side as links. but theres no page for them.


Quote:
Originally Posted by shan
a simple way to create a log in page is.

add a link

Code:
<table border="0" align="right" cellpadding="0" cellspacing="0"> <tr> {if $login} <FORM action="{$xcart_web_dir}/include/login.php" method="post" name="loginform"> <td> Log Out - {$login} <INPUT type="hidden" name="mode" value="logout"> <INPUT type="hidden" name="redirect" value="{$redirect}"> </td> </FORM> {else} <td> Log In </td> {/if} </tr> </table>

edit checkout.tpl. get the bit of code at the top and wrap it with the following to remove the cart part showing if the page is being used for log in

add to top

Code:
{if $smarty.get.mode ne "auth"}

original code

Code:
{capture name=checkout_dialog} <FORM action="cart.php" method="POST" name="cartform"> <INPUT type="hidden" name="cart_operation" value="cart_operation"> {if $config.Appearance.show_cart_details eq "Y" or ($config.Appearance.show_cart_details eq "L" and $smarty.get.paymentid ne "" and $smarty.get.mode eq "checkout")} {include file="customer/main/cart_details.tpl"} {else} {include file="customer/main/cart_contents.tpl"} {/if} <HR noshade size="1"> {include file="customer/main/cart_totals.tpl"} {if $js_enabled} {include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_update} {/if} </FORM> {/capture} {include file="dialog.tpl" title="`$lng.lbl_checkout`: `$lng.lbl_step` `$checkout_step` `$lng.lbl_of` `$total_checkout_steps`" content=$smarty.capture.checkout_dialog extra="width=100%"}

add beneath

Code:
{/if}
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #54  
Old 08-06-2006, 03:53 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

a friendly reminder to thos using the
xcart/help.php?section=Login

when you create the link, make sure is going to an htts://

ssl page.

xcart/help.php?section=Login

is not the same as secure_login.php

also a few are getting the security pop up box from explorer.

balinor and other members has posted a few times on ways to how to prevent this spoof!
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #55  
Old 08-10-2006, 05:17 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default

Thanks for this mffowler..

Works well in v4.1.2.

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #56  
Old 08-20-2006, 04:41 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default

I tried Shan's method in 4.1.1, but it doesn't give you the login screen unless you have an item added to your cart. It just says "Your shopping cart is empty ". Has anyone else experienced the same thing?
__________________
~ Andrea Beight
Reply With Quote
  #57  
Old 08-20-2006, 09:06 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

OK, so, how about this.....

create a static page called "Login to Your Account"

here is the page content

Code:
{if $login} <table width=500> <tr><td> <div class=HeadText> You are currently logged in as {$login} <br><Br> <a href="orders.php?mode=search">Click here to track or view your previous orders</a> <br><br> <a href="register.php?mode=update">Click here to view or modify your profile</a> <br><br> <a href="include/login.php?mode=logout&redirect=customer">Click here to Log Out</a> </td></tr></table> {else} <table width=500><tr><td>Please login here using your username and password<br><br> { include file="auth.tpl" } </td> </tr> </table> </div> {/if}

make sure that in "General Settings" you have checked "Parse Smarty tags in the content of embedded static pages:"

you account login link is = "http://www.yoursite.com/pages.php?pageid=2"

or whatever number static page you are on

this seems to be a really easy solution to this problem, almost too easy.....but it works for me.

note - i haven't got my ssl cert installed yet, so not sure if that will cause any issues.

-mike
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #58  
Old 08-21-2006, 10:06 AM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Wink Re: My Account Login

Works beautifully Thundernugs - well done!

I've used this mod to create a "my account" page for logged in customers. I copied the links from auth.tpl and also added the links for order history, returns and wishlist to create a menu
(hint: "orders.php?mode=search" saves customers having to enter a date to search for orders, just brings up all orders at once).

Nice one, thanks

ps. Works with SSL if you're linking to this page from a button/text link, just use "https://pages.php?pageid="
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote
  #59  
Old 09-12-2006, 12:53 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default Re: My Account Login

I created the static page and applied the script but is showing this code when I press the link: "Login to your Account":

{if $login} You are currently logged in as {$login}

Click here to track or view your previous orders

Click here to view or modify your profile

Click here to Log Out
{else} Please login here using your username and password

{ include file="auth.tpl" }

{/if}

What am doing wrong?
x-cart Gold 4.1.3
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote
  #60  
Old 09-12-2006, 01:12 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: My Account Login

Did you do this step:

Quote:
make sure that in "General Settings" you have checked "Parse Smarty tags in the content of embedded static pages"
__________________
~ Andrea Beight
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:29 AM.

   

 
X-Cart forums © 2001-2020