get the post id or title from where a woocommerce product was added

Viewed 22

I am using a shortcode to show the products in all posts, example [product_category category="flower-black"]

How can I do so that when I add a product to the cart from a specific post, it is related in some way to it and that the title of the post appears in the checkout?

seeing it from another way: some way to capture the post id and the title from where the product was added

Any ideas?

0 Answers
Related