2016-09-23 35 views
1

我有一個Prestashop 1.6.1.3網站的客戶端有塊分層模塊v2.2的問題,在左側的塊庫存可用性過濾器,當點擊顯示錯誤的產品。 我試圖重新索引產品,屬性,價格,但問題仍然存在。 任何幫助將是明智的Prestashop Blocklayered:顯示錯誤的股票可用產品

+0

不幸的是,'塊layered'模塊歷來的問題修復了這個問題。我會建議拿起一個認真的模塊來過濾產品:)。對不起 – sarcom

回答

0

同意sarcom的評論塊分層模塊總是給出問題,它使用模板索引。嘗試創建一個新模板並構建所有索引。這解決了舊版本中的問題。

+0

你是什麼意思'使用模板索引'?我認爲產品和屬性是在數據庫中編制索引的(具體表格) –

1

我在blocklayered.php

and sa.id_product_attribute = 0 to sql that filters stock 

將在1857年線

case 'quantity': 
       if (count($selected_filters['quantity']) == 2) 
        break; 

       $query_filters_where .= ' AND sa.quantity '.(!$selected_filters['quantity'][0] ? '<=' : '>').' 0 '; 
       $query_filters_from .= 'LEFT JOIN `'._DB_PREFIX_.'stock_available` sa ON (sa.id_product = p.id_product '.StockAvailable::addSqlShopRestriction(null, null, 'sa').' and sa.id_product_attribute = 0) '; 
      break; 
相關問題