davedog33
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Programatically adding variation attributes?Thanks. Couldn’t find any metadata cause I was looking in variations that didn’t have any assigned terms. Ugh :P. I assumed that it would have shown an empty array in the metadata, but I guess not!
Forum: Plugins
In reply to: [WooCommerce] Deleting all woocommerce attributes?Say a product has a size attribute with, S, M and L. S, M and L are just terms in the size taxonomy, yes? I want to delete all the terms in the size taxonomy, but also make sure that the metadata attached to a product that contain those sizes is also deleted.
Forum: Plugins
In reply to: [WooCommerce] Programatically adding product variations?Thanks 🙂 I did a little hunting and found the ajax hook that is responsible for letting the user add a variation. Led me to this code: https://gist.github.com/qutek/064bf7b44dfd2c6f46b2
and it looks like all you have to do is specify the post_parent as the current product’s ID. 🙂
I’ll try it out, but don’t see why it shouldn’t work.
Forum: Plugins
In reply to: [WooCommerce] Programatically adding product variations?By the way the reason I need to do this is because I’m interacting with a third party API to synchronise their variations to woocommerce’s variation’s.