Jump to content

Make a file downloadable only if login


Cadmiel

Recommended Posts

hello Vekia,

The file is added to the shop and in my-account is something like:

<ul class="myaccount-link-list">
            
            {$HOOK_CUSTOMER_ACCOUNT}      
           <li><a href="/documentatii/Catalog-produse.xls"><i class="icon-book"></i><span>Catalog produse</span></a></li>
 
</ul>

 

it works like I wanted but if I had that link i can access it.../documentatii/Catalog-produse.xls..

Link to comment
Share on other sites

Nevermind Vekia...I wanted something else and dk how to make that...i want to make that file visible only for a group of registered clients..

Example: I have 116 client groups and those can see the file but normal groups (visitor, guest) can't...

Can I make something like that? something like:

if(client->group != clientGroupId(2))

show(<li><a href="/documentatii/Catalog-produse.xls"><i class="icon-book"></i><span>Catalog produse</span></a></li>)

 

I don't know how to say it more clear:)

Thanks

Edited by Cadmiel (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...