• Resolved NosCoffin

    (@noscoffin)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @noscoffin

    I hope you are doing well today.

    By default, this is not possible and this will be outside the scope of support to provide such a thing. For that, you’ll need to hire a developer to provide the required custom code for you. WordPress provides a jobs directory here https://jobs.wordpress.net/

    As a walkaround, we can suggest reading the page post title: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#default-value (Embed Post/Page ID)

    As WooCommerce products are simply custom post types, the HTML field and Hidden fields allow to read pages/posts IDs.

    Note this can work only if that form is placed on that product page, not on a custom page where there will be multiple products. You can of course use that page with your offers and as soon end user picks up that product he will be redirected to that product page which will contain that form and that form will read the ID.

    Kind Regards,
    Kris

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @noscoffin,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.

    Regards,

    Nithin

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.