• Resolved khudair

    (@khudair)


    Hi everyone.
    I have a very important question .
    I’m building a new e-commerce website , using the wordpress as a backend (with woocommerce plugin of course ),and the react app as a front end.So,I’m using the rest api to get products and all shop staff.
    My main question is: how I can send the session key with rest api , so I can get the cart info for specific session (user)?
    I know that woocommerce using the session key that exist in cookie , to return the cart info, but when I’m using react app , there is no cookies.
    Is there is a rest api that doing this ,or I should build my custom rest api to handle this issue.
    Thank you

Viewing 1 replies (of 1 total)
  • Hi @khudair,

    Sorry for the late response on this!

    I’m building a new e-commerce website , using the wordpress as a backend (with woocommerce plugin of course ),and the react app as a front end.So,I’m using the rest api to get products and all shop staff.
    My main question is: how I can send the session key with rest api , so I can get the cart info for specific session (user)?

    You can check out how to manage the cart after 3.6 was released at this link.

    I know that woocommerce using the session key that exist in cookie , to return the cart info, but when I’m using react app , there is no cookies.
    Is there is a rest api that doing this ,or I should build my custom rest api to handle this issue.

    The link above should cover it, if you have further questions please let us know!

Viewing 1 replies (of 1 total)
  • The topic ‘Cart rest api’ is closed to new replies.