override missing modules using hardcoded values

This commit is contained in:
GotPPay
2018-07-29 02:28:44 +02:00
parent 09a2be6be8
commit d2ff1e497a
4 changed files with 85 additions and 6 deletions

View File

@@ -57,6 +57,9 @@ export const receiveCustomerDetails = (json) => ({
export const fetchCartCount = () => {
return dispatch => {
dispatch(requestShopCartCount());
//TODO : fetch cart count from woocommerce (requires plugin)
dispatch(receiveShopCartCount(0));
/*
return client.fetch({url: `${API_SERVER}/cart/api/getCartCount`}).then(response => {
if (typeof response.data !== 'undefined' && 'cartItemsCount' in response.data) {
dispatch(receiveShopCartCount(response.data.cartItemsCount));
@@ -64,6 +67,7 @@ export const fetchCartCount = () => {
}).catch(error => {
client.onError(error, dispatch);
});
*/
}
}