Force enabled the styling per location option

This commit is contained in:
Narek Zakarian 2025-02-12 18:45:34 +04:00
parent 69a9090e4e
commit adf7a22301
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -40,11 +40,12 @@ class StylingSettingsMapHelper {
public function map(): array { public function map(): array {
$mapped_settings = array( $mapped_settings = array(
'smart_button_locations' => '', 'smart_button_locations' => '',
'pay_later_button_locations' => '', 'pay_later_button_locations' => '',
'disable_funding' => '', 'disable_funding' => '',
'googlepay_button_enabled' => '', 'googlepay_button_enabled' => '',
'applepay_button_enabled' => '', 'applepay_button_enabled' => '',
'smart_button_enable_styling_per_location' => '',
); );
foreach ( $this->locations_map() as $old_location_name => $new_location_name ) { foreach ( $this->locations_map() as $old_location_name => $new_location_name ) {
@ -70,6 +71,9 @@ class StylingSettingsMapHelper {
case 'smart_button_locations': case 'smart_button_locations':
return $this->mapped_smart_button_locations_value( $styling_models ); return $this->mapped_smart_button_locations_value( $styling_models );
case 'smart_button_enable_styling_per_location':
return true;
case 'pay_later_button_locations': case 'pay_later_button_locations':
return $this->mapped_pay_later_button_locations_value( $styling_models ); return $this->mapped_pay_later_button_locations_value( $styling_models );