Following to #1184160: commerce_devel_generate should offer to create product reference nodes, we have to adapt the actual drush integration to add this functionnality.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | commerce_devel_generate-1509798-10.patch | 2.05 KB | mglaman |
| #5 | commerce_devel_generate-1509798-5.patch | 2.26 KB | discipolo |
Comments
Comment #1
hazaHere is a patch that adds a way to generate products display with drush.
You need to adds a --display arguments with a comma separated list of node types that you want to generate.
Comment #1.0
hazaMessage update
Comment #2
discipolo commentedit doesnt look like this references the generated products on the generated displays yet correct?
Comment #3
MarieKirya commentedI was able to use a variation of that patch. I needed currency and max and min.
$ drush genp 50 --display="product_display" --currency_code="USD" --min_price="0" --max_price="50000"Comment #4
MarieKirya commentedMy bad, the patch I put out had an improper file name. Updated.
Comment #5
discipolo commenteddrush wont apply #4 cause the patch was made from docroot: docroot/sites/all/modules/contrib/commerce_devel/commerce_devel_generate/commerce_devel_generate.drush.inc: No such file or directory
Comment #6
discipolo commentedoh and thanks! it works
Comment #7
nvahalik commentedComment #8
joelpittetSeems very useful to add these, though it doesn't seem to be taking
drush genp 1 --display="product_display" --currency_code="CAD" --min_price="0" --max_price="50"The price was 400, the currency was USD (and I enabled CAD). I've got no idea if the product_display is working.
nit: comma at end of line.
indent one back ad default is NULL so don't need to add second arg.
These two values aren't taking...
Comment #9
joelpittetComment #10
mglamanChanges are and there, like the following.
This will delete all ndoes. Bad.
Needs an array filter for checking if anything empty
Comment #11
mglaman