我正在使用Magento 1.6.1.0。如何將下載文件添加到Magento上每個客戶的「我的可下載產品」部分?每個現有的和新的客戶在訪問他/她的賬戶時都應該看到這個文件。如何將下載文件添加到Magento上每個客戶的「我的可下載產品」部分?
回答
這方面,只是把可下載的內容放到整個註冊客戶儀表板部分。客戶應該登錄後才能看到內容。但是,正如你可能是客人,這不是受保護的內容,如果他們知道鏈接,每個人都可以下載!
打開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') ?>
打開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"/>
創建文件夾downloadlinks,把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/>
Oğuz非常感謝你這個有價值的代碼。有沒有辦法將這個實現到客戶帳戶頁面的現有「我的可下載產品」部分? – user1008832
@ user1008832在app/design/frontend/[namespace]/[theme]/layout /中檢查'downloadable.xml',你會看到一個定義了「我的可下載產品」區域的部分。負責「我的可下載產品」區域的文件是'list.phtml' –
,您應該將'customer.xml'內容放入'downloadable.xml'文件中,然後修改'list.phtml'。 –
- 1. Magento的增加提供給客戶下載的產品
- 2. Magento的 - 購買可下載產品
- 3. Magento中的可下載產品
- 4. MAGENTO:添加可下載的物理產品或簡單的產品
- 5. Magento:跟蹤可下載產品鏈接的下載量
- 6. 如何在WooCommerce中列出每個可下載產品的每個文件名?
- 7. 如何將可下載文件添加到我的Github.io頁面?
- 8. Magento - 具有客人結帳支持的可下載產品?
- 9. Magento產品加載事件
- 10. 如何導入magento中的可下載產品
- 11. 如何保護magento中的可下載產品鏈接?
- 12. 如何通過Magento API創建可下載的產品?
- 13. Magento 1.9 rwd主題'我可下載的產品'沒有顯示
- 14. Magento - 每個產品的設置載體
- 15. Magento - 將可下載產品的小數位數從2增加到4
- 16. Magento - 如何根據產品選擇加載下面的一組產品?
- 17. 在產品頁面上自動選擇可下載的產品鏈接Magento
- 18. 如何處理下載產品上的軟件許可?
- 19. 如何爲magento可下載產品創建發票?
- 20. 下載Magento Frontpage顯示所有產品
- 21. Magento 1.7 - 成功下單後更改可下載產品網址
- 22. 無法直接從產品頁面下載可下載產品文件夾中的文件
- 23. 如何下載文件到我的下載文件夾android
- 24. 如何簡單地將可下載的PDF文件添加到我的頁面?
- 25. 上傳可下載產品時出現Magento錯誤
- 26. 跟蹤客戶在Magento中將產品添加到購物車
- 27. 如何將Excel文件下載到用戶的下載文件夾?
- 28. 如何添加wget下載的文件?
- 29. Magento:將產品從特定類別加載到產品頁面
- 30. Magento創建可下載產品後「加載客戶報價錯誤」購物車錯誤
你可以發佈一些你已經試過的代碼嗎? –
我是個開始,目前沒有任何代碼。 – user1008832
好的,那你的想法是什麼?你能描述一下你的想法嗎? StackOverflow鼓勵用戶嘗試自己解決它,然後讓社區幫助,而不是提供整個解決方案... –