Skip to content

Commit

Permalink
Update autocomplete widget
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Mar 15, 2024
1 parent 793494f commit 3686f01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions blocks/header/searchbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getConfigValue } from '../../scripts/configs.js';

const storeDetails = {
environmentId: await getConfigValue('commerce-environment-id'),
environmentType: (await getConfigValue('commerce-environment-id')).includes('sandbox') ? 'testing' : '',
environmentType: (await getConfigValue('commerce-endpoint')).includes('sandbox') ? 'testing' : '',
apiKey: await getConfigValue('commerce-x-api-key'),
websiteCode: await getConfigValue('commerce-website-code'),
storeCode: await getConfigValue('commerce-store-code'),
Expand All @@ -27,7 +27,7 @@ import { getConfigValue } from '../../scripts/configs.js';
context: {
customerGroup: await getConfigValue('commerce-customer-group'),
},
route: ({ sku }) => `/products/missing-url-key/${sku}`, // TODO: We need urlKey as parameter as well!
route: ({ sku, urlKey }) => `/products/${urlKey}/${sku}`,
searchRoute: {
route: '/search',
query: 'q',
Expand Down
Loading

0 comments on commit 3686f01

Please sign in to comment.