Skip to content

Commit 098a792

Browse files
authored
Merge pull request #3605 from woocommerce/PCP-5173-for-variable-product-without-price-pay-pal-buttons-are-visible
fix: check variation stock for all variable products (5173)
2 parents c54fe33 + 7cf0939 commit 098a792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ppcp-button/src/Assets/SmartButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ protected function product_supports_payment( WC_Product $product ): bool {
19291929

19301930
$in_stock = $product->is_in_stock();
19311931

1932-
if ( ! $in_stock && $product->is_type( 'variable' ) ) {
1932+
if ( $product->is_type( 'variable' ) ) {
19331933
/**
19341934
* The method is defined in WC_Product_Variable class.
19351935
*

0 commit comments

Comments
 (0)