X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How can i make things not visible to logged in customers (https://forum.x-cart.com/showthread.php?t=36504)

Topuk 01-03-2008 12:36 PM

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?

Jon 01-03-2008 12:39 PM

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}

Topuk 01-03-2008 12:52 PM

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??

Jon 01-03-2008 12:57 PM

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}

Topuk 01-03-2008 01:28 PM

Re: How can i make things not visible to logged in customers
 
thank you jon

Widerimagellc 01-12-2008 04:05 PM

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!

Jon 01-12-2008 07:54 PM

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.

Acquamarina 01-31-2008 06:50 AM

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!


All times are GMT -8. The time now is 06:05 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.