Skip to content

関連商品のダミーデータ生成コマンドを追加#81

Open
nanasess wants to merge 1 commit into
EC-CUBE:4.0from
nanasess:fixtures-generate
Open

関連商品のダミーデータ生成コマンドを追加#81
nanasess wants to merge 1 commit into
EC-CUBE:4.0from
nanasess:fixtures-generate

Conversation

@nanasess
Copy link
Copy Markdown
Contributor

@nanasess nanasess commented Aug 16, 2021

bin/console eccube:plugin:relatedproduct4:fixtures:generate で関連商品のダミーデータ生成が可能なコマンドを追加

## 各商品に対して関連商品を5個ずつ登録する(デフォルト2個, max=related_product.max_item_count)
bin/console eccube:plugin:relatedproduct4:fixtures:generate  --relatedproducts=5
## 10商品に対して関連商品を登録する(デフォルト全商品)
bin/console eccube:plugin:relatedproduct4:fixtures:generate  --max-products=10

このコマンドを実行する際は、既に登録されている関連商品は削除されます

@okazy okazy modified the milestones: 4.1, 4.0.x Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants