Add a flag for types of products or variations to generate/delete

Created on 28 June 2024, about 1 year ago
Updated 1 July 2024, about 1 year ago

Problem/Motivation

I have a few types of products and variations and I would like this tool to be able to only generate specific types of those.

With devel_generate we can use:
drush devel-generate:content 10 --bundles=article
to create 10 articles or even:
drush devel-generate:content 0 --bundles=article --kill
to delete all articles.

I would like to be able to do something similar:
drush devel-generate:commerce --products_num=10 --product-type=car
drush devel-generate:commerce --product_variations_num=10 --product-type=car
or
drush devel-generate:commerce --products_num=0 --product-type=car --kill
drush devel-generate:commerce --product_variations_num=0 --product-type=car --kill
to get rid of only those products etc.

Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom the_g_bomb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024