klasjulius Posted March 24, 2015 Share Posted March 24, 2015 Hallo zusammen, ist es möglich die herunterladbaren Anhänge wie PDF's etc im Produkt nur für angemeldete Kunden sichtbar zu machen? bis dann Klaus Link to comment Share on other sites More sharing options...
tuk66 Posted March 24, 2015 Share Posted March 24, 2015 Verwenden Sie virtuelle Produkte und Anlagen. Use Virtual products and Attachments. Link to comment Share on other sites More sharing options...
klasjulius Posted March 24, 2015 Author Share Posted March 24, 2015 danke an tuk66.ist gelöst: ich habe in der /themes/yourtheme/product.tpl ab zeile 542 folgende Änderungen eingebaut. {if (isset($attachments) && $attachments)} {if ($cookie->isLogged())} <!--Download --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='Download'}</h3> {foreach from=$attachments item=attachment name=attachements} {if $smarty.foreach.attachements.iteration %3 == 1}<div class="row">{/if} <div class="col-lg-4"> <h4><a href="{$link->getPageLink('attachment', true, NULL, "id_attachment={$attachment.id_attachment}")|escape:'html':'UTF-8'}">{$attachment.name|escape:'html':'UTF-8'}</a></h4> <p class="text-muted">{$attachment.description|escape:'html':'UTF-8'}</p> <a class="btn btn-default btn-block" href="{$link->getPageLink('attachment', true, NULL, "id_attachment={$attachment.id_attachment}")|escape:'html':'UTF-8'}"> <i class="icon-download"></i> {l s="Download"} ({Tools::formatBytes($attachment.file_size, 2)}) </a> <hr> </div> {if $smarty.foreach.attachements.iteration %3 == 0 || $smarty.foreach.attachements.last}</div>{/if} {/foreach} </section> <!--end Download --> {/if} {/if} bis dann Klaus Link to comment Share on other sites More sharing options...
GrNightz Posted March 24, 2015 Share Posted March 24, 2015 oder wie gesagt virtuellen Artikel nur für bestimmte Kundengruppen zulassen 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