Is there a way to add a Woocommerce product id?
-
First off, this is the best WP form plugin I have seen. Great features and ease of use.
I have a question, as I am using this form in conjunction with a WooCommerce site.
We have a section called “Deal of the Day” and on that page we offer three different prices, depending on the item selected. $40, $60 and $80. Each one of these prices has a corresponding WooCommerce product and product ID attached to them.
I use three radio buttons to enable the customer to select which price they want for their Deal of the Day. $40, $60 and $80.
Is there a way, using the either radio button or any other field within the plugin’s structure, to capture the WooCommerce product ID depending on their price selection, maybe using a hidden pre-populated text field attached to that field, so that using the product’s ID, an add-to-card URL can be created?
I know this is a rather complex question. But, if a hidden field could be added in somewhere, I could compare the radio button selected and manually put in the add-to-card URL and have the customer be sent to the Cart page after submitting the form.
I know this is probably not possible without a good bit of enhancing the code, but I am wondering if there might be an easier way doing so with the plugin, as it is presently.
Thanks.
- You must be logged in to reply to this topic.