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

How to modify register.php

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

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default How to modify register.php

I do not like the fact the x-cart takes the user back to the Modify Profile page each time a user creates a new profile or modify the profile. It is totally not necessary to let user to play with profile so easy, and let it show up again.

How can we direct users to home.php or place Feature Products box there after they submit a profile or modify their profile? I think this will be a very good mod.

Thanks a lot.

Jeff
__________________
version 4.1.1
Reply With Quote
  #2  
Old 02-03-2005, 03:18 AM
 
balinor balinor is offline
 

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

Default

Hey Jeff, really need to know your X-Cart version number. Please post it in your signature. This will help pepole not only in this thread, but any other threads you post in Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-03-2005, 04:11 AM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default

Sorry. I am working on version 4.0.11

Thanks.

Jeff
__________________
version 4.1.1
Reply With Quote
  #4  
Old 02-03-2005, 09:32 AM
 
balinor balinor is offline
 

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

Default

Well that certainly helps in this thread, but it won't in others. Edit your profile, and put the version number in your signature. Where you have 'Beginner' now. I'll get back to you with an answer to your question a little later....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-05-2005, 06:48 PM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default

I believe version 4.0.9 does the same. When users register and Submit the profile form, the page will be directed to "Modify Profile" immediately. This is an annoying. Why do not start to sell products, instead of giving them the profile again?

In addition, each click on the Submit button on the Profile page, the user and the store owner will get an email - wasting your time.

I think the modifications should be in /include/register.php, around lines:
Code:
$script = $xcart_catalogs['partner']."/home.php?mode=profile_created"; if (empty($av_error)) { func_header_location($script); }

But, it's just over my head.

Thanks,
Jeff

~~~~~~~
Version 4.0.11 (and 4.0.9)
__________________
version 4.1.1
Reply With Quote
  #6  
Old 02-05-2005, 10:55 PM
 
cotc2001 cotc2001 is offline
 

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

Default

Quote:
Originally Posted by jdedba
In addition, each click on the Submit button on the Profile page, the user and the store owner will get an email - wasting your time.

You can turn that off in admin/General settings/Email notification options
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #7  
Old 02-24-2005, 11:52 AM
 
balinor balinor is offline
 

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

Default

Anyone successfully redirect a newly registered client yet?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 02-25-2005, 05:22 AM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default

Thank you for checking back.

I did the following in include/register.php

Replace
Code:
$script = $xcart_catalogs['partner']."/home.php?mode=profile_created"; } if (empty($av_error)) { func_header_location($script); }

with

Code:
$script = $xcart_catalogs['partner']."/home.php?mode=profile_created"; } if (empty($av_error)) { if( $reg_error ) { func_header_location($script); } else { header("LOCATION: myfile.php"); # can be any x-cart file } }

It seems it works ok for me. I am not very good at x-cart and so I am not sure it will cause problem or not. If you see any, please post back.

Regards,

Jeff
__________________
version 4.1.1
Reply With Quote

The following user thanks jdedba for this useful post:
Ben G (07-27-2014)
  #9  
Old 04-13-2005, 09:40 AM
 
jignacio jignacio is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: URUGUAY
Posts: 79
 

Default

Thanks Jeff for this code.

Now I understand why I have customer registered 2 or 3 times in the same day.

This code works OK in 4.0.13

All the best.
__________________
Josц╘ Ignacio
X-Cart Gold 4.0.13 (UNIX)
cc: 2checkout.com

www.uruexpress.com
Reply With Quote
  #10  
Old 04-13-2005, 10:11 AM
  More-Japan's Avatar 
More-Japan More-Japan is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 107
 

Default

Yes, this is good. I have noticed that somtimes a user will create a profile and then delete it only a few minutes later
__________________
Version 5.2.13

http://www.more-japan.com/
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