Add to cart with data from a URL (post) using the GET method in Woocommerce

I’m using a shortcode to show a small list of products in any post, what I want is that in some way when adding the cart I get data from the post where I added the cart, something like this:


And that data appears in the cart and checkout area

Any idea how to do it? I am open to any option


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here