Support » Plugin: Media Library Assistant » Woocommerce product category

  • Resolved vnp_nl

    (@vnp_nl)


    Using woo commerce.
    In settings, general, taxonomy I select ‘list filter’ for product category.

    In library assistent I can now select product category for filtering.
    Default ‘all product categories’ is selected and all product images are shown.

    However, when I hit the filter button for a single category, the resulting list is empty.
    Am I missing a step here?

    https://wordpress.org/plugins/media-library-assistant/

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

    (@dglingren)

    Thanks for your question.

    I am traveling and away from my test system, so I am answering from memory. I believe the missing step is assigning terms from the “product category” taxonomy to your Media Library items.

    As I recall, WooCommerce assigns terms to its “product” post type objects. WooCommerce associates images with products using its own database entries, but doesn’t actually assign terms to the images themselves. Does that make sense?

    You could use Quick Edit, Bulk Edit or the Media/Edit Media screen to assign terms, but it wouldn’t automatically synchronize with how the images are used in WooCommerce products.

    It should be possible to write some code that copies the term assignments to the Media Library items. When I return home after 9/25 I could look into it.

    I am marking this topic resolved, but please update it if you have other questions or want to pursue a solution that assigns terms to Media Library items based on their use in WooCommerce. Any additional information you can provide would be helpful.

    martin

    (@martinvmartin)

    *bump*

    hi Dave – having the same issue of wanting to sort images by product category but the woocommerce taxonomy not being assigned to the images. I see all my product categories in the dropdown but they all say 0 images. Did you figure out a solution for this?

    Thanks!

    • This reply was modified 7 years, 6 months ago by martin.
    Plugin Author David Lingren

    (@dglingren)

    @martin,

    Thanks for your vote to pursue this topic. As I wrote in my first post, it is possible to develop some code that copies product category and/or product tag term assignments from the product to the items associated with the Product Image and Product Gallery for that item.

    I can modify the existing “Woo Fixit” example plugin with new tools that perform the copy operation(s) when you click on the appropriate action in the plugin. Note that this approach will not automatically keep the term assignments in sync when changes are made in the Product items; it will only work on a batch basis.

    You would also have to go to the Settings/Media Library Assistant General tab and check the “Support” box for the Product Categories and/or Product Tags taxonomies. It looks like you have already done that; right?

    If you agree that the above approach would be useful I can work on this solution and post an update here when I have progress to report. I look forward to hearing from you.

    martin

    (@martinvmartin)

    hi David – thanks for the reply.

    Yes. As you can see, i have over 3000 products and would very much like to be able to sort the media library by product category.

    null

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your patience while I developed the first version of a solution for your application.

    I have developed a new version of the “WooCommerce Fixit” example plugin that adds two “Term Assignments for Media Library Items” tools to clear/copy product category and/or product tag term assignments from products to the items used as the product image or in the product gallery.

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

    Shortcode not working in (special) widget

    After you install the Development Version you can easily install the example plugin. Navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. You will see a submenu that lists all the example plugins and give you a “one-click” action for installing them.

    You are looking for “WooCommerce Fixit” plugin. Find that plugin and hover over the title in the left-most column. Click the “Install” rollover action, then go to the standard WordPress Plugins/Installed Plugins submenu and activate it.

    Once the plugin is active you can go to the Tools/Woo Fixit submenu to access the tools. The new tools are at the bottom of the Tools/Woo Fixit screen. You can use the “First Product” and “Last Product” text boxes at the top of the screen to restrict operation of the tools to one or a few products for testing purposes. If you have memory or elapsed time issues running the tools on large numbers of products you can break up the processing with these controls, too.

    You might also be interested in the “Where-used” tool in the “Operations on the Featured Image and Product Gallery” section. After you have run the “Where-used” operation at least once, go to the Settings/Media Library Assistant Custom Fields tab and define a new rule to display the results. Scroll down to the “Add a new Mapping Rule” section and select “Woo Used In” from the dropdown control. Check the “MLA Column” and “Quick Edit” boxes, then click “Add Rule”. You can then see the results in the Media/Assistant submenu table.

    The Development Version also has a completely re-written Settings/Media Library Assistant Shortcodes tab with a more WordPress-like interface. If you use custom [mla_gallery] templates, I welcome any feedback you have on the new implementation.

    I will leave this topic unresolved until the updated example plugin goes out in the next MLA version. Let me know if you have any problems or further questions regarding the new tools.

    Plugin Author David Lingren

    (@dglingren)

    Martin,

    You may need to open a new topic to continue this dialog. This topic is a year old and may be closed to new replies…

    martin

    (@martinvmartin)

    hi David – a busy week on other projects, but wanted to thank you for working on this. i’m certain it will be a big help to many folks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce product category’ is closed to new replies.