简体   繁体   English

我的可下载产品页面中的Magento可配置的可下载产品错误

[英]Magento configurable downloadable product error in My Downloadable Products page

On a fresh install of Magento, I have a configurable product with an associated downloadable product applied. 在全新安装的Magento上,我有一个可配置的产品,并应用了相关的可下载产品。 After purchasing this product, in the My Downloadable Products page the following error appears: 购买此产品后,在“我的可下载产品”页面中,出现以下错误:

Book TEST Product Name - ( ! ) Fatal error: Call to a member function __() on a non-object in /path/to/app/design/frontend/base/default/template/downloadable/customer/products/list.phtml on line 60 图书TEST产品名称-(!)致命错误:在/ path / to / app / design / frontend / base / default / template / downloadable / customer / products / list中的非对象上调用成员函数__()。第60行的phtml

How was it resolved? 如何解决的?

Hello your line no 60 should look like this : 您好,60号线应如下所示:

<td><?php echo $this->escapeHtml($_item->getPurchased()->getProductName()) ?> - <a href="<?php echo $this->getDownloadUrl($_item) ?>" title="<?php echo Mage::helper('downloadable')->__('Start Download') ?>" <?php echo $this->getIsOpenInNewWindow()?'onclick="this.target=\'_blank\'"':''; ?>><?php echo $this->escapeHtml($_item->getLinkTitle()); ?></a></td>

you can change this to this : 您可以将其更改为:

<td><?php echo $this->escapeHtml($_item->getPurchased()->getProductName()) ?> - <a href="<?php echo $this->getDownloadUrl($_item) ?>" title="" <?php echo $this->getIsOpenInNewWindow()?'onclick="this.target=\'_blank\'"':''; ?>><?php echo $this->escapeHtml($_item->getLinkTitle()); ?></a></td>

remove the this <?php echo Mage::helper('downloadable')->__('Start Download') ?> and check 删除此<?php echo Mage::helper('downloadable')->__('Start Download') ?>并检查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM