Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
Browse files Browse the repository at this point in the history
…nto update-dropins-101
  • Loading branch information
Ferri0 committed Jan 17, 2025
2 parents 941749f + 6c1b7fe commit 6cb89d4
Show file tree
Hide file tree
Showing 107 changed files with 220 additions and 200 deletions.
12 changes: 6 additions & 6 deletions blocks/header/searchbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { getConfigValue } from '../../scripts/configs.js';
await loadScript(widgetProd);

const storeDetails = {
environmentId: await getConfigValue('commerce-environment-id'),
environmentId: await getConfigValue('commerce.headers.cs.Magento-Environment-Id'),
environmentType: (await getConfigValue('commerce-endpoint')).includes('sandbox') ? 'testing' : '',
apiKey: await getConfigValue('commerce-x-api-key'),
apiKey: await getConfigValue('commerce.headers.cs.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'),
websiteCode: await getConfigValue('commerce.headers.cs.Magento-Website-Code'),
storeCode: await getConfigValue('commerce.headers.cs.Magento-Store-Code'),
storeViewCode: await getConfigValue('commerce.headers.cs.Magento-Store-View-Code'),
config: {
pageSize: 8,
perPageConfig: {
Expand All @@ -26,7 +26,7 @@ import { getConfigValue } from '../../scripts/configs.js';
allowAllProducts: false,
},
context: {
customerGroup: await getConfigValue('commerce-customer-group'),
customerGroup: await getConfigValue('commerce.headers.cs.Magento-Customer-Group'),
},
route: ({ sku, urlKey }) => `/products/${urlKey}/${sku}`,
searchRoute: {
Expand Down
12 changes: 6 additions & 6 deletions blocks/product-list-page/product-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default async function decorate(block) {
block.textContent = '';

const storeDetails = {
environmentId: await getConfigValue('commerce-environment-id'),
environmentId: await getConfigValue('commerce.headers.cs.Magento-Environment-Id'),
environmentType: (await getConfigValue('commerce-endpoint')).includes('sandbox') ? 'testing' : '',
apiKey: await getConfigValue('commerce-x-api-key'),
apiKey: await getConfigValue('commerce.headers.cs.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'),
websiteCode: await getConfigValue('commerce.headers.cs.Magento-Website-Code'),
storeCode: await getConfigValue('commerce.headers.cs.Magento-Store-Code'),
storeViewCode: await getConfigValue('commerce.headers.cs.Magento-Store-View-Code'),
config: {
pageSize: 8,
perPageConfig: {
Expand All @@ -42,7 +42,7 @@ export default async function decorate(block) {
},
},
context: {
customerGroup: await getConfigValue('commerce-customer-group'),
customerGroup: await getConfigValue('commerce.headers.cs.Magento-Customer-Group'),
},
route: ({ sku, urlKey }) => {
const a = new URL(window.location.origin);
Expand Down
2 changes: 1 addition & 1 deletion blocks/product-recommendations/product-recommendations.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async function loadRecommendation(block, context, visibility, filters) {
return;
}

const storeViewCode = await getConfigValue('commerce-store-view-code');
const storeViewCode = await getConfigValue('commerce.headers.cs.Magento-Store-View-Code');

if (unitsPromise) {
return;
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"dependencies": {
"@adobe/magento-storefront-event-collector": "^1.8.0",
"@adobe/magento-storefront-events-sdk": "^1.8.0",
"@dropins/storefront-account": "~1.0.1",
"@dropins/storefront-auth": "~1.0.1",
"@dropins/storefront-cart": "~1.0.1",
"@dropins/storefront-account": "~1.0.0",
"@dropins/storefront-auth": "~1.0.0",
"@dropins/storefront-cart": "~1.0.2",
"@dropins/storefront-checkout": "~1.0.0",
"@dropins/storefront-order": "~1.0.1",
"@dropins/storefront-order": "~1.0.0",
"@dropins/storefront-pdp": "~1.0.0",
"@dropins/tools": "^0.38.0"
"@dropins/tools": "^0.39.0"
}
}
2 changes: 1 addition & 1 deletion scripts/__dropins__/storefront-cart/api.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Copyright 2024 Adobe
/*! Copyright 2025 Adobe
All Rights Reserved. */
import{s as o,f as d,h as l}from"./chunks/resetCart.js";import{g as $,r as Q,d as H,a as k,b as z,c as V}from"./chunks/resetCart.js";import{C as T,t as g,c as f}from"./chunks/refreshCart.js";import{g as j,b as q,d as B,e as J,i as K,a as W,r as X}from"./chunks/refreshCart.js";import{events as C}from"@dropins/tools/event-bus.js";import{CART_FRAGMENT as h}from"./fragments.js";import{b as A,a as I,c as _}from"./chunks/acdl.js";import{u as Z}from"./chunks/updateProductsFromCart.js";import{g as rt,b as at,a as et}from"./chunks/getEstimateShipping.js";import{g as ot}from"./chunks/getEstimatedTotals.js";import{g as E}from"./chunks/persisted-data.js";import{A as it,a as ct}from"./chunks/applyCouponsToCart.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/lib.js";const S=`
mutation ADD_PRODUCTS_TO_CART_MUTATION(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6cb89d4

Please sign in to comment.