Would it be feasible to use the WordPress REST API to send: an item’s dimensions and weight, its delivery address, and its delivery speed, to a Google Sheet (which I would have created in order to calculate the shipping charge of the heavy and/or bulky items I intend to sell), via the Google Sheets API (which is a RESTful interface), and then, normally, within a couple of seconds, receive back the shipping charge for that item?
My use case
Many of the items I’m planning on selling are bulky and/or heavy items which will normally ship as freight. Calculating freight charges tends to be complex; yet, of course, performing the actual calculations would be trivial for a spreadsheet, such as a Google Sheet. However, such calculations apparently cannot be done with WooCommerce OOTB (out-of-the-box).
When a customer adds an item to his shopping cart in WooCommerce, within a couple of seconds I would like the shipping charge to have been calculated in a Google Sheet and sent to WooCommerce, where, of course, it will be displayed for the customer to see.
Why not use a plugin for WooCommerce?
I suppose I might be able to find a plugin for WooCommerce to perform the calculations, but frankly, even if I could I would rather not use a plugin for three reasons.
First and foremost, although WooCommerce itself is relatively secure; many of the plugins for WooCommerce are insecure. Therefore, the fewer WooCommerce plugins I use, the better. (I am not complaining; rather, I am explaining).
Second, I read many user comments about WooCommerce plugins, wherein users complained that a particular plugin didn’t work properly.
Third, Google Workspace (which subsumes Google Sheets) has been extremely reliable for me for over 15 years. Therefore, if it would be feasible to use it in this case, I would like to adhere to the adage, “If it ain’t broke don’t fix it.
Final Note
When I indicated above, “… performing the actual calculations would be trivial for a spreadsheet, such as a Google Sheet,” I did not mean to imply that setting up and maintaining the spreadsheet itself would be trivial. That would probably be a little bit of a chore. As I indicated above, I was referring to performing the actual calculations.
]]>https://mydomaincom/wp-json
https://mydomaincom/wp-json/wp/v2/posts
If I deactivate the Paypal Payments plugin, these REST API calls succeed.
I’ve also tried deactivating all plugins except WooCommerce and Paypal Payments with the same results.
There are no PHP errors in the error log.
WooCommerce 7.0.0
WooCommerce Paypal Payments 1.9.4
WordPress 6.0.3
Is there any way to debug what is happening?
Thank you.
]]>This is new after an automatic upgrade
Tried the suggestions by switching the Permalinks and then switching them back.
]]>I can’t figure out what this is and it shows up st the top of my WP-ADMIN on all of my sites on every page in the dashboard.
Thank you
]]>i’m using the newest version 13.2.4 and get the error message
Here is an error associated with Connecting WordPress Rest API
Please Flushing rewrite rules or activate WordPress REST API for performance WP-Statistics Plugin Cache / Go Settings->Permalinks
Access to Rest API was/is disabled by an utility plugin and it seems, that this problem is the same like in the past (see here).
Kindly regards
Filout
]]>I am working on a dropshipping website that is built on a sub-domain
annonceme.com/store
The site requires activation of REST API for the suppliers to upload and automate the shipping of products. When I call REST API for the main domain it works fine:
https://annonceme.com/wp-json
But the REST API gives a 404 Error when called for the subdomain where the store is built:
https://annonceme.com/store/wp-json
Please guide and help on how to solve this issue.
Thank You!
]]>Minyong
]]>The website shows JSON data for the main domain but it does not show JSON data for the sub-domain [ redundant link removed ] and encounters a 404 error.
Please guide me on why it is giving this issue and how can I make the WordPress Rest API active for the sub-domain and make the JSON data for it available.
Thank You!
]]>And your Cloudflare API has disabled some plugins like Adsense. All ads
deployed on my site for years have disappeared suddenly.
So I have removed my Domain from Cloudflare. Actually I have removed my
Domain from Cloudflare 2 days back. As problem pesists I tried to clear
Cache with Cloudfare, if any, by re-submitting my Domain to Cloudflare but
in vain. So I have removed my Domain yesterday once again with Cloudflare.
And I have changed your Global API of Cloudflare so that your Cloudflare
will not connect with my website in future.
It took 4 days for me to find that your API is the main culprit behind my
troubles with respect to my Website.
AT PRESENT HOME PAGE AND SOME MORE PAGES ARE NOT WORKING properly. And
because the Home page is not functioning properly my website is almost down
because of slow loading.
What I want to tell you is that YOU SHOULD NOT INTERFERE WITH THE
FUNCTIONING OF OUR WEBSITES IN THE NAME OF SECURITY.
Your API is disabling REST API of wordpress. This feature is responsible
for SAVING of changes made to the WordPress Website.
Janardhan Prasad
]]>