marquedigitale
Forum Replies Created
-
Well, I’ll also check these docs in the future ??
Thank you for your help, this thread is resolved.
Hi again,
Quick feedback about this issue: your tip is working like a charm.
I use a third-party library (Codexshaper/laravel-woocommerce) for the integration of Woocommerce API with Laravel, and it is currently not possible to add query parameters for POST requests with it so I had to make it possible for myself.
For those who are in the same position as I am, I edited the vendor/automattic/woocommerce/src/WooCommerce/HttpClient/HttpClient.php file, at the end of the
createRequest
method, right before$this->request = new Request( $this->buildUrlQuery($url, $parameters), $method, $parameters, $headers, $body );
I added
if($method == 'POST' && $endpoint == 'orders') $parameters = array_merge( ['_fields' => 'id'], $parameters );
Sure it is not the best way to achieve this, but this is working…
I’ll go get in touch with Codexshaper to try and get this native with their library.
Thanks again for the help
Thanks for the quick reply.
I will try this asap, I think that it will be very helpful because the issue is that my orders have numerous line_items, so I can see the new order in Woocommerce, but I get a server timeout when builing the response. I don’t mind getting a few superfluous data, I just need a tinier response.
I did not find this in the documentation, is it that I did not search it enough?
I will try to take time to give you feedback on the REST API, but as far as I am concerned there is nothing wrong with it and it is quite useful and easy to use.Thanks again for your help!
Regards
OK so it seems to be working now.
I don’t know what’s different between the assisted configuration and the manual one but I guess I’ll go with the assistant from now on.Thanks for the help anyway!
Regards
Hi,
Thanks for your reply.
This is almost what I did the first time, and was working for a few emails then not anymore. The only difference is that I didn’t use the assistant but set manually the settings.
I just did the configuration again and it seems to be working for now… I’ll check whether it still works in a couple of hours and update this topic.Regards
Forum: Plugins
In reply to: [Advanced Contact form 7 DB] STILL A SECURITY ISSUE?Hi,
I upvote this, I keep getting alerts for this vulnerability.
Any news to provide about it?Thanks
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Conflict with Elementor ProHi,
Thanks for your reply!
I applied your workaround and it is working great.I’ll open a ticket for this to Elementor.
Thanks again for the support.
Regards
Forum: Plugins
In reply to: [WP Sitemap Page] Stored Cross-Site Scripting (XSS) vulnerabilityHi,
I also had this report. Should we worry about this issue not being addressed?
RegardsHello,
Is there any support on this theme?
Should I try and use another one?
RegardsHi,
Any news?
ThanksForum: Plugins
In reply to: [Admin Menu Editor] Issue with custom post type deletionHi @whiteshadow
Thanks, I’ll do that.Regards
- This reply was modified 3 years, 6 months ago by marquedigitale.