Hide both onboarding radiobuttons when acdc not supported

This commit is contained in:
Alex P 2022-02-18 17:04:34 +02:00
parent c635c616dc
commit b7d2c0fe59

View file

@ -55,8 +55,10 @@ class OnboardingOptionsRenderer {
}
$items[] = '
<li>
<label><input type="radio" id="ppcp-onboarding-dcc-basic" name="ppcp_onboarding_dcc" value="basic" ' . ( ! $is_shop_supports_dcc ? 'checked' : '' ) . '> ' .
<li ' . ( ! $is_shop_supports_dcc ? 'style="display: none;"' : '' ) . '>
<label><input type="radio" id="ppcp-onboarding-dcc-basic" name="ppcp_onboarding_dcc" value="basic" ' .
( ! $is_shop_supports_dcc ? 'checked' : '' ) .
'> ' .
__( 'Standard credit and debit card processing', 'woocommerce-paypal-payments' ) . '
</label>
</li>';