File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,7 @@ protected static function generate_variable_product() {
301301 'name ' => $ name ,
302302 'featured ' => self ::$ faker ->boolean ( 10 ),
303303 'sku ' => sanitize_title ( $ name ) . '- ' . self ::$ faker ->ean8 ,
304+ 'global_unique_id ' => self ::$ faker ->randomElement ( [ self ::$ faker ->ean13 , self ::$ faker ->isbn10 ] ),
304305 'attributes ' => $ attributes ,
305306 'tax_status ' => 'taxable ' ,
306307 'tax_class ' => '' ,
@@ -383,6 +384,7 @@ protected static function generate_simple_product() {
383384 'description ' => self ::$ faker ->paragraphs ( self ::$ faker ->numberBetween ( 1 , 5 ), true ),
384385 'short_description ' => self ::$ faker ->text (),
385386 'sku ' => sanitize_title ( $ name ) . '- ' . self ::$ faker ->ean8 ,
387+ 'global_unique_id ' => self ::$ faker ->randomElement ( [ self ::$ faker ->ean13 , self ::$ faker ->isbn10 ] ),
386388 'regular_price ' => $ price ,
387389 'sale_price ' => $ sale_price ,
388390 'date_on_sale_from ' => '' ,
You can’t perform that action at this time.
0 commit comments