• Resolved bueyfx

    (@bueyfx)


    Hi David! I’m really impressed with your plugin and your responsiveness. I was looking for examples and tried to do it myself but I didnt find the solution.

    I want to regenerate all those ALT TEXT that are empty, with the “Title of the product to which the image is associated” + “The category of that product” + a special word.

    I found this post: https://wordpress.org/support/topic/batch-edit-alt-tag-with-filename/ which is similar to what I want, but I do not know how to link the product name.

    Thank you in advance.
    Francisco

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thank you for your kind words regarding the plugin and its support and for your question. Thanks as well for taking the time to search the forum and find a topic with a similar goal.

    You wrote “ the “Title of the product to which the image is associated” + “The category of that product” + a special word.” I understand that to mean that you are using WooCommerce and want to modify the “Product Image” and/or “Product Gallery Images” for your WooCommerce products. Is that right?

    WooCommerce has generated several support topics and inspired an MLA example plugin, “WooCommerce Fixit”. For example, here are two earlier support topics:

    Maping Image ALT Tags to Product Meta Title

    Woocommerce product tags?

    If you install and activate the latest version of the WooCommerce Fixit plugin you will see many “tools”. The tools in the “Apply Template to Product Image/Product Gallery Images” section are close to what you need, but you still must find a way to access the Title and Category of the product with which the image is associated.

    As I considered your request it occurred to me that adding some additional data substitution parameters to access the product data would make your solution possible and be a good enhancement to the example plugin. If you are, in fact, using WooCommerce and this would work for you, let me know and I will see what I can do.

    Thanks for an interesting idea and for your interest in the plugin.

    Thread Starter bueyfx

    (@bueyfx)

    Thanks a lot BIG David, your support is from other planet 🙂

    Exactly, you had understanding perfectly: I am using WooCommerce, now I installed developed version of MLA and get the ‘Woocommerce Fixit’ and ‘MLA Substitution Parameter Hooks Example’ from https://wordpress.org/support/topic/maping-image-alt-tags-to-product-meta-title/

    I guess now I need to apply a template with “Title of the product + Product Category + Special word”, can you do something? I feels like unlettered at your side.

    Thanks a lot again

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and especially for your positive review of MLA. Good reviews and positive feedback are great motivations to keep working on the plugin and supporting its users.

    Thanks for confirming you use of WooCommerce and for taking the time to install the Development Version and the example plugin. As I wrote earlier, I will need to do a bit of development before you can apply your new template. I will post an update here as soon as I have progress to report.

    Thread Starter bueyfx

    (@bueyfx)

    Sounds Cool! I also want to apply this template to the “Title of de Image”, not only the “ALT text”…. this would be great.

    Thanks a TON again

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your patience while I worked out a solution that should help your application.

    I have added “product:” and “product_terms:” custom substitution prefix values to give you access to the WooCommerce Product values associated with Media Library items. They can be used in mapping rules, Bulk Edit templates and [mla_gallery] shortcodes.

    You wrote “the “Title of the product to which the image is associated” + “The category of that product” + a special word.” With the new prefix values you can code something like:

    
    [+template:([+product:post_title+]( - [+product_terms:product_cat,single+]) - special word)+]
    

    I have uploaded a new MLA Development Version dated 20170309 that contains an updated WooCommerce Fixit example plugin. To get the Development Version, follow the instructions in this earlier topic:

    Shortcode not working in (special) widget

    Once the Development Version is installed, navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “fixit” in the text box and click “Search Plugins” to filter the table.

    You are looking for “WooCommerce Fixit” example plugin. Find that plugin and hover over the title in the left-most column. Click the “Install” (or “Update”) rollover action, then go to the WordPress Plugins/Installed Plugins submenu and activate the example plugin as you would any other plugin.

    Note that I added the new prefix values to the WooCommerce Fixit plugin, so you do not need the ‘MLA Substitution Parameter Hooks Example’ plugin unless you are using another feature of that plugin.

    It would be great if you can install the Development Version and updated example plugin and let me know how they work for you. Thanks for inspiring an MLA example plugin enhancement.

    Thread Starter bueyfx

    (@bueyfx)

    Thanks again David.

    This is not working fine for me, the both:

    _fill_alt_text_ct() performed 0 delete(s), 0 inserts(s).
    _replace_alt_text_ct() performed 0 delete(s), 0 inserts(s).

    Is not updating the current product images.

    I followed the next steps:

    1. In “Operations on Product Image/Product Gallery Images” I clicked in “Clear ALT text”
    2. In “Apply Template to Product Image/Product Gallery Images” I filled the form with “[+template:([+product:post_title+]( – [+product_terms:product_cat,single+]) – sex shop)+]”
    3. I clicked in “Fill ALT Text (CT)” and then “Replace ALT Text (CT)”

    What I doing wrong?

    Thanks a lot again 🙂

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for the details of the template and steps to apply it.

    I copied your template into my test system and it is working there, although you can remove the template: portion and simply enter:

    
    ([+product:post_title+]( – [+product_terms:product_cat,single+]) – sex shop)
    

    The simplest explanation I can think of is that the new WooCommerce Fixit tool has not been installed and activated. When you go to the Tools/Woo Fixit submenu page, do you see “WooCommerce Fixit Tools v2.00” as the page title? If you have a version number less than 2.00, you have not installed the latest version of the example plugin.

    Let me know if you are running the latest Woo Fixit version so I can investigate further. Thanks!

    Thread Starter bueyfx

    (@bueyfx)

    You are right, I am using “WooCommerce Fixit Tools v1.27”, I think I downloaded the last stable version (not developed version) 🙁

    Now is working good, you are a really CRACK

    The topic is resolved 🙂

    Anyway, I want to ask the last question: Can I replicate the category tree? Example – Category -> Subcategory?

    Thanks a ton!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news regarding the custom prefix enhancement. I am marking this topic resolved.

    You asked “Can I replicate the category tree?” I will think about adding a “path” format code to the product_terms: prefix. When you assign “Subcategory” to an item do you also assign “Category”? If so, do you want the display to look like “Category,Category->Subcategory” or just “Category->Subcategory”? Do you assign an item to more than one Subcategory within a Category? If so, how should that look?

    I will work something out in any case, but I can consider any preferences you have. Thanks for an interesting enhancement idea.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Regenerate Bulk “ALT TEXT” with “Product Name + Product Category + Keyword”’ is closed to new replies.