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

时间:2015-12-29 17:22:15

标签: php magento

在全新安装的Magento上,我有一个可配置的产品,并且应用了相关的可下载产品。 购买此产品后,在“我的可下载产品”页面中出现以下错误:

  

预订TEST产品名称 - (!)致命错误:致电会员功能   _ /()在/path/to/app/design/frontend/base/default/template/downloadable/customer/products/list.phtml中的非对象上   在第60行

如何解决?

1 个答案:

答案 0 :(得分:0)

你好你的第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>

您可以将此更改为:

<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>

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