Is it possible to do that? Some PATCH route for example.
]]>However now when I update product information such as the product titles the feed isn’t sensing these changes even if I clean caches and regenerate the feed.
The site does NOT have any performance plugins such as WP-Rocket so the guide that’s already in place to deal with those doesn’t work.
What should I do?
]]>This problem does not occur when updating regular posts or pages. Any suggestions?
]]>I have created 4 webhooks in WooCommerce (order created, order updated,product created, product updated) and they are connected to my ERP. Can i prioritize specific webhooks?
Example: When I input a purchase invoice with 1000 SKU’s in the ERP, this action will create 1000 hooks in Action Scheduler. This will update WooCommerce, but it has to finish before it recieves other data from another webhook (eg. create order) and then so on, until it finishes, causing great delay.
My question is: Can I prioritize specific hooks in “Action Scheduler” because I have to overtake some of them that are in the queue?
Thank you in advance!
Kostas
I would like know, if there is a code in php allowing to update wordpress products with a csv drive?
Thank you in advance for your answer.
]]>The reason is i want to calculate some custom fields.
But i have the problem that the update of the meta data triggers the hook itself again. So it does never stop.
function change_unit_price($product_id)
{
//test get data
$_product = wc_get_product($product_id);
$_regular_price = $_product->get_regular_price();
$_sale_price = $_product->get_sale_price();
$_meta_data = $_product->get_meta_data();
// test set value
$_product->update_meta_data('_unit_price_regular', "898");
$_product->save();
}
add_action('woocommerce_update_product', 'change_unit_price', 99, 1);
Does someone has a solution for this or is there a workflow i don’t know yet? This is my first try with wordpress plugins.
]]>Warning: array_map(): Argument #2 should be an array in /home/xxxxxxxx/public_html/wp-includes/post.php on line 2136
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxxxx/public_html/wp-includes/post.php:2136) in /home/xxxxxxxx/public_html/wp-admin/post.php on line 235
Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxxxxx/public_html/wp-includes/post.php:2136) in /home/xxxxxxxx/public_html/wp-includes/pluggable.php on line 1196
https://www.ads-software.com/plugins/jigoshop/
]]>