Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27894
    #28579
    Profile photo of Chrisroll
    Chrisroll
    Participant

    Finally found a solution :

    Edit “symbiostock-pro/tools-ftp.php” file

    replace if ($value) ss_update_post_meta($postid, ‘ss_exif_’.$value, $metadata->$value);

    by          if ($value) ss_update_post_meta($postid, ‘_sku’, $metadata->$value);

    PS: you’ll need to re-edit this php file after each Symbiostock upgrade…

    It would be nice if we could choose the name of the field updated by Extra metadata in Symbiostock media settings.
    Could this be implemented in a future Symbiostock version ?

     

    #28585
    Profile photo of Robin
    Robin
    Keymaster

    Hey Chris – sorry I missed this post from earlier.

    The problem with your code is if you have more than one extra exif field, it will always put the last one read as the SKU field, which is definitely what you don’t want. Here is code I have added to the core that will be in the next release – you can implement it manually:

    foreach ($fields as $key => $value) {

    if ($value) ss_update_post_meta($postid, ‘ss_exif_’.$value, $metadata->$value);

    do_action(“ss_read_extra_exif_end”,$postid,$value,$metadata->$value);

    }

    Then in your theme’s functions.php add this:

    add_action(‘ss_read_extra_exif_end’,’_my_custom_function_writeskufield’,10,3);

    function _my_custom_function_writeskufield($postid,$fieldname,$value) {

    if ($fieldname == “Software”) ss_update_post_meta($postid, ‘_sku’, $value);

    }

    Try it out and let me know.

    #28586
    Profile photo of Robin
    Robin
    Keymaster

    Most importantly once implemented upgrades won’t affect the functionality.

    #28587
    Profile photo of Chrisroll
    Chrisroll
    Participant

    Thanks a lot Robin !

    I will try and let you know 😉

    #28588
    Profile photo of Chrisroll
    Chrisroll
    Participant

    It’s perfect, Robin !

    Ive added four extra metadata to specific Exif fields with Exiftool and used also supplementalCategories to directly assign categories to my products.

    Here is my workflow:

    I use a LibreOffice Calc file as template for my fonts images indexation.
    All I need to do in this file is to enter Category, SKU, and informations related to font texture, font color and font matter.
    Formulas in my calc sheet use these informations to generate automatically for each letter and signs :

    – An appropriate and unique Yoast focus Keywords.
    – A SEO friendly product Title and product description optimized for this focus Keyword.
    – Related product tags.

    When required informations are filled, a Calc macro execute the following actions :

    – Generation of ExifTool-indexation.csv file which will be used on my computer by ExifTool to process images.
    – Generation of Exiftool.bat command file which will be launched by the macro to fill Exif fields on my images with the following command :

    c:\windows\exiftool -csv=”s:\Indexation\131-Seychelles-letter\ExifTool-indexation.csv” . -overwrite_original

    When all images are processed (in less than 10 secondes), I can now upload them on my website where all required product informations will be collected by symbiostock.

    A complete alphabet of 67 letters, numbers and signs is now indexed, optimized for SEO and uploaded in less than 15 minutes.

    Thanks a lot Robin, you saved my life !

     

     

     

     

     

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

You must be logged in to reply to this topic.