Currently I'm fetching some content from another site and extracting it's price + name so I can add that product.
I'm using woocommercer right now and I was wondering whether there is a method or possibility where,
1. Rather than creating a product in the WP admin and then adding it to cart.
2. I extract the price + name of the product from DOM, save it in a variable and then when add to cart is clicked, saved as a product in WP admin.
Like the reverse of step 1. I'm assuming I need to create my own add to cart button with customized values.
Any ideas or suggestions are greatly appreciated.