doucong7963 2018-12-06 11:31
浏览 19

Prestashop 1.6.0.9 multishop,按状态过滤管理产品

Faced some trouble within prestashop 1.6.0.9 admin products filtering by status in multishop enabled.

To explain in details picture below enter image description here

As seen in picture product filtered by status "NO", but it displays on. Does anynone has such issue, by looking at controller and database, status is filtered by product table - where product is off, but displays from product_shop table where that shop active field is on. How can i manage filtering by status, am i facing with this alone? is there a fix already to this (HelperList?).

Can i somehow to set that list would be filtered by joint tables?

$this->table = 'product';

$this->fields_list['active'] = array(
    'title' => $this->l('Status'),
    'active' => 'status',
    'filter_key' => $alias.'!active',
    'align' => 'text-center',
    'type' => 'bool',
    'class' => 'fixed-width-sm',
    'orderby' => false
);
  • 写回答

1条回答 默认 最新

  • duanlou7910 2018-12-06 13:18
    关注

    maybe you can use ['list'] => $this->countries_array as option in your field list see documentation here http://doc.prestashop.com/display/PS16/Using+the+HelperList+class

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作