tried looping through every product and using the "wp_update_post" function
-
We’re working on a huge online commerce webssite, using WooCommerce and two add-on plugins: WooCommerce Warehouses (to give products multiple stocks locations) and WooCommerce Prices by User Role (to give products different prices for different users). The website is also billingual (French & English) and uses WPML.
We imported products using CSV files and everything was okay, until we realized prices in both languages were different in some cases, and we have just about no idea why. This is quite problematic.
We thought we had a solution when we found that manually going to a product and updating it would correctly set the prices. We’ve tried looping through every product and using the “wp_update_post” function on each of them, but it takes about 1 minute for each product to update this way. This is not viable, considering the store has over 100,000 products.
We are struggling to find solutions. Could anybody tip us in the right directon?
- The topic ‘tried looping through every product and using the "wp_update_post" function’ is closed to new replies.