Here is the issue I am having with the Commerce_BPC (Bulk Product Creation) module installed atop the Drupal Commerce Kickstart Distribution. (A report of all installed modules with/version#'s is available, if requested). All modules on the site are up to date as of this writing.
We are an outdoor sign company and we sell decals, lettering kits, signs and markers among other things. All totaled, we have over 11,000+ product SKU#'s. Many of these product SKU's are just "variations" of a main product, thus the need arose for a faster way to get these entered into the site.
When I first installed it, the module seemed to work just fine. I created a new product type called 'Product U-Channel', added two fields: 'field_height', and 'field_color1' to be used as the variable options within the SKU#. Both of these new fields were setup as a List(text) (Select list widget) and subsequently assigned the allowed keys|labels). There were 4 variations for height, and 3 for color.
I then tested it out by using the associated link to create_bulk_product of this type, entered the info into the bulk product form, submitted it and it created the proper products as expected. I went ahead and used the same method to bulk-create similar products that were of that product type. All was fine.
After that, I created another needed Product Type: Product_decal_letters which also uses two fields to build its final SKU# also: 'field_singchar' the actual alphanumeric letter(0-9,A-Z) it represents followed by; 'field_color1' the color desired. When I proceeded to the actual creation form, I noticed it was ordering the options within the sku in the wrong order. so I located the configuration screen that lets you specify the order in which they appear (using tokens). After submitting the form, I got some very odd SKUs... Everytime the single character was supposed to be 0|Number 0, it was instead using the name of the TOKEN (i.e, "bulk_product:field_singchar-value" as THAT part of the SKU!
Marching onward, I manually corrected the messed up SKU #'s and afterwards created a Product Display Node for these newly created products
except when I go to view this product display node, I get 3 errors (see attached) and no display.
| Comment | File | Size | Author |
|---|---|---|---|
| Error screen.png | 53.78 KB | xeaudesign |
Comments
Comment #1
sven.lauer commentedFor the record: #1598972: Errors upon submitting form to bulk create products contains more information on this issue, including additional screenshot.
It also made me understand that the problem is not generally with the "singchar" field, but only with the option "0"---there probably is a check for an empty value that is not done properly. I will investigate.
Not sure if the display-node error is related, though ...
Comment #2
xeaudesign commentedAny progress on this issue? You mentioned that you were going to investigate it... (I am still having the same problem with it) Thanks! I appreciate it :)