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

Personal Welcome page for registered customers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-13-2006, 03:57 PM
 
m.higgins m.higgins is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 7
 

Default Personal Welcome page for registered customers

Hello everyone....I have recently purchased X-cart and have been customizing version 4.0.17 with the usual changes...

I am using the fashion mosaic skins and was wondering if anyone knows of either an easy way to give registered customers a more Personal Welcome page for (if not available already) or a MOD that will do this...

Basically, I was thinking of an option similar to the tick box in the General Options settings "Redirect customer to cart:" whereby the administrator could tick a box could 1) "Redirect customer to personal info" or 2) "Redirect customer to History" or 3) "Redirect customer to promo page"

This doesn't necessarily need to be down to the Admin to pick but the user could pick his/her own page to be "Welcomed" with.

At the moment the only option I can see the user has to differentiate whether or not he/she is logged in is: the "Redirect customer to cart" tick box. When this is un-ticked nothing happens apart from the top says "customer name" is logged in !

It would be nice to have the option to redirect to the customers profile details when logging in - giving them the option to check and update their info, or their recent purchases or a promo page especially for members

Again - not sure if anything is already out their, I've had a scan but cannot find anything in here...I've been checking some X-Cart MOD site too but still no joy...

I am very NEW to this and PHP scripting but can get by with some instructions.

Let me know if you can help...

Thanx in advance!

Martin
__________________
version 4.0.19
php 5
Reply With Quote
  #2  
Old 02-13-2006, 06:09 PM
 
balinor balinor is offline
 

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

Default

Open up welcome.tpl and use an {if} statement to differentiate between logged in and not logged in customers:

{if $login eq ""}

Display non logged in text

{else}

Display logged in text

{/if}

You can of course use html in place of the text or whatever else you want in there.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-13-2006, 11:59 PM
 
m.higgins m.higgins is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 7
 

Default

Quote:
Open up welcome.tpl and use an {if} statement to differentiate between logged in and not logged in customers:

{if $login eq ""}

Display non logged in text

{else}

Display logged in text

{/if}

You can of course use html in place of the text or whatever else you want in there.

Thanx for that, I'll give it a go this afternoon...
__________________
version 4.0.19
php 5
Reply With Quote
  #4  
Old 02-14-2006, 04:43 AM
 
m.higgins m.higgins is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 7
 

Default

Super *!!! worked like a dream (not that I had any doubt) I thought I'd stick another welcome image in it's place for now.

I would be interested in a random image each time the customer logs in in the future at some point....does anyone know how I would do this?

Also, and this is the part I am most interested in...

Now that I have a different image, I would like to change it so that when the the customer logs in, the menus change too...as if I was to click the shopping cart link. Giving the customer the option to go directly to his/her links like:
View cart
Checkout
Wish list
Modify profile
Delete profile
Orders history

Rather than to click "shopping cart" to say...modify their profile?

Am I asking too much or does anyone have a better way of doing this?
__________________
version 4.0.19
php 5
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 07:45 AM.

   

 
X-Cart forums © 2001-2020