Jump to content

Place attachments on order history


Oexo France

Recommended Posts

Hi,

 

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)})
                                                                    </a>
                                                                    <hr>
                                                                </div>
                                                            {if $smarty.foreach.attachements.iteration %3 == 0 || $smarty.foreach.attachements.last}</div>{/if}
                                                        {/foreach}
                                                    </section>
                                                {/if}

But without success.

Regards

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