Recently I had to upload a large number of commerce products with an already defined sku pattern. Commerce BPC offered sku generation but did not allow access to any singular tokens, only combinations.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

swim’s picture

Please find a patch attached.

Cheers,

rbayliss’s picture

I'm not sure I understand exactly what this patch is for. You want Autosku to handle the sku generation instead of Commerce BPC?

swim’s picture

Yes. Commerce BPC did not allow for fine grain picking of token values. Maybe it's too specific to my use case but I needed to use term descriptions & other odd token combinations. Not sure if this is actually helpful to other projects... It was a bespoke client request.

aquaphenix’s picture

Has this patch been added to dev? I have tried to apply the patch and it doesn't work. I want to build the complete SKU from various taxonomies assign to a product type. I have 3 taxonomies that complete the SKU and I am unable to use them with BPC.

techn0guy’s picture

aquaphenix Have you ever found an answer to your problem? I am in the same boat as you.

JosRuiz’s picture

Issue summary: View changes

I am interested in this patch, but it is not working. Is there a fix for it?

swim’s picture

Re-rolled patch.

Please try the most recently attached, hope it helps.

  • rbayliss committed 3118f68 on 7.x-1.x authored by swim
    Issue #1925850 by swim: Added Allow for Commerce BPC support.
    
rbayliss’s picture

Status: Active » Fixed

Sorry for the delay - patch applies and appears to work. Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.