Answer the question
In order to leave comments, you need to log in
How to create a link in Woocommerce to add a product to the cart?
Tell me please.
I have a Wordpress site with Woocommerce enabled. Only 1 item for sale.
I want to make it possible to put a button anywhere on the site, clicking on which will not open a page with a product, but immediately a shopping cart with goods added to it.
Perhaps somehow GET request can be done like /?add_cart&item=1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question