Michael R. Lukacs Posted August 6, 2014 Share Posted August 6, 2014 Hi, I'm new to PrestaShop and I'm building a site for my employer. Never done this before, and I'm still quite the noob, so I apologize in advance. I need to know if there's a way to move the attachments from the bottom of a product page up to just under the image, between the image and the "More Info" block. I spoke with someone in the module store who told me there was no module available - an IT friend suggested that I ask in the forums and perhaps someone else who figured out how to do it might be able to help me out... Thanks in advance, - Michael Link to comment Share on other sites More sharing options...
vekia Posted August 7, 2014 Share Posted August 7, 2014 product.tpl file located in theme directory move attachments code: {if 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> <!--end Download --> {/if} above the {if $product->description} <!-- More info --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3>{/if} {if isset($product) && $product->description} <!-- full description --> <div class="rte">{$product->description}</div> </section> <!--end More info --> {/if} Link to comment Share on other sites More sharing options...
Michael R. Lukacs Posted August 7, 2014 Author Share Posted August 7, 2014 Thanks... I don't know how to edit of modify code, but I asked my IT guy to do it, and it was successful. HOWEVER, this leads to another problem, and I'm not sure if it's a by-product of this change. Where we have the scrolling accessories within the product, for items that have more than 6 accessories, I can no longer scroll either way, it's only showing the first six. This is happening on ALL items that have more than six accessories associated with the product. Did something in that particular piece of code change that, or did I unknowingly change something somewhere? Much appreciated... 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