Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Multiple Meta Functionality
Tagged: multi meta
- This topic has 8 replies, 4 voices, and was last updated 5 years, 5 months ago by Jane Brian.
-
AuthorPosts
-
January 25, 2019 at 1:01 pm #10485dtcoatesParticipant
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:
a:2:{i:0;s:1:”7″;i:1;s:1:”8″;}
“Attach to Products” sets it to, say:
8
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 #10495nmediaKeymasterHi,
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 #10500dtcoatesParticipantThanks. 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 #10504nmediaKeymasterOk, 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 #10507dtcoatesParticipantLOL. 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 #10508nmediaKeymasterCheers.
July 3, 2019 at 11:33 am #12783MichaelParticipantHello, 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 #12797nmediaKeymasterHi,
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 #12919Jane BrianKeymasterHi Dtcoates
It seems this issue is resolved, we are closing this ticket. -
AuthorPosts
- The topic ‘Multiple Meta Functionality’ is closed to new replies.