Title: Solution to broken checkout fields
Last modified: April 22, 2019

---

# Solution to broken checkout fields

 *  Resolved [duckpindesign](https://wordpress.org/support/users/duckpindesign/)
 * (@duckpindesign)
 * [7 years ago](https://wordpress.org/support/topic/solution-to-broken-checkout-fields/)
 * There seems to be a common issue with checkout fields (the CC info fields) that
   are broken.
 * With our theme, we’ve found an issue where the stripe gateway extension registers
   a script and uses “jquery” as a dependency.
 * `wp_register_script( 'wc_stripe_payment_request', plugins_url( 'assets/js/stripe-
   payment-request' . $suffix . '.js', WC_STRIPE_MAIN_FILE ), array( 'jquery', '
   stripe' ), WC_STRIPE_VERSION, true );`
 * In theory, this is a good idea as it checks to see whether jquery is loaded or
   not. BUT, not all theme developers use the WP version of jquery. Many custom 
   theme developers (and even third-party theme developers) de-register the WP core
   version of jquery and compile their own. This is good practice for custom themes,
   as it saves the overhead of loading jquery as a separate call to the server.
 * So… the problem is that we’re de-registering the WP core version of jquery, and
   your extension is looking for that as a dependency. We HAVE jquery available 
   through our single compiled/minified scripts file, but that doesn’t solve the
   issue of the dependency search.
 * We’d love to see an update to the extension that removes this dependency check,
   or at the very least gives the option via an administrative option. I think this
   would solve a lot of your “fields not showing” headaches here in the support 
   portal.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [duckpindesign](https://wordpress.org/support/users/duckpindesign/)
 * (@duckpindesign)
 * [7 years ago](https://wordpress.org/support/topic/solution-to-broken-checkout-fields/#post-11455779)
 * Temporary fix is to register and enqueue our custom compiled scripts file (including
   jquery in it) named “jquery”
 *     ```
       wp_register_script('jquery', (get_template_directory_uri() . "/assets/scripts/scripts-min.js"),  array(), false ,false);
       wp_enqueue_script('jquery');
       ```
   
 *  [Dat Hoang](https://wordpress.org/support/users/htdat/)
 * (@htdat)
 * [7 years ago](https://wordpress.org/support/topic/solution-to-broken-checkout-fields/#post-11457208)
 * Hi [@duckpindesign](https://wordpress.org/support/users/duckpindesign/),
 * Thanks for your thought and possible fixes as well.
 * Would you mind creating an issue for this on
    [https://github.com/woocommerce/woocommerce-gateway-stripe/issues](https://github.com/woocommerce/woocommerce-gateway-stripe/issues)?
 * Our developers can have a look and discuss it with you directly.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Solution to broken checkout fields’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [missing](https://wordpress.org/support/topic-tag/missing/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dat Hoang](https://wordpress.org/support/users/htdat/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/solution-to-broken-checkout-fields/#post-11457208)
 * Status: resolved