Hide Fastlane settings for non-US based merchants

This commit is contained in:
Daniel Dudzic 2024-04-29 15:42:54 +02:00
parent 5f9f94cef0
commit b88d97a384
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 45 additions and 43 deletions

View file

@ -369,6 +369,12 @@ $data_rows_html
) {
continue;
}
if (
in_array( 'axo', $config['requirements'], true )
&& $this->api_shop_country !== 'US'
) {
continue;
}
$value = $this->settings->has( $field ) ? $this->settings->get( $field ) : ( isset( $config['value'] ) ? $config['value']() : null );
$key = 'ppcp[' . $field . ']';
$id = 'ppcp-' . $field;