购物车项目未在客户视图中显示 [英] Shopping cart items not showing in customer view
本文介绍了购物车项目未在客户视图中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行Magento 1.7.2.
Running Magento 1.7.2.
在管理员的客户视图内,它在客户购物车中显示1个项目,但不显示详细信息.我附上了一个屏幕截图.有人知道这个问题可能是什么吗?或者您可以验证它是否正常运行,以便我知道这是我的安装?
When inside the customer view in the administrator it shows 1 item in the customers cart but not the details. I’ve attached a screen shot. Does anyone know what the issue could be or can you verify that it’s working properly so I know it’s my installation?
谢谢.
View Screenshot Here
推荐答案
[已解决]
在app \ code \ core \ Mage \ Adminhtml \ controllers \ CustomerController.php
on app\code\core\Mage\Adminhtml\controllers\CustomerController.php
1.7.0
public function viewCartAction()
{
$this->_initCustomer();
$layout = $this->loadLayout()
->getLayout()
->getBlock('admin.customer.view.cart')
->setWebsiteId();
$this->renderLayout();
}
更改为:
public function viewCartAction()
{
$this->_initCustomer();
$layout = $this->loadLayout()
->getLayout()
->getBlock('admin.customer.view.cart')
->setWebsiteId($this->getRequest()->getParam('website_id'))
->toHtml();
$this->renderLayout();
}
这篇关于购物车项目未在客户视图中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文