Skip to content

Commit

Permalink
Allow customizing the API url for product listing page widget
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Oct 4, 2024
1 parent 08080d9 commit a3ecd95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions blocks/product-list-page/product-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default async function decorate(block) {
environmentId: await getConfigValue('commerce-environment-id'),
environmentType: (await getConfigValue('commerce-endpoint')).includes('sandbox') ? 'testing' : '',
apiKey: await getConfigValue('commerce-x-api-key'),
apiUrl: await getConfigValue('commerce-endpoint'),
websiteCode: await getConfigValue('commerce-website-code'),
storeCode: await getConfigValue('commerce-store-code'),
storeViewCode: await getConfigValue('commerce-store-view-code'),
Expand Down
4 changes: 2 additions & 2 deletions scripts/widgets/search.js

Large diffs are not rendered by default.

0 comments on commit a3ecd95

Please sign in to comment.