Skip to main content

Stitch Payments with Elementor

Stitch does not ship Elementor widgets. It works when Elementor provides layout around standard WooCommerce checkout, because payment fields still render through WooCommerce gateways.

Supported setups​

SetupSupport
Elementor layout on the WooCommerce checkout pageYes
Page with [woocommerce_checkout] shortcodeYes — detected automatically
Elementor Pro WooCommerce checkout widgetYes — detected automatically
WooCommerce Cart/Checkout blocksYes — separate Blocks integration
Custom Elementor forms replacing WC payment fieldsNo

Automatic detection​

Checkout_Context::is_checkout_context() returns true when:

  1. is_checkout() is true
  2. Add-payment-method account screens
  3. Singular pages with [woocommerce_checkout] in post content
  4. Elementor documents containing woocommerce-checkout-page, wc-checkout-page, or a shortcode widget with [woocommerce_checkout]

When detected, Stitch enqueues stitch-payments-gateway CSS and JS on that page.

  1. Use the official WooCommerce checkout page as the checkout endpoint, even if designed in Elementor.
  2. Keep WooCommerce payment methods in the layout — do not replace them with custom form widgets.
  3. Test guest checkout (new card) and logged-in checkout (saved cards, if enabled).
  4. Test both classic shortcode checkout and Blocks if your store uses both.

Custom page slug​

If checkout lives on a page that is not auto-detected:

add_filter( 'stitch_payments_is_checkout_context', function ( $is_context, $gateway ) {
return $is_context || is_page( 'elementor-checkout' );
}, 10, 2 );

Styling​

Elementor global styles may affect checkout spacing. Target Stitch selectors such as #wc-stitch-form and .stitch-payment-header. See Styling.