Accessing plugin-specific product metadata in Woocommerce API
-
Hi
I have recently taken over management of this site and one of the things that seems to be a constant issue is getting the correct currency symbol to apply.
We have an instance of WooCommerce running in one site with a custom plugin being used to access data from there in other (linked) sites via the Woocommerce API.
When listing products using the WooCommerce API, while they include the JSON property “meta_data” in the response, nothing is populated there (and based on information I’ve found in Google searches they have no intention of including it!).
Naturally, the currency for a product is pretty fundamental to how the product price should show.
The previous developer for this site who wrote the custom plugin has tried to get round this by trusting the client to use specific terms (“eur” and, for some reason, “usa”) in the SKU from which a basic if clause is used to determine the currency symbol.
The specific issue is with USD products as, understandably, the client is using “usd” in the SKU rather than “usa”.
Is there something in your plugin which would push the currency into the WooCommerce API? Or would you have an alternative suggestion as to how this could be achieved?
Cheers
GregThe page I need help with: [log in to see the link]
The topic ‘Accessing plugin-specific product metadata in Woocommerce API’ is closed to new replies.