changing prices outside of the website
-
Hello!
I’m using a MySQL connector to get woocommerce data for my application and I’m trying to edit my prices from my application instead of from inside woocommerce. Most of the products I want to change prices of are variable products.I query the table postmeta for the meta_key: “_price” using the product id and get the meta_value, which contains the current price of the variable product. I verify that the price data is correct by checking the website prices and the values reported in my application. I make changes to the woocommerce product, save the product, and when I refresh my application form it updates the price data.
My problem is when I try to do the opposite, I change the price in the application, and expect to see the changes when I refresh the product, but no there is no change. Since the form does use the new values, I assume woocommerce is using some sort of cache for the product prices and is not reading from the postmeta directly.
How can I force woocommerce to accept my new prices from my application? I need the correct table that holds the live price data, or a way to force that table to get the data from postmeta. I understand this might be complicated support issue but maybe someone from woocommerce team can help as I’m really close.
PS: The application is using microsoft access as a front end
- The topic ‘changing prices outside of the website’ is closed to new replies.