Skip to content

Commit 91c2d04

Browse files
committed
Improve README and add COD as a requirement
1 parent 01c533b commit 91c2d04

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ You can also import default Woocommerce products that come with wooCommerce Plug
1717

1818
2. Clone or fork the repo and modify ```nextConfig.js```
1919
3. Modify the values according to your setup
20-
21-
Start the server with ```npm run dev ```
20+
4. Start the server with ```npm run dev ```
21+
5. Enable COD (Cash On Demand) payment method in WooCommerce
2222

2323
## Features
2424

components/Cart/CartPage/CartItemsContainer.component.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ const CartItemsContainer = () => {
3232
},
3333
] = useMutation(UPDATE_CART, {
3434
onCompleted: () => {
35-
36-
3735
refetch();
3836
},
3937
onError: (error) => {
@@ -66,16 +64,13 @@ const CartItemsContainer = () => {
6664
},
6765
},
6866
});
69-
70-
71-
7267
}
7368
};
7469

7570
const { loading, error, data, refetch } = useQuery(GET_CART, {
7671
notifyOnNetworkStatusChange: true,
7772
onCompleted: () => {
78-
// Update cart in the localStorage.
73+
// Update cart in the localStorage.
7974
const updatedCart = getFormattedCart(data);
8075
localStorage.setItem('woocommerce-cart', JSON.stringify(updatedCart));
8176
// Update cart data in React Context.
@@ -86,7 +81,6 @@ const CartItemsContainer = () => {
8681
setRequestError(error);
8782
},
8883
});
89-
9084

9185
return (
9286
<>

0 commit comments

Comments
 (0)