• Resolved harvstuk

    (@harvstuk)


    Hello, I have tried the “Apply fix for missing fields” as well as updating config.php, but no form fields show on the product page. I get the ‘pw_gift_card_to’ is not focusable error. I’m using Porto theme with Elementor, and have no Javascript errors on the page, so I’m not sure what else I need to do.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am also facing the same error in the twentyseventeen theme.
    An invalid form control with name=’pw_gift_card_to’ is not focusable.

    • This reply was modified 3 years, 1 month ago by vibhu27.
    Plugin Author pimwick

    (@pimwick)

    I am sorry to hear you are experiencing issues.

    I checked your site and it looks like your theme (or perhaps another plugin) is throwing an error on the standard WooCommerce javascript hook that triggers whenever the Variation dropdown changes.

    For reference, the WooCommerce event is:
    jQuery('form.variations_form').on('show_variation')

    The error appears if I manually trigger the event in the web browser console using the following function:
    jQuery('form.variations_form').trigger('show_variation');

    A possible solution is to force the form to always be visible. To do this, follow these steps:

    1. Log into your WordPress Admin area.
    2. Click on Appearance -> Customize -> Additional CSS
    3. Paste the following CSS into the field and save:

    #pwgc-purchase-container {
        display:block !important
    }

    However, if you force the form to be visible you will lose out on any browser-side validations.

    Thread Starter harvstuk

    (@harvstuk)

    Fantastic – that worked a treat, thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Form fields not appearing on Porto theme’ is closed to new replies.