diff --git a/includes/customizer/class-wc-shop-customizer.php b/includes/customizer/class-wc-shop-customizer.php index cec363b22bc..6631483934e 100644 --- a/includes/customizer/class-wc-shop-customizer.php +++ b/includes/customizer/class-wc-shop-customizer.php @@ -154,8 +154,10 @@ class WC_Shop_Customizer { wp.customize( 'woocommerce_catalog_rows', function( setting ) { setting.bind( function( value ) { - var min = ''; - var max = ''; + var min = parseInt( '', 10 ); + var max = parseInt( '', 10 ); + + value = parseInt( value, 10 ); if ( max && value > max ) { setting.notifications.add( 'max_rows_error', new wp.customize.Notification(