Automatically Creating Product Variants
-
I’m having a very weird issue with my shop where every hour or so, random empty product variants are being added to my products.
In my database, it seems to be making two rows everytime a variant is added. Please note I have removed any identifying information
The first row is the product being added which looks similar to this
(60873, 5, ‘2019-11-05 15:02:14’, ‘2019-11-05 15:02:14’, ”, ‘Name Of Product’, ”, ‘trash’, ‘closed’, ‘closed’, ”, ‘product-330’, ”, ”, ‘2019-11-05 15:02:14’, ‘2019-11-05 15:02:14’, ”, 1308, ‘https://lashis.co.uk/?post_type=product_variation&p=60873’, 177, ‘product_variation’, ”, 0),
The second row is then a webhook which fires to TradeGecko which looks like this.
(60874, 0, ‘2019-11-05 15:02:15’, ‘2019-11-05 15:02:15’, ‘{\”webhook_id\”:12,\”arg\”:60873}’, ‘woocommerce_deliver_webhook_async’, ”, ‘publish’, ‘open’, ‘closed’, ”, ‘scheduled-action-5dc18fadea7866.06156584-9UG9mRCYfzUWhQBibyyd6Gf58s5Cb9RX’, ”, ”, ‘2019-11-05 15:05:17’, ‘2019-11-05 15:05:17’, ”, 0, ‘https://website.co.uk/?post_type=scheduled-action&p=60874’, 0, ‘scheduled-action’, ”, 1),
I have some questions
1. Can a webhook allow a product to be created or does the product have to be created first before the webhook can fire?
2. Is there a way of finding out what code created a Post ID?
The topic ‘Automatically Creating Product Variants’ is closed to new replies.