Closed (duplicate)
Project:
Commerce Core
Version:
7.x-1.0-rc3
Component:
Product reference
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2012 at 20:11 UTC
Updated:
22 Jan 2012 at 21:11 UTC
While generating a bulk product, with 5 attributes, and 4 options each, I got the following message :
"Product cannot be longer than 128 characters but is currently 11086 characters long"
With Commerce technique to deal with attributes/options it has to generate a huge amount of product with different SKU.
I am really bad at code, so could anyone lead me to the proper path to solve that,
thank you!
Comments
Comment #1
dufferin commentedcould bypass the problem changing autofill field for a select list, it works and makes the selection way easier when you have a lot of sku.
So still not rocket proof, but a way.
Comment #2
sven.lauer commentedThis is really an issue about the autocomplete widget of the product reference module in commerce core. Moving to the correct queue.
Labeling as a bug, as the widget does not have a setting for controlling the character limit, and also 128 seems prohibitively low in any case.
Comment #3
amateescu commentedActually, commerce_product_reference.module has a maxlength of 2048 (it's in
commerce_product_reference_field_widget_form()). But anything longer than that is completely unusable, so yes, using the select list widget is the best way to go here.Comment #4
sven.lauer commentedIf that is the case, the message should be fixed to indicate the correct character limit (now it is saying the limit is 128).
I opened #1412954: Indicate that autocomplete widget is dispreferred for product reference fields working with bulk creation as a follow up in the bulk creation queue to document that it is generally unwise to use autocomplete fields on content types used with bulk creation.
Comment #5
amateescu commentedWhen I try to exceed the character limit in the autocomplete field provided by commerce core, I get this message:
Product cannot be longer than 2048 characters but is currently 2344 characters long.This can only mean that Bulk Product Creation is overriding the default settings somewhere.
Comment #6
sven.lauer commentedActually, with a current commerce version, the message is correct with BPC, as well (as it should be). I assume that @dufferin used a version that did not have the fix for this.
So moving back to commerce queue and closing as a duplicate of #1115994: Increase product reference autocomplete textfield maxlength from 128 to unlimited.
Comment #7
dufferin commented@sven.lauer
I use rc5.
But definitely, the select list for product display, is the best way to handle the huge amount of skus. It's ordered by the product root title,
Comment #8
amateescu commentedThe documentation issue is #1412954: Indicate that autocomplete widget is dispreferred for product reference fields working with bulk creation. This should remain closed as a duplicate of #1115994: Increase product reference autocomplete textfield maxlength from 128 to unlimited.