I'm building a website where the client doesn't need to add products he just wants to charge people a set fee based on some specifications he gave me. I'd like to use WooCommerce since the payment gateway the client requires is already available with WooCommerce so i will need to purchase that gateway and set the rest myself.
This is the scenario i'm planning to build: on submission of a form, a price/total is added to the cart, the user is then redirected to the cart and pays the fee. The thing i'm not sure how to do is the "addition of the fee" to the cart without adding any product, i've found the hook "woocommerce_before_calculate_totals" but i'm not sure it will work with no product added.
Has anybody ever achieved such thing? Or are there any other ways to achieve this? Let's think of it the same as it happens with the "name your price" plugin but without a product.
Thank you.