Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38772
    Profile photo of Michael
    Michael
    Participant

    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

    #38780
    Profile photo of Michael
    Michael
    Participant

    Hi,
    want to change question: is it possible to extract the original filename and write/use it as sku?

    Thanks Michael

    #38834
    Profile photo of Michael
    Michael
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.