WooCommerce: Can't change order statuses, notes, cart tracking and more
If you find that you are unable to perform certain actions in Metorik (POST/PUT WRITE requests), like:
- Change order statuses.
- Add order/subscription notes.
- Refresh/disable webhooks.
- Enable/disable cart tracking.
- Create coupons (through Engage).
It's most likely be because your store URL is not set up correctly in Metorik.
We often see this happen when you have a redirect in place on your site, most commonly from non-WWW to www.
For example, if your store's website is www.mystore.com, you may have a redirect in place from mystore.com to www.mystore.com (non-WWW to WWW). This could be causing our WRITE changes (like changing an order status or enabling cart tracking) to your site to fail, as we're getting redirected each time.
The same applies for changing http to https (or the other way round).
If you are still having trouble, it may be something else causing the issue, such as:
1. Metorik's read/write API key has been changed on your side to just read.
To fix this, change it back to read/write.
2. A security plugin blocking WRITE requests.
You may have a security plugin on your site that allows Metorik to make read requests but won't let it make write requests. Check the settings for it and see if you can disable this or if not, contact us and we can confirm this is the issue and provide further instructions for whitelisting Metorik.
3. A server/hosting configuration is blocking WRITE requests.
If it's not a plugin causing it, it's likely a server or hosting configuration. It could be a rule that is blocking write requests, or perhaps a trailing slash redirect sending POST API requests to a 404.
Either way, feel free to contact us for help and we can try get this working for you.