hey
please provide a manual skuy override/checkbox.

thanks! great work

Comments

Sean-Khan’s picture

I'd also have use for such! Especially good it would be if you could specify formula to add a prefix even to the manual SKU, I'd need uid for example.

nikit’s picture

Version: 7.x-1.x-dev » 7.x-1.0
Status: Needs review » Active

Subscribing, this is required feature.
Sometime client want to assign SKU manually, sometime not.

--------------------------

I have add this feature as patch, see bottom comment,

rasmusth’s picture

Priority: Normal » Critical

Indeed this is crucial. I have two clients at the moment who needs this feature.
Please prioritize.

jdln’s picture

+1

CSoft’s picture

+1!

pavantar’s picture

+1

khumbu’s picture

Status: Active » Needs review

Came across this issue myself and here is...

the solution http://yoursite.com/admin/commerce/config/product-variation-types/bags-c...

Home -> Administration -> Configuration -> Product variation types -> Bags & Cases (edit) and you can disable the auto sku

greets

K.

patoshi’s picture

your site doesnt work and are you a bot? spam?

khumbu’s picture

uh...Nope....the url is just the path of the location to the menu of your own site (replace your 'own site' by your own domain).....that is why the url states yoursite to make it more clear.....

Greets,

K.

ps: just trying to help...

nikit’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
StatusFileSize
new2.92 KB

Please test anyone this patch that allow manual sku. In product type settings expand Advanced and choose next states:

  • Disabled - manual SKU isn't allowed.
  • Allow - manual SKU allowed and SKU field always empty. If you leave it empty, auto-sku will work.
  • Allow and pre-calculate - manual SKU allowed and SKU try calculate from presave - result of calcs aren't guarantied your wishes :). If you leave it empty, auto-sku will work.
nikit’s picture

StatusFileSize
new2.95 KB

Sorry for previous, one warning fixed.

Status: Active » Needs review
angheloko’s picture

Issue summary: View changes

Also needed similar function. Tried the patch and it works. But the problem is that, if you are using IEF, the settings provided by this patch will not affect the SKU field in the inline form. To alter the inline entity form for Commerce Products, you can use hook_inline_entity_form_entity_form_alter and a similar code below:

  if ($entity_form['#entity_type'] == 'commerce_product') {
    $product = $entity_form['#entity'];

    if ($settings = commerce_autosku_get_settings($product)) {
      if (isset($settings['advanced']['allow_manual']) && ($settings['advanced']['allow_manual'] > 0)) {
        // Ensure that the field is enabled.
        $entity_form['sku']['#disabled'] = FALSE;
      }
    }
  }

The last submitted patch, 10: autosku_manual20130526_1007.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 11: autosku_manual20130526_1030.patch, failed testing.

Adeptos_da_tecnologia’s picture

@Khumbu TKS!!

francescoq’s picture

Hi, thanks for the patch! Works fine for me (but i've not tested the pre-calculate part), i've added the part for inline entity form, thanks angheloko!
Everything seems working well now for me.

francescoq’s picture

I forgot.. the patch was created against the last dev, not the last stable...

wheelercreek’s picture

Yeah we just launched our store, and I can't find a way to change a SKU.. we're using 7x-1.11

wheelercreek’s picture

Oh - actually I guess I can just turn off auto-sku, edit the sku, and then turn it back on.

Just make sure in the Auto Sku configuration you click to "Advanced" and then uncheck the box that says "auto-generate sku every time the product is saved".. that would be bad.

Andre-B’s picture

still missing this feature