PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Custom meta field shown as gallery filters out non-images

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I would like to easily attach pdf files to products and show them on product page by custom functions. For this purpose, a good solution would be a custom meta field shown as gallery in BEAR. But if I want to add files, only images are shown in media library. Is there a filter, which excludes non-image files? Can I override is somehow?

Thank you

Hello,

I found a temporary solution, I commented out line 2258 of /assets/js/data-tables.js file, which created the filter for image files. Now all attachments appear on media selector.

However it is not perfect, because even the attachement id is saved in the array, at reopening, it does not appear.

Hello

Unfortunately the plugin does not have this feature.

You can change the gallery display here -  plugins\woocommerce-bulk-editor\views\elements\draw_gallery_popup_editor_btn.php

That is perfect, I could modify it to display a custom icon for PDF files.

Thank you for the tip!

Great!  Welcome;)