mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Support grouped layout of sub mode plugin
This commit is contained in:
parent
4bd39c9f95
commit
d5f54abd94
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ class SingleProductBootstap {
|
||||||
|
|
||||||
isSubscriptionMode() {
|
isSubscriptionMode() {
|
||||||
// Check "All products for subscriptions" plugin.
|
// Check "All products for subscriptions" plugin.
|
||||||
return document.querySelector('.wcsatt-options-product .subscription-option input[type="radio"]:checked') !== null;
|
return document.querySelector('.wcsatt-options-product:not(.wcsatt-options-product--hidden) .subscription-option input[type="radio"]:checked') !== null
|
||||||
|
|| document.querySelector('.wcsatt-options-prompt-label-subscription input[type="radio"]:checked') !== null; // grouped
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue