Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Hi,
is it possible to generate an article number in Woocommerce from the metadata? If so, which field is required?
Thanks and best regards
Michael
Hi,
want to change question: is it possible to extract the original filename and write/use it as sku?
Thanks Michael
I got what I want by adding
$artikelnr = explode ('.', $fname);
ss_update_post_meta($post_id, '_sku', $artikelnr[0]);
after
ss_update_post_meta($post_id, 'ss_media_originalname',$fname);
Best,
Michael
What file and where did you add that code?
Sorry for late response!
You have to add the code in file tools-ftp.php in folder symbiostock-pro. Search for ss_update_post_meta($post_id, ‘ss_media_originalname’,$fname); and add the code above after this line.
Hope it works
Michael
You must be logged in to reply to this topic.