Added 'meta_keywords' to search of products in shop page. Changed labels

on SEO tab and SEO form (edit product Screen) and added in en.yml file.
This commit is contained in:
duende13
2017-11-30 11:18:08 +00:00
committed by Maikel Linke
parent 808f7b12c7
commit 61300a62c2
7 changed files with 15 additions and 9 deletions

View File

@@ -4,5 +4,5 @@ Darkswarm.filter 'products', (Matcher) ->
text ?= ""
return products if text == ""
products.filter (product) =>
propertiesToMatch = [product.name, product.variant_names, product.supplier.name, product.primary_taxon.name]
propertiesToMatch = [product.name, product.variant_names, product.supplier.name, product.primary_taxon.name, product.meta_keywords]
Matcher.matchBeginning propertiesToMatch, text