Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last payload #248

Closed
wants to merge 119 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
2d36f3d
[chore] create develop branch from dropin fork (#94)
sirugh Sep 13, 2024
767f169
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 Sep 13, 2024
7d79e4a
Remove .d.ts files from deployment (#98)
herzog31 Sep 13, 2024
90bd0b6
USF-876: tests events (#96)
sirugh Sep 16, 2024
99f2532
Merge branch 'main' into develop
sirugh Sep 16, 2024
ceb2316
adds check for staging to host
sirugh Sep 16, 2024
1170869
Upgrade Checkout and Order confirmation dropins to latest versions (#99)
OscarMerino Sep 17, 2024
028d4fe
Upgrade checkout to alpha49 (#100)
OscarMerino Sep 17, 2024
3fa67ac
Remove copyright from checkout block files
OscarMerino Sep 17, 2024
5fdefd3
Lint fix
OscarMerino Sep 17, 2024
816de42
Merge branch 'main' into develop
sirugh Sep 23, 2024
e66e6ee
merge
sirugh Sep 23, 2024
685ab6d
fix flaky cypress (#112)
dpatil-magento Sep 24, 2024
4d0cadb
EDS-406 Auth | Fix auth modal (or point to issue) (#107)
KostiantynFandeliuk Sep 30, 2024
0c7289c
[chore]: fixing cypress (#116)
sirugh Oct 1, 2024
f5cd140
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 Oct 2, 2024
661baf1
Integrate storefront-account and storefront-order dropins (#101)
Ferri0 Oct 4, 2024
22e1ae4
Merge branch 'main' into develop
herzog31 Oct 4, 2024
cded3ec
fix cypress (#127)
dpatil-magento Oct 7, 2024
c6ddc57
Merge branch 'main' into develop
herzog31 Oct 8, 2024
ca68262
Merge branch 'main' into develop
herzog31 Oct 8, 2024
779dbdb
chore: fix cypress for ls changed classname (#133)
sirugh Oct 10, 2024
59485da
Merge remote-tracking branch 'origin/main' into develop
alandana Oct 10, 2024
ac8653c
Fix issue with incorrect order token param (#129)
Ferri0 Oct 10, 2024
cfd4bc3
Update Cart to 0.7.0 (#136)
cctina516 Oct 10, 2024
71592b2
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 Oct 11, 2024
c8e7788
Dropin Build Tools (GraphQl Operations Extensibility) (#106)
fnhipster Oct 11, 2024
1af016c
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 Oct 14, 2024
385eb8f
Update auth, order and account dropins (#132)
Ferri0 Oct 14, 2024
34519ea
Moved appending the .appear class to the body until after the LCP is …
herzog31 Oct 15, 2024
997da18
Franklin -> EDS (#139)
sirugh Oct 15, 2024
ca07bcb
improve product recommendations events (#141)
sirugh Oct 16, 2024
0fc859d
Cart Container (#142)
fnhipster Oct 16, 2024
c47f907
npm audit fixes
sirugh Oct 17, 2024
b3c3d83
fixed layout (#145)
fnhipster Oct 17, 2024
513be12
Merge branch 'main' of github.com:adobe/aem-boilerplate into develop
sirugh Oct 17, 2024
91a0460
fix merge
sirugh Oct 17, 2024
406f0ad
fix merge
sirugh Oct 17, 2024
5b7a6bb
Dropins Initializer (#149)
fnhipster Oct 28, 2024
2c2b29b
Update Cart to 0.8.0 (#151)
cctina516 Oct 28, 2024
7f7a081
Fix 404.html not loading (#156)
fnhipster Oct 30, 2024
c8e7504
sets shopperContext on page load based on user token presence (#153)
sirugh Oct 30, 2024
e0fc2b7
adds security scan domain verification tag for boilerplate environment
sirugh Oct 30, 2024
4d3d1c9
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
herzog31 Oct 31, 2024
d4047c1
Merge remote-tracking branch 'origin' into develop
sirugh Oct 31, 2024
7c1b68c
fix missed merge property not properly updated
sirugh Oct 31, 2024
e2f152b
fix: set body to display:none initially (#160)
buuhuu Oct 31, 2024
ceaa1e8
Integrate Order Cancellation: storefront-order/v0.1.0-alpha15 (#154)
loginesta Nov 6, 2024
a3b5808
placeholders integration (#166)
fnhipster Nov 6, 2024
1fd2be0
only initialize event collection when not prerendering (#168)
sirugh Nov 7, 2024
783137c
overloaded adding state caused a2c button to change when wishlist but…
sirugh Nov 7, 2024
5e3bbf7
add custom label (#169)
fnhipster Nov 7, 2024
de09bbb
Update Cart to 0.9.0 (#171)
cctina516 Nov 7, 2024
1eaa129
Update order and account dropins integration (#161)
Ferri0 Nov 7, 2024
a1c8172
await initializers (#173)
fnhipster Nov 7, 2024
2ed9109
Placeholder metadata (#175)
fnhipster Nov 8, 2024
7a10e32
Merge PREX bugfix from main into develop (#179)
jcalcaben Nov 8, 2024
f523723
fixed PREX (width) layout (#182)
fnhipster Nov 8, 2024
05ec0ca
updating experiment plugin (#188)
fnhipster Nov 9, 2024
9c864a4
Checkout drop in version to 0.1.0-alpha53 (#165)
OscarMerino Nov 11, 2024
ec6aea5
Enable tracking (#190)
Ferri0 Nov 11, 2024
6f82605
Experimentation Plugin must load before Drop-ins initialization (#193)
fnhipster Nov 11, 2024
338f096
Disable bfcache
fnhipster Nov 11, 2024
17253f3
Remove checkout experimentation block (#200)
OscarMerino Nov 12, 2024
06d2116
Cart Dropin Version 0.10.0 (#201)
sivaschenko Nov 12, 2024
827bced
Create return page (#204)
Ferri0 Nov 13, 2024
c143dde
USF 1629 - Add coupon container in cart (#162)
cctina516 Nov 14, 2024
d9b0055
update packages to 0.36.0 (#208)
anthoula Nov 18, 2024
06a3448
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Nov 18, 2024
1b9957c
Checkout drop in version to 0.1.0-alpha57 (#206)
OscarMerino Nov 19, 2024
735e482
[PDP] add Magento metadata as query parameters instead of headers (#198)
mitre10 Nov 20, 2024
ef59b48
Bump storefront-order v0.1.0-alpha23 (#209)
eliseacornejo Nov 21, 2024
d8df840
Extend order initializer logic (#212)
Ferri0 Nov 21, 2024
b92c237
Bump Checkout drop in version to 0.1.0-alpha58 (#213)
OscarMerino Nov 22, 2024
827f15f
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Nov 25, 2024
24012e9
update checkout order handling to include order number in URL (#214)
emipallares Nov 26, 2024
8674310
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Nov 26, 2024
5107d3c
PDP Containers (#135)
fnhipster Nov 27, 2024
c420895
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Nov 27, 2024
d6dfdae
Preloaders (#218)
fnhipster Nov 27, 2024
b794218
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Nov 27, 2024
f9dbb14
Fix import safari (#219)
fnhipster Nov 27, 2024
c681185
Bump Checkout drop in version to 0.1.0-alpha60 (#220)
OscarMerino Dec 2, 2024
25edacf
Redirect to home from order confirmation when signing out and improve…
emipallares Dec 2, 2024
4b749ff
Merge branch 'main' of github.com:hlxsites/aem-boilerplate-commerce i…
sirugh Dec 2, 2024
6f2ecae
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Dec 2, 2024
6f4a865
removed uncessary logs
fnhipster Dec 2, 2024
05575f5
fixed accesibility error
fnhipster Dec 2, 2024
dd667e9
fixed accessibility issues
fnhipster Dec 2, 2024
7adea89
Accessibility Fixes (#226)
fnhipster Dec 2, 2024
9f02589
Bump order-dropin alpha26 release (#228)
eliseacornejo Dec 3, 2024
ce647b4
Bump Checkout drop in version to 0.1.0-alpha61 (#225)
OscarMerino Dec 3, 2024
09c3741
USF-1783 - Disable viewport auto-zoom (#230)
OscarMerino Dec 4, 2024
d1ddc13
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Dec 4, 2024
32af5fc
Auth VoiceOver (#231)
KostiantynFandeliuk Dec 5, 2024
d4b6332
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Dec 5, 2024
f8d360c
Fixes non-existing product 404 (#234)
fnhipster Dec 5, 2024
c6cf428
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Dec 5, 2024
ac4ec79
Fix 404 styles (#236)
fnhipster Dec 5, 2024
c07da35
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Dec 5, 2024
52d459b
Merge branch 'main' into develop
herzog31 Dec 6, 2024
a81ba3c
Add cypress test for cart event - part of USF 1654 (#227)
cctina516 Dec 6, 2024
2fc5bb1
chore: recs test against /gear not product (#239)
sirugh Dec 9, 2024
41118cb
Auth / Order / Account - 1.0.0 (#242)
Ferri0 Dec 9, 2024
4f646dd
Update cart to v1.0.0-beta1 (#243)
cctina516 Dec 9, 2024
0bcdff9
Checkout v1.0.0 beta1 and Order v1.0.0 beta4 (#235)
OscarMerino Dec 10, 2024
2915c6e
Checkout v1.0.0 beta3 (#245)
keoko Dec 11, 2024
3713629
eds-517 fix bug auth combine modal (#246)
KostiantynFandeliuk Dec 11, 2024
501aa54
Update order, account and auth dropins (#247)
Ferri0 Dec 11, 2024
ade7c87
Merge branch 'develop' of https://github.com/hlxsites/aem-boilerplate…
fnhipster Dec 11, 2024
4251be4
updated to use new public API
fnhipster Dec 11, 2024
b10b78a
Added Cypress test to check the ACDL place-order event (#249)
mcocapiza Dec 12, 2024
b1ef113
Upgrade Checkout and Order dropins to latest versions (#250)
OscarMerino Dec 12, 2024
e43b491
update packages to 0.38.0 (#251)
anthoula Dec 12, 2024
474eb4b
update auth dropdown navigation (#253)
anthoula Dec 12, 2024
9821868
Package and readme changes for 1.0.0
sirugh Dec 13, 2024
b1a30e4
bump dropins to 1.0.0* (#261)
sirugh Dec 13, 2024
a4ce46f
Merge branch 'main' into develop
sirugh Dec 13, 2024
1690a49
Merge branch 'develop' into last-payload
fnhipster Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ scripts/htm.js
scripts/acdl
tools/picker
tools/pdp-metadata
scripts/dropins
scripts/__dropins__
scripts/commerce-events-collector.js
scripts/commerce-events-sdk.js
scripts/widgets
plugins/
cypress/
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ module.exports = {
'import/extensions': ['error', { js: 'always' }], // require js file extensions in imports
'linebreak-style': ['error', 'unix'], // enforce unix linebreaks
'no-param-reassign': [2, { props: false }], // allow modifying properties of param
'no-use-before-define': [2, { functions: false }],
'no-console': [
'error',
{
allow: ['warn', 'error', 'info', 'debug'],
},
],
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
},
};
25 changes: 25 additions & 0 deletions .github/workflows/run-e2e-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cypress E2E Tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install root dependencies
run: npm ci
- name: Start server in the background
run: npm start &

- name: Install Cypress and run tests
uses: cypress-io/github-action@v6
with:
working-directory: cypress
browser: chrome
wait-on: 'http://localhost:3000'
config: baseUrl=http://localhost:3000
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ helix-importer-ui
*.bak
.idea
# Ignore .map files in scripts/__dropins__/ directory and all its subdirectories
scripts/__dropins__/**/*.map
scripts/__dropins__/**/*.map
3 changes: 3 additions & 0 deletions .hlxignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
.*
*.md
*.d.ts
karma.config.js
LICENSE
package.json
package-lock.json
test/*
postinstall.js
build.mjs
tools/picker/src/*
cypress/
tools/pdp-metadata/*
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
; force @adobe namespaced packages to be installed from npmjs.org
@adobe:registry=https://registry.npmjs.org
11 changes: 8 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"imports": {
"@dropins/tools/": "/scripts/__dropins__/tools/",
"@dropins/storefront-pdp/": "/scripts/__dropins__/storefront-pdp/"
"@dropins/storefront-cart/": "/scripts/__dropins__/storefront-cart/",
"@dropins/storefront-auth/": "/scripts/__dropins__/storefront-auth/"
}
}
</script>
Expand Down Expand Up @@ -41,9 +42,13 @@
<link rel="stylesheet" href="/styles/styles.css">
<style>
main.error {
min-height: calc(100vh - var(--nav-height));
display: flex;
align-items: center;
display: flex;
margin: 0 auto;
max-width: 1264px;
min-height: calc(100vh - var(--nav-height));
padding: 0 32px;
width: 100%;
}

main.error .error-number {
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@ https://experienceleague.adobe.com/developer/commerce/storefront/
- Preview: https://main--{repo}--{owner}.aem.page/
- Live: https://main--{repo}--{owner}.aem.live/

## Pre-requisites

Out of the box, this project template uses a pre-configured Adobe Commerce environment. If you want to use your own Adobe Commerce environment, you'll need to update the `configs.xlsx` file in your content repository to have values that match your environment.

Additionally, you need to have the following modules and customizations installed on your environment:

1. magento/magento-extra-graphql: Commerce module required for Cart and Checkout Drop-Ins.
1. magento/module-data-services-graphql: Commerce module with functionality necessary for adding context to events.
1. magento/module-page-builder-product-recommendations: Commerce module required for PRex Widget
1. magento/module-visual-product-recommendations: Commerce module required for PRex Widget
<!-- 1. TODO: Add further prereqs. -->

## Documentation

Before using the aem-boilerplate, we recommand you to go through the documentation on https://www.aem.live/docs/ and more specifically:
Before using the boilerplate, we recommand you to go through the documentation on https://www.aem.live/docs/ and more specifically:
1. [Developer Tutorial](https://www.aem.live/developer/tutorial)
2. [The Anatomy of a Project](https://www.aem.live/developer/anatomy-of-a-project)
3. [Web Performance](https://www.aem.live/developer/keeping-it-100)
Expand All @@ -30,7 +42,7 @@ npm run lint

## Local development

1. Create a new repository based on the `aem-boilerplate` template and add a mountpoint in the `fstab.yaml`
1. Create a new repository based on the `aem-boilerplate-commerce` template and add a mountpoint in the `fstab.yaml`
1. Add the [AEM Code Sync GitHub App](https://github.com/apps/aem-code-sync) to the repository
1. Add your Adobe Commerce SaaS configuration in the `configs.xlsx` sheet in your content repository.
1. Install all dependencies using `npm i`.
Expand Down
3 changes: 3 additions & 0 deletions blocks/commerce-account-header/commerce-account-header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body.columns main > .section > div.commerce-account-header-wrapper {
margin-bottom: 0;
}
14 changes: 14 additions & 0 deletions blocks/commerce-account-header/commerce-account-header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-extraneous-dependencies */
import { Header, provider as uiProvider } from '@dropins/tools/components.js';
import { readBlockConfig } from '../../scripts/aem.js';

export default function decorate(block) {
const {
title = 'My account',
} = readBlockConfig(block);

block.innerHTML = '';

return uiProvider.render(Header, { title })(block);
}
59 changes: 59 additions & 0 deletions blocks/commerce-account-sidebar/commerce-account-sidebar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@media (width >= 900px) {
body.columns main > .section.commerce-account-sidebar-container {
max-width: var(--column-width);
}
}

.commerce-account-sidebar-wrapper .commerce-account-sidebar .commerce-account-sidebar-item {
display: flex;
align-items: center;
padding: var(--spacing-medium);
margin-bottom: var(--spacing-small);
border: var(--shape-border-width-2) solid var(--color-neutral-400);
border-radius: var(--shape-border-radius-2);
text-decoration: none;
}

.commerce-account-sidebar-wrapper .commerce-account-sidebar .commerce-account-sidebar-item-active {
border-color: var(--color-neutral-800);
background-color: var(--color-neutral-200);
}

.commerce-account-sidebar-item-icon {
flex: 0 0 auto;
margin-right: var(--spacing-small);
}

.commerce-account-sidebar-item-icon > div {
display: flex;
align-items: center;
justify-content: center;
}

.commerce-account-sidebar-item-content {
flex: 1 1 auto;
}

.commerce-account-sidebar-item-title {
font: var(--type-button-1-font);
margin: 0 0 var(--spacing-xxsmall);
border: none;
text-decoration: none;
}

.commerce-account-sidebar-item-subtitle {
font: var(--type-button-2-font);
margin: 0;
text-decoration: none;
}

.commerce-account-sidebar-item-arrow {
flex: 0 0 auto;
margin-left: var(--spacing-small);
}

.commerce-account-sidebar-item-arrow > div {
display: flex;
align-items: center;
justify-content: center;
}
80 changes: 80 additions & 0 deletions blocks/commerce-account-sidebar/commerce-account-sidebar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { Icon, provider as uiProvider } from '@dropins/tools/components.js';
import { render as accountRenderer } from '@dropins/storefront-account/render.js';
import { loadFragment } from '../fragment/fragment.js';
import { CUSTOMER_ORDERS_PATH } from '../../scripts/constants.js';

export default async function decorate(block) {
const fragment = await loadFragment('/customer/sidebar-fragment');
const sidebarItemsConfig = fragment.querySelectorAll('.default-content-wrapper > ol > li');
const sidebarItems = Array.from(sidebarItemsConfig).map((item) => {
const itemParams = Array.from(item.querySelectorAll('ol > li'));
const itemConfig = {
itemTitle: item.childNodes[0]?.textContent.trim() || 'Default Title',
itemSubtitle: itemParams[0]?.innerText || '',
itemLink: itemParams[1]?.innerText || '#',
itemIcon: itemParams[2]?.innerText || 'Placeholder',
};

const menuItemEl = document.createElement('a');
menuItemEl.classList.add('commerce-account-sidebar-item');
menuItemEl.href = itemConfig.itemLink;

const isItemActive = (
itemConfig.itemLink === CUSTOMER_ORDERS_PATH
? window.location.href.includes(CUSTOMER_ORDERS_PATH)
: window.location.href.includes(itemConfig.itemLink)
);
if (isItemActive) {
menuItemEl.classList.add('commerce-account-sidebar-item-active');
}

const iconEl = createMenuItemIcon(itemConfig.itemIcon);
const contentEl = createMenuItemContent(itemConfig.itemTitle, itemConfig.itemSubtitle);
const arrowEl = createMenuItemArrow();

menuItemEl.appendChild(iconEl);
menuItemEl.appendChild(contentEl);
menuItemEl.appendChild(arrowEl);

return menuItemEl;
});

block.innerHTML = '';
sidebarItems.forEach((el) => {
block.appendChild(el);
});
}

function createMenuItemIcon(iconSource) {
const iconEl = document.createElement('div');
iconEl.classList.add('commerce-account-sidebar-item-icon');
accountRenderer.render(Icon, { source: iconSource, size: 32 })(iconEl);
return iconEl;
}

function createMenuItemContent(title, subtitle) {
const contentEl = document.createElement('div');
contentEl.classList.add('commerce-account-sidebar-item-content');

const titleEl = document.createElement('p');
titleEl.classList.add('commerce-account-sidebar-item-title');
titleEl.innerText = title;

const subtitleEl = document.createElement('p');
subtitleEl.classList.add('commerce-account-sidebar-item-subtitle');
subtitleEl.innerText = subtitle;

contentEl.appendChild(titleEl);
contentEl.appendChild(subtitleEl);
return contentEl;
}

function createMenuItemArrow() {
const arrowEl = document.createElement('div');
arrowEl.classList.add('commerce-account-sidebar-item-arrow');
uiProvider.render(Icon, {
source: 'ChevronRight',
size: 32,
})(arrowEl);
return arrowEl;
}
1 change: 0 additions & 1 deletion blocks/commerce-account/commerce-account.css

This file was deleted.

13 changes: 0 additions & 13 deletions blocks/commerce-account/commerce-account.js

This file was deleted.

1 change: 1 addition & 0 deletions blocks/commerce-addresses/commerce-addresses.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* stylelint-disable no-empty-source */
27 changes: 27 additions & 0 deletions blocks/commerce-addresses/commerce-addresses.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-extraneous-dependencies */
import { Addresses } from '@dropins/storefront-account/containers/Addresses.js';
import { render as accountRenderer } from '@dropins/storefront-account/render.js';
import { readBlockConfig } from '../../scripts/aem.js';
import { checkIsAuthenticated } from '../../scripts/configs.js';
import { CUSTOMER_ADDRESS_PATH, CUSTOMER_LOGIN_PATH } from '../../scripts/constants.js';

// Initialize
import '../../scripts/initializers/account.js';

export default async function decorate(block) {
const {
'minified-view': minifiedViewConfig = 'false',
} = readBlockConfig(block);

if (!checkIsAuthenticated()) {
window.location.href = CUSTOMER_LOGIN_PATH;
} else {
await accountRenderer.render(Addresses, {
minifiedView: minifiedViewConfig === 'true',
withActionsInMinifiedView: false,
withActionsInFullSizeView: true,
routeAddressesPage: () => CUSTOMER_ADDRESS_PATH,
})(block);
}
}
33 changes: 32 additions & 1 deletion blocks/commerce-cart/commerce-cart.css
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
/* stylelint-disable no-empty-source */
/* stylelint-disable selector-class-pattern */

.commerce-cart {
padding: var(--spacing-large) 0;
}

.cart__wrapper {
display: flex;
flex-direction: column;
gap: var(--grid-4-gutters);
}

.cart__wrapper[hidden],
.cart__empty-cart[hidden] {
display: none;
}

@media (width >= 900px) {
.cart__wrapper {
flex-direction: row;
}

.cart__left-column {
flex: 1;
flex-basis: 70%;
}

.cart__right-column {
flex: 1;
flex-basis: auto;
}
}
Loading
Loading