Viewing 5 posts - 1 through 5 (of 5 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

    #41164
    Profile photo of Greg
    Greg
    Participant

    What file and where did you add that code?

    #41173
    Profile photo of Michael
    Michael
    Participant

    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

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

You must be logged in to reply to this topic.