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

login check

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-18-2005, 02:36 PM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default login check

I want to make my own account page for my customers to access varies things:

Modify Profile, Delete Profile, Order History, Wish List, View Cart, Checkout, Log out

I got all of the links for the above, what I want is a check for login.

If logged in show: X, Y, Z

else show
login, password, register

Thanks for any help
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #2  
Old 07-18-2005, 02:53 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Those if statements are already included in the various auth and auth_box templates and can be drawn from there.

- Mike
__________________
4.1.9
Reply With Quote
  #3  
Old 07-18-2005, 03:14 PM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

sorry still a novice (not fawn of the word newbie )

Ok I see those 2 files and I understand those create the auth look. I dont need that. I want to make my own php file outside of a tpl that check the user status. I am just not sure how to find the right statement. Can you please post it.

I havelooked in login.php, register.php, auth.php, auth.tpl & authbox.tpl

I think what I want is in login.php just not sure.

I will paypal $5 to anyone who can solve this for me. I know it is not much $ but I dont have much either to offer

Thanks.
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #4  
Old 07-18-2005, 03:39 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Don't need to offer $5, it has already been done:

http://forum.x-cart.com/viewtopic.php?t=14069

Forum search is your friend
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-18-2005, 03:39 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

hudge,

No problem. I would be happy to help. I already have a post that details what you are trying to do, it's called "My Login": http://forum.x-cart.com/viewtopic.php?t=14069

The mod works, but has generated a lot of requests for newbies with some of the code being proprietary (relating only to my custom buttons). I have though about revamping the post and may do so when I have a chance.

There are many ways to get a login page, but having an actual account paghe requires the integration and addition to the help duirectory and general.tpl in help. This is a great way to have an account center or area where a customer can access their details. PM me and I'll send you a link to some sites where have done this.

You can set if statements for membership or user type or even for specific users themselves. It is quite simple once the base template structure is setup. Unfortunately, at the moment can offer the full solution as it's a couple hours of work and $5 isn't motivating enough.

If I get a chance, I'll revist the "My Account Login" post and make it easier and cleaner for newer users. It's not too far off, but to get it right, you would stll need to have some experience or be able to recognize what the code is and says.

- Mike
__________________
4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:03 AM.

   

 
X-Cart forums © 2001-2020