piku Posted June 10, 2014 Share Posted June 10, 2014 (edited) 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 June 10, 2014 by piku (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted June 11, 2014 Share Posted June 11, 2014 You can use attachments, and put these products in a category only accessible to the "customer" group Link to comment Share on other sites More sharing options...
piku Posted June 11, 2014 Author Share Posted June 11, 2014 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 More sharing options...
NemoPS Posted June 13, 2014 Share Posted June 13, 2014 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 More sharing options...
vekia Posted June 13, 2014 Share Posted June 13, 2014 it's possible to get access to {$logged} from any template file you want :-) both template files from theme, and from modules :-) Link to comment Share on other sites More sharing options...
piku Posted August 13, 2014 Author Share Posted August 13, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now