在PrestaShop 1.7上的分页问题

问题描述

我在使用PrestaShop进行分页时遇到问题,我找不到任何解决方案:(

我的页面正在显示分页,每页选定的数量为12(在BO>商店参数>产品>向下滚动并更改要显示的产品数量中手动设置它。

然后我在4页(总共40种产品)之间切换,我看到了:

Page 1: Products 1 to 12 of total 12
Page 2: Products 13 to 24 of total 12
Page 3: Products 25 to 36 of total 12
Page 4: Products 37 to 40 of total 4

我验证了文件:_ / themes / child_classic / templates / partials / pagination.tpl,然后看到: {ls ='显示%to %%的%from%-%to''d ='Shop.Theme.Catalog'sprintf = ['%from%'=> $ pagination.items_shown_from,'%to%' => $ pagination.items_shown_to,'%total%'=> $ pagination.total_items]} 当前是正确的,但是显示的是实际页面上的元素总数,而不是所选类别中的元素。

我认为这是不正确的。.元素总数(最后一个数字)应该是类别总数的总数,所以40而不是12。

在其他商店,我认为它是正确的:

Page 1: 1 to 12 of total 40
Page 2: 13 to 24 of total 40
Page 3: 25 to 36 of total 40
Page 4: 37 to 40 of total 40

在一家商店不正确:

image

更正另一个

image

  • PrestaShop版本:1.7.6.7
  • PHP版本:7.2.33

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)