Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion view/adminhtml/web/js/checkout/dist/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9070,7 +9070,7 @@ a {
.braintree-payment__title .divider-line {
border-bottom: var(--divider__border);
margin-left: var(--indent__base);
width: 100%;
flex-grow: 1;
display: var(--divider-line-display, block);
}
.braintree-payment__icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.divider-line {
border-bottom: var(--divider__border);
margin-left: var(--indent__base);
width: 100%;
flex-grow: 1;
display: var(--divider-line-display, block);
}
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/checkout/dist/main.css

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions view/frontend/web/js/checkout/dist/main.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.divider-line {
border-bottom: var(--divider__border);
margin-left: var(--indent__base);
width: 100%;
flex-grow: 1;
display: var(--divider-line-display, block);
}
}
Expand Down
24 changes: 23 additions & 1 deletion view/frontend/web/js/checkout/src/locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ export default {
addressForm: {
saveAddressButton: 'Use this address',
linkText: 'Enter address manually',
useMyLocation: 'Use My Location',
collectLocations: 'Where would you like to collect it?',
closestLocations: 'Nearest Collection Locations',
noLocations: 'No locations found for current search.',
collectionName: 'Who is collecting the order?',
collectionBillingTitle: 'Billing Details',
submitCollectionDetails: 'Submit collection details',
collectionDistance: '{distance} miles',
viewMapAndHours: 'View map and opening hours',
selectLocation: 'SELECT LOCATION',
addressField: {
placeholder: 'Address (line {line})',
label: 'Address (line {line})',
Expand Down Expand Up @@ -195,6 +205,7 @@ export default {
unexpectedPaymentError: 'An unexpected error occurred',
applePayNoShippingMethods:
'No shipping methods found for the selected address.',
postcodeLookup: 'Unable to get your location.',
},
welcomeMessages: {
accountBody: 'Sign in or continue as a guest.',
Expand All @@ -206,7 +217,7 @@ export default {
},
signInButton: 'Sign In',
noAccountGuestButton: 'Continue as a Guest',
accountGuestButton: 'Or Continue as a Guest',
accountGuestButton: 'Continue as a Guest',
continueButton: 'Continue',
forgotPass: 'Forgot your password?',
passwordRequirementsText:
Expand Down Expand Up @@ -240,6 +251,8 @@ export default {
titleGuest: 'Select a payment method',
titleStored: 'Your saved payment methods',
titleNew: 'Select new payment method',
freePaymentLabel: 'No Payment Information Required',
checkMOLabel: 'Check / Money Order',
payNow: 'Pay Now',
storedPayments: 'Your Saved Payments',
creditDebitCard: 'Credit or debit card',
Expand Down Expand Up @@ -329,4 +342,13 @@ export default {
from: 'From',
message: 'Message',
},
days: {
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ import mapCustomConfigs from '@/helpers/storeConfigs/mapCustomConfigs';
import handleInitialConfig from '@/helpers/storeConfigs/handleInitialConfig';
import getMagentoSolutionType from '@/helpers/getMagentoSolutionType';

async function getOptionalBlock(blockId) {
try {
return await getBlock(blockId);
} catch (error) {
if (error?.response?.status === 404) {
console.warn(`CMS block "${blockId}" could not be loaded.`, error.message);
return {};
}

throw error;
}
}

export default defineStore('configStore', {
state: () => ({
staticUrl: getFallBackStaticPath(),
Expand Down Expand Up @@ -309,7 +322,7 @@ export default defineStore('configStore', {

if (privacyPolicyId) {
const data = await this.getCachedResponse(
getBlock,
getOptionalBlock,
'getPrivacyPolicyBlock',
privacyPolicyId,
);
Expand All @@ -323,7 +336,7 @@ export default defineStore('configStore', {

if (generalTermsServicesId) {
const data = await this.getCachedResponse(
getBlock,
getOptionalBlock,
'getGeneralTermsServicesBlock',
generalTermsServicesId,
);
Expand All @@ -337,7 +350,7 @@ export default defineStore('configStore', {

if (withdrawTermsServicesId) {
const data = await this.getCachedResponse(
getBlock,
getOptionalBlock,
'getWithdrawTermsServicesBlock',
withdrawTermsServicesId,
);
Expand Down