Is it possible to make a user-generated temporary product to be added to cart in WooCommerce?
I'm trying to transfer a non-wordpress website to WordPress, but the site already has a sophisticated e-commerce system that the client doesn't want to change. What basically happens is a visitor specifies the measurement of the product that the client is selling, add different variations to it, and then after submitting, the website generates the product's price based on the visitor's input.
Adding products will be very tedious because they have too many products with thousands of variations. So our solution is this.
I'm open to other plugin suggestions aside from WooCommerce. I already tried using Gravity Forms, but I got stuck in the end because our client's current website has to be an e-commerce site after it was added to the cart.
This is solved! Here is what I did just in case someone needs help with this in the future.
First I made a page with a form. Action is whichever the page will live in and method is post.
Then on the next page, I grabbed the values, created the product based on the values given, and then added a shortcode to display the cart button.
and then lastly, once an order is completed, delete the product by hooking an action to woocommerce_thankyou. I put it in the functions.