Closed langziyang closed 2 years ago
first:open prestashop debug mode; the vist https://rest.binshops.com/rest/productSearch?s=mug&resultsPerPage=10
productsearch.php line 68 to 73
change
if ($variables['facets']) { $facets = array(); foreach ($variables['facets']['filters']->getFacets() as $facet) { array_push($facets, $facet->toArray()); } }
to
$facets = array(); if ($variables['facets']) { foreach ($variables['facets']['filters']->getFacets() as $facet) { array_push($facets, $facet->toArray()); } }
line 82 change
$variables['facets']['activeFilters']
isset($variables['facets']['activeFilters'])?$variables['facets']['activeFilters']:[]
@langziyang many thanks for your contribution.
first:open prestashop debug mode; the vist https://rest.binshops.com/rest/productSearch?s=mug&resultsPerPage=10
productsearch.php line 68 to 73
change
to
line 82 change
to