Active
Project:
Commerce Bulk Product Creation
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2011 at 23:38 UTC
Updated:
18 Aug 2015 at 21:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sven.lauer commentedWait---if you want to change what is put in the TITLE, you need to change the "Separator for combination field labels in titles" (this is the one that defaults to a comma, so I THINK this is what you want to do?)
With respect to the token-ordering issue, I see you have found #1265258: Obey field order in bulk_defaults:combination_labels token, where this has been reported already.
Comment #2
sven.lauer commentedComment #3
sven.lauer commentedSeeing as this looks a LOT like a misunderstanding of the fields, and I haven't heard back, I am closing this as Works as Designed.
Comment #4
nelslynn commentedThis is now an issue with 7.x-2.x-dev version, along with other issues:
- When a SKU pattern of: [bulk_defaults:entered_sku]-[bulk_defaults:combination_values] is selected, you get a SKU such as: VTRK-27-3-6-8. The numbers after the VTRK are the tids (Taxonomy IDs), not values.
- Then when you select a pattern of: [bulk_defaults:entered_sku]-[bulk_defaults:combination_labels], no matter what you select for a separator, you get a comma (as this issue indicate above). Plus you get taxonomy Values, not labels. See screenshot
Comment #5
dpico commented@nelslynn, the behaviour you refer in #4 is exactly what I get. I'm using rc6.
Did anyone find a solution for this? Both issues you describe are a problem for happily using commerce BPC.
Cheers
Comment #6
Infinitee commentednelslynn and dpico are correct, commas in SKU are not conducive to a proper SKU value. If you have commas in an SKU of a Drupal commerce product that has multiple attributes and attempt to add that product to cart before changing the attribute options the attempt fails and you get an error message:
Product SKU Love-Gun-8.5x11-25.00 does not exist.
The comma and any white space for that matter should be stripped and validated before bulk creation.
Anybody know how to fix this?
Comment #7
Infinitee commentedHow to auto BPC SKU Patterns without commas....
To not , have commas applied to Drupal commerce BPC SKUs, on the admin/commerce/config/commerce_bpc page, patterns tab, set both of the separator patterns to something other than a comma.
Store > configuration > Bulk product creation > Display node settings
Comment #8
geekgirlcoding commentedOn commerce_bpc.module, change from
$new_product->sku = token_replace($extras['sku_pattern'], $data, array('sanitize' => FALSE));To: