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

How can i make things not visible to logged in customers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-03-2008, 12:36 PM
 
Topuk Topuk is offline
 

Member
  
Join Date: Dec 2007
Posts: 23
 

Default How can i make things not visible to logged in customers

i would like to make the 3rd column of my cart hidden to logged in members except on the checkout page, can anyone out there help me?
__________________
Topuk

http://www.northidahoflix.com
http://www.lotionsandpotionsonline.com

X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 01-03-2008, 12:39 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default Re: How can i make things not visible to logged in customers

In the template of the information you want to hide - likely skin1/customer/home.tpl put this code above what you want to hide:

{if $login ne ""}

and after what you want to hide put:

{/if}
Reply With Quote
  #3  
Old 01-03-2008, 12:52 PM
 
Topuk Topuk is offline
 

Member
  
Join Date: Dec 2007
Posts: 23
 

Default Re: How can i make things not visible to logged in customers

that hides the section from customers that are not logged in, how do i make it invisible to customer that are logged in but visible if they are not logged in??
__________________
Topuk

http://www.northidahoflix.com
http://www.lotionsandpotionsonline.com

X-Cart Version 4.1.9
Reply With Quote
  #4  
Old 01-03-2008, 12:57 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default Re: How can i make things not visible to logged in customers

Sorry, in haste I misread your message.

Here's code that will show the hidden content if the user is NOT logged in, or are on the checkout pages:

{if $login eq "" OR ($main eq "cart" OR $main eq "fast_lane_checkout" OR $main eq "order_message")}
hidden content
{/if}
Reply With Quote
  #5  
Old 01-03-2008, 01:28 PM
 
Topuk Topuk is offline
 

Member
  
Join Date: Dec 2007
Posts: 23
 

Default Re: How can i make things not visible to logged in customers

thank you jon
__________________
Topuk

http://www.northidahoflix.com
http://www.lotionsandpotionsonline.com

X-Cart Version 4.1.9
Reply With Quote
  #6  
Old 01-12-2008, 04:05 PM
 
Widerimagellc Widerimagellc is offline
 

Member
  
Join Date: Dec 2006
Location: Pittsburgh, PA
Posts: 23
 

Default Re: How can i make things not visible to logged in customers

Quote:
Originally Posted by Jon
In the template of the information you want to hide - likely skin1/customer/home.tpl put this code above what you want to hide:

{if $login ne ""}

and after what you want to hide put:

{/if}

Would this work if you wanted to hide a whole static page? For example, users need to upload files to me, but I want the upload page to only be available to users that are logged in after the purchase is complete.\
Thanks!
__________________
www.widerimage.com
XCART version 4.1.8
Reply With Quote
  #7  
Old 01-12-2008, 07:54 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default Re: How can i make things not visible to logged in customers

Yes it would, in your static page, as long as you had smarty parsing in your static pages enabled.
Reply With Quote
  #8  
Old 01-31-2008, 06:50 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: How can i make things not visible to logged in customers

Jon,

How does one do that and does it affect existing static pages?

Thanks!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
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:46 PM.

   

 
X-Cart forums © 2001-2020