Astra_Elementor_Pro::update_woocommerce_checkout()
Remove actions of WooCommerce for shipping form fields, as it needs only in ‘col-1’.
Description
Case: Theme’s ‘woocommerce_checkout’ action conflicting with Elementor Pro’s checkout widget. On frontend billing + shipping details wrapper comes under col-1 div because of theme’s above action. But in Elementor editor, billing + shipping wrappers comes in two different cols, i.e. col-1 & col-2. Due to this, styling looks inappropriate in editor only.
Return
(void)
Source
File: inc/compatibility/class-astra-elementor-pro.php
public function update_woocommerce_checkout() {
if ( ! apply_filters( 'astra_woo_shop_product_structure_override', false ) ) {
add_action( 'woocommerce_checkout_billing', array( WC()->checkout(), 'checkout_form_shipping' ) );
}
remove_action( 'woocommerce_checkout_shipping', array( WC()->checkout(), 'checkout_form_shipping' ) );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |