diff --git a/includes/Generator/Product.php b/includes/Generator/Product.php index 939262d..90a462f 100644 --- a/includes/Generator/Product.php +++ b/includes/Generator/Product.php @@ -303,7 +303,7 @@ protected static function generate_variable_product() { 'sku' => sanitize_title( $name ) . '-' . self::$faker->ean8, 'global_unique_id' => self::$faker->randomElement( [ self::$faker->ean13, self::$faker->isbn10 ] ), 'attributes' => $attributes, - 'tax_status' => 'taxable', + 'tax_status' => self::$faker->randomElement( [ 'taxable', 'shipping', 'none' ] ), 'tax_class' => '', 'manage_stock' => $will_manage_stock, 'stock_quantity' => $will_manage_stock ? self::$faker->numberBetween( -100, 100 ) : null, @@ -339,7 +339,7 @@ protected static function generate_variable_product() { 'sale_price' => $sale_price, 'date_on_sale_from' => '', 'date_on_sale_to' => self::$faker->iso8601( date( 'c', strtotime( '+1 month' ) ) ), - 'tax_status' => 'taxable', + 'tax_status' => self::$faker->randomElement( [ 'taxable', 'shipping', 'none' ] ), 'tax_class' => '', 'manage_stock' => $will_manage_stock, 'stock_quantity' => $will_manage_stock ? self::$faker->numberBetween( -20, 100 ) : null, @@ -390,7 +390,7 @@ protected static function generate_simple_product() { 'date_on_sale_from' => '', 'date_on_sale_to' => self::$faker->iso8601( date( 'c', strtotime( '+1 month' ) ) ), 'total_sales' => self::$faker->numberBetween( 0, 10000 ), - 'tax_status' => 'taxable', + 'tax_status' => self::$faker->randomElement( [ 'taxable', 'shipping', 'none' ] ), 'tax_class' => '', 'manage_stock' => $will_manage_stock, 'stock_quantity' => $will_manage_stock ? self::$faker->numberBetween( -100, 100 ) : null,