Skip to content

Commit

Permalink
Force enabled the styling per location option
Browse files Browse the repository at this point in the history
  • Loading branch information
Narek13 committed Feb 12, 2025
1 parent 69a9090 commit adf7a22
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions modules/ppcp-compat/src/Settings/StylingSettingsMapHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ class StylingSettingsMapHelper {
public function map(): array {

$mapped_settings = array(
'smart_button_locations' => '',
'pay_later_button_locations' => '',
'disable_funding' => '',
'googlepay_button_enabled' => '',
'applepay_button_enabled' => '',
'smart_button_locations' => '',
'pay_later_button_locations' => '',
'disable_funding' => '',
'googlepay_button_enabled' => '',
'applepay_button_enabled' => '',
'smart_button_enable_styling_per_location' => '',
);

foreach ( $this->locations_map() as $old_location_name => $new_location_name ) {
Expand All @@ -70,6 +71,9 @@ public function mapped_value( string $old_key, array $styling_models ) {
case 'smart_button_locations':
return $this->mapped_smart_button_locations_value( $styling_models );

case 'smart_button_enable_styling_per_location':
return true;

case 'pay_later_button_locations':
return $this->mapped_pay_later_button_locations_value( $styling_models );

Expand Down

0 comments on commit adf7a22

Please sign in to comment.