Milford Posted August 29, 2012 Share Posted August 29, 2012 Hi Guys, My problem is that my clients on my prestashop website click the attachments tab for a product and simply do not see the small bullet point link to the attached file. What I would like to do is simply add header text above the bulletpoint attachment link that says: Downloads: (click the link below to download attachments) However I am having some trouble in doing this, can anybody help me? Many Thanks in advanced. Link to comment Share on other sites More sharing options...
math_php Posted August 29, 2012 Share Posted August 29, 2012 Hi girl, In product.tpl Search for : {if $attachments} <ul id="idTab9" class="bullet"> And then modify it to (make a back up before) {if $attachments} Click the link below to download attachements <ul id="idTab9" class="bullet"> Regards 1 Link to comment Share on other sites More sharing options...
Milford Posted August 30, 2012 Author Share Posted August 30, 2012 Heey Mr Math_Php, Thanks for your help with this, I have tryed your suggestion and it didnt work for me. I have also tryed the same thing but with <p> Click the link below to download attachements</p> and also tryed <li> Click the link below to download attachements </li> But no luck, do you have any more suggestions? if you do I will be very greatfull Many Thanks, Link to comment Share on other sites More sharing options...
Dh42 Posted August 30, 2012 Share Posted August 30, 2012 Did you turn the shop to force compile and turn the caching off? 1 Link to comment Share on other sites More sharing options...
math_php Posted August 30, 2012 Share Posted August 30, 2012 Did you turn the shop to force compile and turn the caching off? DesignHaus42 is right, you can also delete all tpl.php files in tools\smarty\compile The problem is that smarty makes templates cache. Then you make change and they are not displayed. Have a good day 1 Link to comment Share on other sites More sharing options...
Milford Posted September 4, 2012 Author Share Posted September 4, 2012 Hi math_php and DesignHaus42 , I added the new code kindly provided by Math_php and turned off the cache and there was no change, I then turned on force compile and refreshed my page and found the the product page wouldnt display so I had no choice but to turn force complie off. Is there anything I am missing? Many Thanks guys, your help is very much appreciated. Link to comment Share on other sites More sharing options...
Dh42 Posted September 5, 2012 Share Posted September 5, 2012 If your product is not displaying with force compile off then something is wrong with your shop. What is it doing? 1 Link to comment Share on other sites More sharing options...
math_php Posted September 5, 2012 Share Posted September 5, 2012 (edited) Hi girl, Did you empty tools\smarty\compile folder ? (just keep index.php, send to abyss all other) I have been trapped this morning with this one. Cheers edit : by empty i mean manually destroy (through ftp for example) Edited September 5, 2012 by math_php (see edit history) 1 Link to comment Share on other sites More sharing options...
Milford Posted September 9, 2012 Author Share Posted September 9, 2012 Hi Math_php, I will give it ago now and see what happens. Cheers Link to comment Share on other sites More sharing options...
Milford Posted September 9, 2012 Author Share Posted September 9, 2012 No luck I'm afraid, I received the same outcome as when I switched on Force Compile as I did manually removing the files (but not index.php) in the compile folder. The product simply doesn't display, see attachment: Everyone's help is much appreciated. All I want is a heading under the Attachment Tab. That says : Download files by clicking on link below: Cheers Guys Link to comment Share on other sites More sharing options...
Dh42 Posted September 9, 2012 Share Posted September 9, 2012 Turn you cache off, and turn force compile on. Then go to your /config folder and find the file config.inc.php Open it and set error reporting to on. You have a smarty error on your site, that is why it is not loading all the way. 1 Link to comment Share on other sites More sharing options...
Milford Posted September 10, 2012 Author Share Posted September 10, 2012 Hi DesignHaus42, I did as you said and there was an error message, I have copied and pasted the error into a word document as I do not want the site to be ranked on Google via a post. How would I correct this error? Fatal error.doc Link to comment Share on other sites More sharing options...
Dh42 Posted September 10, 2012 Share Posted September 10, 2012 Its hard to trace errors third party, but I looked at your product.tpl, the first thing I would do is add an {/if} at the very end and see if that helps the error. Link to comment Share on other sites More sharing options...
math_php Posted September 11, 2012 Share Posted September 11, 2012 Hi NZ Girl , Put unchanged tpl in your theme, send us your 'corrupted tpl' I am sure that dh42 or me are going to fix it. With 10 hours difference I think that it will be much faster and easier. Have a good day (near night for you) Link to comment Share on other sites More sharing options...
Milford Posted September 11, 2012 Author Share Posted September 11, 2012 Hi DesignHause, Bingo, I added an extra {/if} as you suggested and now when Force compile is turned on the product page loads. The Attachment tab also has the added in text. Although it has also added the download link twice. What could be causing the downloads link to duplicate? The code from my product.tpl is: {if $attachments} Click the links below to download the PDF samples: <ul id="idTab9" class="bullet"> {foreach from=$attachments item=attachment} <li><a href="{$link->getPageLink('attachment.php', true)}?id_attachment={$attachment.id_attachment}">{$attachment.name|escape:'htmlall':'UTF-8'}</a><br />{$attachment.description|escape:'htmlall':'UTF-8'}</li> {/foreach} {/if} 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