diff --git a/next.config.js b/next.config.js
index 4b8c4f6..a258552 100644
--- a/next.config.js
+++ b/next.config.js
@@ -21,7 +21,10 @@ module.exports = withOffline(
generateSw: false,
globPatterns: ['static/**/*'],
globDirectory: '.',
- target: 'serverless'
+ target: 'serverless',
+ images: {
+ domains: [process.env.SITE_URL.replace(/^https?:\/\//,'')] // whatever port your backend runs on
+ }
})
)
);
diff --git a/pages/checkout.js b/pages/checkout.js
index aec6c36..922e635 100644
--- a/pages/checkout.js
+++ b/pages/checkout.js
@@ -1,11 +1,14 @@
import Layout from '../src/components/layouts/Layout';
import CheckoutForm from '../src/components/checkout/CheckoutForm';
+import { Heading } from '../src/components/typography';
const Checkout = () => {
return (
Checkout Page.
+
{item.price}
- +Email: {userData.user.email}
: ''} + {userData.user.email ? +{product?.price} @@ -42,7 +47,7 @@ const Product = (props) => {
| Subtotal | - ${cart.totalProductsPrice.toFixed(2)} + ${cart?.totalProductsPrice?.toFixed(2)} | |||||||
| Total | - ${cart.totalProductsPrice.toFixed(2)} + ${cart?.totalProductsPrice?.toFixed(2)} | |||||||
| handleRemoveProductClick(event, item.databaseId)}> + onClick={(event) => handleRemoveProductClick(event, item?.databaseId)}> |
- |
- {item.name} | -${item.price.toFixed(2)} | +{item?.name} | +${item?.price?.toFixed(2)} | {/* Qty Input */}@@ -60,7 +61,7 @@ const CartItem = ({ item, handleRemoveProductClick, setCart }) => { onChange={handleQtyChange} /> | -{item.totalPrice.toFixed(2)} | +{item?.totalPrice?.toFixed(2)} |
|---|---|---|---|---|---|---|---|---|
|
- |
- {item.name} | -${item.totalPrice.toFixed(2)} | +{item?.name} | +${item?.totalPrice?.toFixed(2)} | ||||
| Subtotal | - ${cart.totalProductsPrice.toFixed(2)} + ${cart?.totalProductsPrice?.toFixed(2)} | |||||||
| Total | - ${cart.totalProductsPrice.toFixed(2)} + ${cart?.totalProductsPrice?.toFixed(2)} |
{
srcSet="https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/accessories.jpg 801w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/accessories-150x150.jpg 150w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/accessories-300x300.jpg 300w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/accessories-768x768.jpg 768w"
sizes="(max-width: 324px) 100vw, 324px"
/>
-
{
srcSet="https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/hoodies.jpg 800w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/hoodies-150x150.jpg 150w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/hoodies-300x300.jpg 300w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/hoodies-768x768.jpg 768w"
sizes="(max-width: 324px) 100vw, 324px"
/>
-
{
srcSet="https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/tshirts.jpg 801w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/tshirts-150x150.jpg 150w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/tshirts-300x300.jpg 300w, https://woo-vsf.dev5.rt.gw/wp-content/uploads/2019/05/tshirts-768x768.jpg 768w"
sizes="(max-width: 324px) 100vw, 324px"
/>
- Welcome to the WP Decoupled Demo page.
This is a frontend for a WooCommerce Store created with Next.js and WPGraphQL. @@ -10,4 +11,4 @@ const Hero = () => (