Merge pull request #3594 from woocommerce/PCP-4491-bcdc-item-does-not-persist-when-saving-vietnam-also-does-not-show-for-mexico

Use `is_acdc_enabled()` to prevent ACDC interference with BCDC in non-ACDC countries (4491)
This commit is contained in:
Emili Castells 2025-08-18 17:18:21 +02:00 committed by GitHub
commit f1433f94e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -649,7 +649,7 @@ class WCGatewayModule implements ServiceModule, ExtendingModule, ExecutableModul
$standard_card_button = get_option( 'woocommerce_ppcp-card-button-gateway_settings' );
if ( $dcc_configuration->is_enabled() && isset( $standard_card_button['enabled'] ) ) {
if ( $dcc_configuration->is_acdc_enabled() && isset( $standard_card_button['enabled'] ) ) {
$standard_card_button['enabled'] = 'no';
update_option( 'woocommerce_ppcp-card-button-gateway_settings', $standard_card_button );
}