devvlop
Forum Replies Created
-
Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartIs there no way to add a product with username?
Like admin when I use key I can add product to cart, and when I go to Cart I can see products.
I have no Guest.Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartI use fetch in react native. When I put consumer_key after url working but without consumer_key and consumer_secret I have nothing in Cart.
return fetch('https://--------/wp-json/wc/v2/cart/',{ method:'GET', headers:{ 'Content-type':'application/json', }, })Add a product to cart: (Response is true and working and problem is not about add to cart)
fetch('https://--------/wp-json/wc/v2/cart/add',{ method:'POST', headers:{ 'Accept':'application/json', 'Content-type':'application/json', }, body:JSON.stringify({ product_id:this.state.productId, quantity:this.state.quantity }) })Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartNow When I add an item to cart working fine(I see correct response), but when I see cart page I can’t see any item and response is [] .
Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartMy mistake is I put consumer_key and consumer_secret after requests.
Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartAny idea?
Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartSorry, but is not different! I have my app on two devices and when I add one thing to cart in another device I can see in the cart.
- This reply was modified 7 years, 2 months ago by devvlop.
Forum: Plugins
In reply to: [CoCart - Headless REST API for WooCommerce] key in cocartSo without key in cart,We can see all of items users added to cart.
Or Is different for each user?image: http://nimb.ws/jCfNoB
- This reply was modified 7 years, 9 months ago by devvlop.