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

Add new column setting in Product editor

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.
12

Hi,
I would like  to add columns in the product editors, attributes that do not appear in the list of column presets.
A column which corresponds to the serial number of the product and one which corresponds to the purchase price of the product. Both are defined using modules.
How can I do ?
Thanks for your help.

Hello

It depends on how these third party plugins store data.

Most likely this is meta data - https://bulk-editor.com/video#video_1290  AND  https://bulk-editor.com/video#video_3044

By listing all the meta fields via the product ID, I managed to display the column corresponding to the purchase price
but for the other module, the developers ask me if you provide a hook to add custom code to a custom column
Thanks

Hello

Try  to use  this hook - woobe_wrap_field_val

an example - https://pluginus.net/support/topic/add-filter-to-wrap_field_val-method/

Thanks a lot. It's working good !

Hello

Great! welcome;)

Hello,
I come back to this post about a column added thanks to the function proposed here: https://pluginus.net/support/topic/add-filter-to-wrap_field_val-method/

In Bear BULK, it's perfect, the serial numbers of the products are displayed but not in the .csv file of the export: the column is displayed but does not contain any empty data...
Do you have a solution?
Thanks
Have a good day

Hello

Please check your access - https://share.pluginus.net/image/i20241211120206.png

the serial numbers of the products  - You should add this to the table before exporting.

Hi,
My access to what ?... I don't understand the image https://share.pluginus.net/image/i20241211120206.png

I have to add what befor export ?
Thanks

My access to what ?. - In private data you gave access to your site

I have to add what befor export ? - This  field"serial numbers"  to  BEAR table

 

Oups !... I have just updated access and purchase code infos.
Where add field ? Where is BEAR table ?
Thanks

Hello

Please watch these videos:

how  to  add  a meta  field - https://bulk-editor.com/video#video_1290

export - https://bulk-editor.com/video#video_2504

Please update the plugin to latest version - https://bulk-editor.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Hi Pablo,
So, plugin is updated.
Data of fiel serail number are yet not displayed in export file
I don't understand why...
thanks

Hello

https://share.pluginus.net/image/i20241213111424.png  - The problem might be that you're storing it as HTML code.

Can this field contain a simple string?

I understand, but how it's possible to modify that code in a simple string ?
But in that case, it's important that all number be displayed in a readable manner (one below the other or separated by commas)
Thanks for your help

Ok! I checked this field again. It looks like a custom function generates this field and in fact this meta field is empty.

I just added a space in the field and saved it. Result:  https://share.pluginus.net/image/i20241213133542.png

Yes, I had followed instructions of batch numbers' module developpers
and soI add this snippet code :

 

add_filter( 'woobe_wrap_field_val', function( $res, $post, $field_key, $product_type ) {
if ( 'product_batch_numbers' === $field_key && function_exists( 'WPO_WCPBN' ) && isset( $post['ID'] ) ) {
ob_start();
WPO_WCPBN()->classes['product_listing']->populate_batch_column( $field_key, absint( $post['ID'] ) );
$res = ob_get_clean();
}
return $res;
}, 10, 4 );

Hello

ok! But in fact, this field in the database is empty.

Hello,
Well yes, the serial numbers are in the database.
Have a look at the Bear Bulk screenshot : https://ibb.co/VmJxmFw
Thanks

12