Jump to content

Place attachments on order history

Oexo France

Recommended Posts



I'd like to place the products attachments on the details-orders but i do it without success. Did anyone do it before?


I tried to place this:

                                            {if (isset($product.product_name)) || (isset($attachments) && $attachments)}
                                                    <!--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)})
                                                            {if $smarty.foreach.attachements.iteration %3 == 0 || $smarty.foreach.attachements.last}</div>{/if}

But without success.


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