jorensm
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] REST API: Batch updating products creates a new product insteadMy mistake – I was calling
/products
instead of/products/batch
Forum: Plugins
In reply to: [WooCommerce] REST API: Batch updating products creates a new product insteadI tried stripping the request body of the data that doesn’t match the schema, but I still get the same problem of a single new product being created. This is the new request body: https://pastebin.com/zTqKCTng
Forum: Plugins
In reply to: [WooCommerce] How to prevent pre_get_posts from altering REST API queriesI found out that you can check if it’s a REST query using the
REST_REQUEST
constant, like so:if( defined( 'REST_REQUEST' ) && REST_REQUEST ) { // ...do RESTy things }
Forum: Plugins
In reply to: [WooCommerce] REST API products endpoint returns empty arrayI found the problem – it was my own custom plugin that I wrote for the website, it was altering the WP_Query object. I disabled the plugin and then the endpoint worked fine! Thanks for your help @babylon1999 !
Forum: Plugins
In reply to: [WooCommerce] REST API products endpoint returns empty array@babylon1999 Thanks for your response. I installed a fresh version of WordPress + WooCommerce locally, and when I called endpoint to that website, it worked. So it must be a theme/plugin conflict.
@mrclayton Alright, thank you very much!
@mrclayton I see. Does the same apply to iDEAL? In the iDEAL payment field, I only get an option to select a bank. Also, I’m getting some errors in the console:
Update: this was because I had two Checkout Payment widgets on my page. I removed one of them and now the input fields are showing
Forum: Plugins
In reply to: [Custom Fonts - Host Your Fonts Locally] Font Display: Swap not working- Create a new font and add some weights to it. Font that I used is called Gilroy
- Change the font’s Display setting to Swap
Maybe the issue is specific to my website and some other plugin is conflicting, I don’t know.
@gabelivan Thank you!
Forum: Plugins
In reply to: [Custom Fonts - Host Your Fonts Locally] Font Display: Swap not workingHi @bsfherman , thanks for responding. The message got resolved when I changed the Font Display setting to Preload. But when I set it to Swap, the message was there.