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

after login push back to page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-22-2004, 10:37 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default after login push back to page

I've created a new page and combined the login and registration into the same page (left coloumn login and password box, right coloumn registration form), which is accesabile from a tab in the head.tpl

currently if the user logs in they are returned to the login/registration page but i've then hidden the login boxs.

What I need to know is there anyway to push the customer back to the same page at which they clicked on the login/registration tab??

for example if they clicked on the tab at http://www.xxxxxxxxxxxxxxxx22.com/home.php?cat=76 they then goto the login/registration page once they have logged in they are pushed back to http://www.xxxxxxxxxxxxxxxx22.com/home.php?cat=76

This is on 4.0.5
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #2  
Old 10-22-2004, 11:00 AM
  connie's Avatar 
connie connie is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 88
 

Default

your link link to porns and it need click yes to continue...
__________________
connie
x-cart4.0.14
x-affilate
Reply With Quote
  #3  
Old 10-22-2004, 11:02 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

sorry i was using xxx as a replacement of the actual site name as its not ready to be released yet, in hindsight i should of used http://www.xxxxxxxxxxxxxxxx22.com/

I'll edit it now.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #4  
Old 10-22-2004, 12:28 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default

cotc,

I think you're looking for this mod:

http://forum.x-cart.com/viewtopic.php?t=3088&highlight=
Reply With Quote
  #5  
Old 10-22-2004, 12:48 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Yup thats it, just need to see if anyone has updated it for 4.0.X now
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #6  
Old 10-22-2004, 01:12 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

What I would do is this:

Edit your register.php to grab and assign the referring page then include it in your register/login form.

Then you'd have to edit your login.php and register.php to check for the existence of the post variable you've specified in those forms, and redirect based on it.

If you can't solve the issue yourself I'm available for custom coding.
Reply With Quote
  #7  
Old 10-22-2004, 02:10 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Cheers Jon,
PM'd you
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
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 02:31 PM.

   

 
X-Cart forums © 2001-2020