@plasmicpkgs/commerce-shopify 0.0.46 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commerce-shopify.cjs.development.js +4 -3
- package/dist/commerce-shopify.cjs.development.js.map +1 -1
- package/dist/commerce-shopify.cjs.production.min.js +1 -1
- package/dist/commerce-shopify.cjs.production.min.js.map +1 -1
- package/dist/commerce-shopify.esm.js +4 -3
- package/dist/commerce-shopify.esm.js.map +1 -1
- package/dist/utils/get-search-variables.d.ts +1 -1
- package/package.json +4 -4
|
@@ -958,14 +958,15 @@ var getSearchVariables = function getSearchVariables(_ref) {
|
|
|
958
958
|
sort = _ref.sort,
|
|
959
959
|
locale = _ref.locale,
|
|
960
960
|
count = _ref.count;
|
|
961
|
-
var query =
|
|
961
|
+
var query = "";
|
|
962
|
+
var searchQuery = search + "*";
|
|
962
963
|
|
|
963
964
|
if (search) {
|
|
964
|
-
query += "product_type:" +
|
|
965
|
+
query += "product_type:" + searchQuery + " OR title:" + searchQuery + " OR tag:" + searchQuery;
|
|
965
966
|
}
|
|
966
967
|
|
|
967
968
|
if (brandId) {
|
|
968
|
-
query += (search ?
|
|
969
|
+
query += (search ? "AND " : "") + "vendor:" + brandId;
|
|
969
970
|
}
|
|
970
971
|
|
|
971
972
|
return _extends({
|