Jump to content

Free downloads for registered customers?


Recommended Posts

Hello everybody!

 

For most of my products I have a bundled .zip file with some product info. I like to make it available for download but only for registered customers.

 

I tried to pretend these are "virtual products" but then a customer has to through the whole shopping cart to get the download link. That is way too complicated.

 

Is there any other way to create free "virtual products" or just downloadable files for registered customers?

 

Also I could simply use "attachments" but these are available for everyone and not only customers that have been logged in... so that seems not idewal also....

 

Any help would be very much appreciated because I am stuck.

 

thx,

piku

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

Hello Nemo1!

 

That is a good idea but doesn't hit it quite... the products have to be seen by everybody, the incentive for registering is that after that you can also download the attachments... but I switched to attachments now....

 

How can I make conditional attachments like:

 

Show the download only if the visitor is logged in?

I know there has to be some conditional hooks because for example the "Login"-button disappears when someone is logged in, so I have to find a way to make the attachment hook sensible to the login status of the visitor and I should be ready to go ... :-) 

 

 

thx,

p.

Link to comment
Share on other sites

yes, there is, but from php. I don't know if it's still valid down there, it's

 

$this->context->customer->isLogged()

 

Assigned to {$logged} in smarty, but I believe you can't access ut from product.tpl. Still, you can give it a try, or use a small productController override and assign it yourself

Link to comment
Share on other sites

  • 1 month later...

SOrry it's been a while but I just can't get it right:

 

I use

 

{if $logged}
             <div id="attachment_link">
                            ... standard content here ...              
             </div>

{/if}

 

but still the content isn't hidden for users that are not logged in ...

I use the shop in catalog mode. Does this effect the "$logged" functionality?

 

I would really appreciate some more information here,

best regards,

piku

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