mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
wip: Saving work
This commit is contained in:
@@ -23,7 +23,7 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: params?.locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
const awardsPage = await getPage({ handle: 'awards', language: params?.locale?.toUpperCase() });
|
||||
|
@@ -25,7 +25,7 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: params?.locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -25,7 +25,7 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: params?.locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -25,7 +25,7 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: params?.locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -29,7 +29,7 @@ export default async function DisclosuresPage({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -45,7 +45,9 @@ export default async function HomePage({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
console.debug({ cartId });
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
console.debug({ cart });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -29,7 +29,7 @@ export default async function PrivacyPage({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -28,7 +28,7 @@ export default async function ProductLayout({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -30,8 +30,6 @@ export async function generateMetadata({
|
||||
language: params?.locale?.toUpperCase()
|
||||
});
|
||||
|
||||
console.debug({ product });
|
||||
|
||||
if (!product) return notFound();
|
||||
|
||||
const { url, width, height, altText: alt } = product.featuredImage || {};
|
||||
|
@@ -29,7 +29,7 @@ export default async function ProductPage({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -39,7 +39,7 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: params?.locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
const page = await getPage({ handle: 'shop-list', language: params?.locale?.toUpperCase() });
|
||||
|
@@ -28,7 +28,7 @@ export default async function BlogLayout({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -28,7 +28,7 @@ export default async function StoriesPage({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -27,7 +27,7 @@ export default async function TermsPage({
|
||||
let cart;
|
||||
|
||||
if (cartId) {
|
||||
cart = await getCart(cartId);
|
||||
cart = await getCart({ cartId, language: locale?.toUpperCase() });
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user