Commit 65a5079a by dhn

skus 不固定显示

parent f0631f91
......@@ -76,10 +76,13 @@ class SearchResultApplier implements SearchResultApplierInterface
$skus = [];
if(isset($_GET['skus']) && !empty($_GET['skus']))
{
$skus = explode(',', $_GET['skus']);
$this->collection->getSelect()->orWhere("e.sku in ('" . implode("','",$skus)."')");
}
if(!isset($_GET['p']) || $_GET['p'] == 1)
{
$skus = explode(',', $_GET['skus']);
$this->collection->getSelect()->orWhere("e.sku in ('" . implode("','",$skus)."')");
}
}
if (!empty($sortOrder['price']) && $this->collection->getLimitationFilters()->isUsingPriceIndex()) {
$sortDirection = $sortOrder['price'];
if(empty($skus))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment