if i leave the size and/or color attribute un-selected then autosku is adding the fieldname.
teststore-testproductbutoowner3red-red-commerce-productfield_product_size

Comments

RogerRogers’s picture

This is a really annoying problem, but easily fixed, in the commerce_autosku.commerce.inc file change:

$sku = token_replace($settings['pattern'], $data);

to

$sku = token_replace($settings['pattern'], $data, array('clear' => true));

I would add as patch, but I don't know if this is something that the maintainer has intentionally left this way.

rbayliss’s picture

Status: Active » Fixed

I can't think of any reason we should leave non-replaced tokens in the SKU. Fixed. Thanks!

Status: Fixed » Closed (fixed)

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