Skip to content

Commit 989f7d2

Browse files
committed
Fix compatibility with WooCommerce < 2.4
1 parent 66b3cef commit 989f7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/templates/widgets/product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/** @var WC_Product $product */
1414
global $product;
1515

16-
switch ( $product->get_type() ) {
16+
switch ( $product->product_type ) {
1717
case 'variable':
1818
$price_selector = $aplazame->settings['price_variable_product_selector'];
1919
break;

0 commit comments

Comments
 (0)