Magento – how to add download links on product page
Magento, xHTMLThis is a serious drawback when using magento, i don’t know why they havent added this feature yet because other carts have it. Most of shops have products that ofer user guide or other downloads. It’s nice to be able to find them on the product page.
For the moment there is only a small hack that you can do to be able to display download links on your product page. I learned about it on the magento forums and adjusted the code to fit my theme.
So if you’re using the default magento theme, do the following:
1. create a new folder under media/catalog/product/ named pdf so it should be media/catalog/product/pdf/
2. Upload your pdf document to yourshop/media/catalog/product/pdf so it should be yourshop/media/catalog/product/pdf/pdfdocument.pdf
3. go to your product managing page under admin panel and edit the product. Now in the short description box you must add the following code:
<div class="divider"></div> <h4>Downloads</h4> <div class="short-description"><a title="Download ATmega88 dev board User Guide" href="http://www.youritronics.com/shop/media/catalog/product/pdf/atmega88-dev-userguide.pdf" target="_blank">User Guide.pdf (392 Kb)</a></div>
Remember the description box adds <BR> for every new line you create, so place the code immediately after your last character from product description to get a nice alignment. Now your Download section should appear immediately after your short description.
Friday, November 7th, 2008 at 12:46 pm and is filed under Magento, xHTML. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Complimenti per idea del sito. Anche noi siamo amanti del trekking. Perche non organizziamo un incontro di appassionati per delle escursioni insieme? Magari non piu di 6-8 in tutto? Un saluto.
della reese
ernia di
abito sposa da
sweatermeat
Awesome tip! Thank you sooo much. =D
I have insert the downloadlink
to the pdf-file according to your instruction. Indeed it is shown nevertheless the link to the pdf-file results a defect repart, although the path accords. Error message 404.
Can you help me please.