Woocommerce API problem
-
Hello,
Since the latest update : Added ability to import SEO data in a Taxonomy import.
when a new product is imported while the plugin is active querying Woocommerce API for the imported product returns:"meta_data":{"0":{"id":124521526,"key":"_wp_page_template","value":"default"},"1":{"id":124521553,"key":"_regular_price_tmp","value":"146000"},"2":{"id":124521554,"key":"_sale_price_tmp","value":"146000"},"3":{"id":124521555,"key":"_sale_price_dates_from_tmp","value":""}
which used to be:
"meta_data":[{"id":124521526,"key":"_wp_page_template","value":"default"},{"id":124521553,"key":"_regular_price_tmp","value":"146000"},{"id":124521554,"key":"_sale_price_tmp","value":"146000"},{"id":124521555,"key":"_sale_price_dates_from_tmp","value":""}]
causing our applications working with API to malfunction, since it does not change the whole way of API data structure we cannot change our applications because it only happens for those products that have been imported while the plugin was active, even after disabling it products’ structure stay malformed and looks like a dictionary rather than a JSON array. When I disable the plugin and import, all is fine.
- The topic ‘Woocommerce API problem’ is closed to new replies.