slimschip
Forum Replies Created
-
Forum: Plugins
In reply to: [Product GTIN (EAN, UPC, ISBN) for WooCommerce] WooCommerce APIIt works ! Thank you, I guess an update will just overwrite my hand made changes.
You are a live saver and deserve a big kiss!
Forum: Plugins
In reply to: [Product GTIN (EAN, UPC, ISBN) for WooCommerce] WooCommerce APIThat did not work, as you scroll down on that page the is a reply from someone telling that and a suggested fix. but:
I think this is close to what is needed:
https://developer.www.ads-software.com/rest-api/extending-the-rest-api/modifying-responses/
I guess the info on this page is for the correct integration with the REST API for getting and adding changing the value.
It is that I am clueless about WP/WC/php… otherwise I would have hacked the plug-in to see if I could make it work.
I’m happy to test though as I am familiar with the REST API of WC.
Martijn
Forum: Plugins
In reply to: [Product GTIN (EAN, UPC, ISBN) for WooCommerce] WooCommerce APIoh cool!
Forum: Plugins
In reply to: [Product GTIN (EAN, UPC, ISBN) for WooCommerce] WooCommerce APIa bit off-topic, but wouldn’t that be overwitten by an update of the theme? that seems to be the case every time when there is a WC update.
Forum: Plugins
In reply to: [Product GTIN (EAN, UPC, ISBN) for WooCommerce] WooCommerce APII have found that one too, there is no reference on where to add that code ….
As said I am not familiar with php development.
To me the whole issue is with the “_” at the start of “_wpm_gtin_code” as a fieldname in the wp_postmeta as that is a “protected” field. in the first place.
Martijn
Forum: Plugins
In reply to: [Product GTIN (EAN, UPC, ISBN) for WooCommerce] WooCommerce APIHi Emanuela,
When I search on how to get custom fields I run into circles and php code I do not understand (I’m a pyhon devoloper), but seem related to the way the php api works and how to handle the return data.
when I do a get on “products?filter[meta]=true” I do get the “product_meta” but no _wpm_gtin_code, in some places I see that “protected” values (starting with “_”) are not shown.
I have searched the API docs and tried google before I posted my question to you.
I try to get the value in the response for a get. thats is all.
Any hint beyond “search how to get custom fields” would be highly appreciated.
Kind regards,
Martijn
- This reply was modified 6 years, 5 months ago by slimschip.