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

Terms and Conditions show after user logs in

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-15-2004, 09:50 AM
 
mjr mjr is offline
 

Newbie
  
Join Date: Nov 2003
Posts: 5
 

Default Terms and Conditions show after user logs in

Hi,

Is there a way to have the Terms and Conditions only show up after a user logs in?

X-Cart version 3.5.3
Thanks in advance
Mitch
Reply With Quote
  #2  
Old 04-15-2004, 11:39 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Edit include/login.php:

find:
Code:
if ($login_type=="C") { if(!func_is_cart_empty($cart)) func_header_location($redirect_to."/cart.php"); else func_header_location($redirect_to."/home.php"); }

And make proper adjustments to redirect to help.php?section=business

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-15-2004, 12:21 PM
 
mjr mjr is offline
 

Newbie
  
Join Date: Nov 2003
Posts: 5
 

Default

Thanks for the answerБ─╕but I am not so sure what you mean by

And make proper adjustments to redirect to help.php?section=business

Can you please advise more...

Thank you so much in advance

Regards,
Mitch
Reply With Quote
  #4  
Old 04-15-2004, 01:07 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
if ($login_type=="C") { if(!func_is_cart_empty($cart)) func_header_location($redirect_to."/help.php?section=conditions"); else func_header_location($redirect_to."/help.php?section=conditions"); }
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 04-15-2004, 01:58 PM
 
mjr mjr is offline
 

Newbie
  
Join Date: Nov 2003
Posts: 5
 

Default

Hi,

I tried this and it is not exactly what IБ─≥m looking forБ─╕

Only want register users to be able to click the Terms & Condition linkБ─╕.
DonБ─≥t want the Term & Conditions link on the home page to show until a customer logs inБ─╕.Is there a way to do this?

Regards,
Mitch
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:47 AM.

   

 
X-Cart forums © 2001-2020