Prestashop 1.5.x.x:最后一行显示 2 个产品而不是 3 个

Prestashop 1.5.x.x: Last row displays 2 of the products instead of 3

我对当前正在处理的网页有疑问。 我在网站上使用的主题是 gameguru 1.5,问题是在我的产品列表的最后一行,当我到达它的底部时,出现了 2 个产品而不是 3 个。 源文件(product-list.tpl)的相关代码是这个:

{if isset($products)}
<!-- Products list -->
<div id="product_list" class="clear category_list product_list grid row">
    <div class="inner-product-list">
    {foreach from=$products item=product name=products}
        <div class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix  col-xs-6 col-sm-6 col-md-4">

我已经尝试了好几样东西,但还是卡在了这里。 最后,我想附上一份网页产品列表,以便为您提供更多指导。 http://tutiendadevideojuegos.com/127-ps4-videojuegos-ps4 我将不胜感激任何帮助。

谢谢, 奥瑞斯提斯

试试这个部分

{if $smarty.foreach.products.index % 2}alternate_item{else}item{/if}

改为

{if $smarty.foreach.products.index % 3}alternate_item{else}item{/if}

更新: 操纵每页的产品数量,在后台 Preferences -> Products 选项 "Products per page" 放在那里,例如12,您将在所有行中有 3 个产品 + 下拉列表中的正确值。