Allow to choose one of 3 card billing data handling modes

also handle it in one place, no need to mess with payer parsing and JS
This commit is contained in:
Alex P 2022-07-20 17:28:12 +03:00
parent 1b1091051d
commit 0c17c6b1de
7 changed files with 121 additions and 24 deletions

View file

@ -891,7 +891,6 @@ class SmartButton implements SmartButtonInterface {
'single_product_buttons_enabled' => $this->settings->has( 'button_product_enabled' ) && $this->settings->get( 'button_product_enabled' ),
'mini_cart_buttons_enabled' => $this->settings->has( 'button_mini-cart_enabled' ) && $this->settings->get( 'button_mini-cart_enabled' ),
'basic_checkout_validation_enabled' => $this->basic_checkout_validation_enabled,
'use_form_billing_data_for_cards' => $this->settings->has( 'use_form_billing_data_for_cards' ) && $this->settings->get( 'use_form_billing_data_for_cards' ),
);
if ( $this->style_for_context( 'layout', 'mini-cart' ) !== 'horizontal' ) {