smartsendio / woocommerce

Smart Send module for WooCommerce
GNU General Public License v3.0
0 stars 2 forks source link

Checkout Block compatibility #48

Open bilfeldt opened 4 months ago

bilfeldt commented 4 months ago

WooCommerce har lanceret nyt one step checkout, hvor afhentningssteder ikke umiddelbart vises

✅ This is an issue on new WooCommerce with Checkout Block enabled (new default).

See more here: https://woocommerce.com/document/cart-checkout-blocks-status/#extensibility

Classic Checkout uses these filters:

add_action('woocommerce_after_shipping_rate', array($this, 'display_ss_pickup_points'), 10, 2);
add_action('woocommerce_checkout_process', array($this, 'validate_agent_selected'));
add_action('woocommerce_checkout_order_processed', array($this, 'process_ss_pickup_points'), 10, 2);
add_action('woocommerce_order_details_after_order_table', array($this, 'display_ss_shipping_agent'), 10, 2);
add_action('woocommerce_email_after_order_table', array($this, 'display_ss_shipping_agent'), 10, 2);

On Checkout Block my guess is that the first three actions are not available and we need to find a way around that.

Remember that the plugin must be compatible with both Classical checkout and Checkout Blocks.