A
A
Alexey Konovalov2022-01-12 11:27:05
WordPress
Alexey Konovalov, 2022-01-12 11:27:05

How to add product to Woocommerce cart via API?

Hello! Is it possible to add a product to cart using woocommerce api? The problem is that you need to add it from another domain. Therefore, I don’t quite understand logically how this should happen, because you need to have a common session so that when you go to the store, there is a product in the basket.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2022-01-12
@Alk90

The most correct way would probably be to use the REST API - look here: https://newbedev.com/how-to-insert-product-in-cart...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question