Welcome to our Support Portal › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Multiple Meta Functionality
Tagged: multi meta
January 25, 2019 at 1:01 pm #10485
Hi, I can add multiple metas to individual products by editing the product and checking the meta check box. Good but sloooowwww.
I can also “Attach to Products” on the Manager page, which is great for adding bulk options. That is fast.
The problem is that the “Attach to Products” overwrites all of the multiple metas and only lets you assign a single meta.
So in the wp_postmeta table the products page functionality sets _product_meta_id to say:
“Attach to Products” sets it to, say:
What is the point of having multiple metas when the “Attach to Products” is destructive and not additive?
Or am I doing something wrong?
Thanks,January 27, 2019 at 7:51 am #10495
Yes we get your point, well we are thinking to remove ‘Attach to product’ option from meta page. We think it creates confusion for clients. Because we cannot allow to multiple meta here. Or may be we can leave it here with option to attach/append meta.January 27, 2019 at 9:08 am #10500
Thanks. I think that you should keep it with an append option. Adding the same Meta to 50 products is easy like this. Adding 2 metas to 50 products is a long process the current way. So append option.
For now I will have to write some code to put them in there myself because I have too many to do manually.
Unless you can release an append option quickly? That would be great.January 28, 2019 at 5:19 am #10504
Ok, well if you write code you can share with us if we see it’s working we can add this into our plugin after testing.January 28, 2019 at 9:24 am #10507
LOL. I will just be doing a quick and dirty PHP / MySQL script to build the options from a spreadsheet. I haven’t got time to change your code, although I could given time.January 29, 2019 at 1:34 pm #10508
Cheers.July 3, 2019 at 11:33 am #12783
Hello, I know this is an old thread but maybe there is a better solution?
I assume the challenge is writing the meta ID’s to the product ID’s separately. This would explain why it works from the product edit page. If so, I suggest this:
– Move the “Attach To Products” button to the PPOM Meta List header (next to the export button)
– Check the desired PPOM items
– Click “Attach To Products”
– Now, you can write multiple ID string instead of single ID for PPOM items.
I didn’t have time to look at the code/db structure but this is the only reason I can see why adding muti meta sepatately may be an issue. Of course, when adding one, you could load the existing ID’s and build a new string but maye this is too complicated compared to above.
I have to restructure & update all my PPOM meta for many products so one by one is a lot of trouble. Also, if the PPOM meta were in the woo product export, I could edit that way but I can’t.
thanks!July 4, 2019 at 7:12 am #12797
we have added this feature PPOM PRO, you can import/export fields in WC Product Import/Export. See more details: https://najeebmedia.com/blog/ppom-fields-import-export-in-products/July 16, 2019 at 12:59 pm #12919
It seems this issue is resolved, we are closing this ticket.
The topic ‘Multiple Meta Functionality’ is closed to new replies.