user1008832
user1008832

Reputation: 7

How do I add a download file to 'my downloadable product' sections of each customer on Magento?

I am using Magento 1.6.1.0. How do I add a download file to 'my downloadable product' sections of each customer on Magento? Every existing and new customers should see this file when he accesses his/Her account.

Upvotes: 0

Views: 1644

Answers (1)

Oğuz Çelikdemir
Oğuz Çelikdemir

Reputation: 4980

This aspect, just put downloadable contents into whole registered customers dashboard section. Customers should login then see the content. But, as you might guest, it's not protected content, everybody can download if they know the links!

Open dashboard.phtml

# file : dashboard.phtml  
# path : app/design/frontend/[your_namespace]/[your_theme]/template/customer/account  
// put the following line after 'address' section  
<div class="download-links">  
   <h4><?php echo $this->__('Download Manuals') ?></h4>  
</div>  
<?php echo $this->getChildHtml('downloadlinks') ?>  

Open customer.xml

# file : customer.xml  
# path : app/design/frontend/[your_namespace]/[your_theme]/layout/customer.xml  
// add the following line  
<block type="core/template" name="customer_manual_links" as ="downloadlinks” template="downloadlinks/downloads.phtml"/>  

Create folder downloadlinks and put the downloads.phtml

# file : downloads.phtml
# path : app/design/frontend/[your_namespace]/[your_theme]/template/downloadlinks/
<span>Your downloadable manuals</span>
<a href="">Product Catalog PDF</a><br/>
<a href="">Product Manual PDF</a><br/>

Upvotes: 1

Related Questions