Hello,
I've created many products with an auto generated SKU based on this pattern
$mystring = '[author-uid] '; return str_pad($mystring, 5, "0", STR_PAD_LEFT);
$mystring2 = '[nid] '; return str_pad($mystring2, 5, "0", STR_PAD_LEFT);
The Sku never changes and is always 001 for every product...
Thanks,
Comments
Comment #1
stefan.r commentedI cannot reproduce this in 6.x-1.9 nor in 6.x or 7.x dev. Your snippets work fine there, so assuming this is not a bug but a misconfiguration or a misunderstanding about how the token module or the auto SKU generation works.
Marking closed as this is 3 years old, @bumathan if you are still struggling with this feel free to follow up.