woocommerce-external-product-embed
woocommerce-external-product-embed copied to clipboard
Feature: SSL authentication endpoint
There are quite possibly some issues when the WooCommerce site is on https.
Need to test having a site home url in "https" format, as well as triggering this option: https://github.com/WPprodigy/woocommerce-external-product-embed/blob/master/classes/class-woocommerce-external-product-embed-transients.php#L56
Did you get it tested?
Seems to work w/ SSL as is. But there are some enhancements that could be added, namely the new authentication endpoint: https://woocommerce.wordpress.com/2015/08/07/api-settings-and-the-api-authentication-endpoint-in-2-4/
This only works with ssl though, so I'm not sure how profitable it would be.
Same problem, I can't use API keys in SSL.
Same problem.
Same problem (I think). With SSL enabled on the external site (using Really Simple SSL), I receiving "API Connection Error" when entering api credentials and saving.
If I disable Really Simple SSL, everything works as expected.
Very bummed. Don't all woocommerce sites use SSL?
EDIT:
In classes/class-wcepe-api-client.php, I added a single line ('query_string_auth' => true) to the WCEPE_API_Client class and it appears to be working:
private function connect() { $settings = get_option( 'wcepe_settings' ); $options = [ 'wp_api' => true, 'version' => 'wc/v2', 'query_string_auth' => true ];
Found this possible solution here (second to last post):
'query_string_auth' => true
Works for me as well.
Thanks for the feedback. Looks like I do need to do some more testing for SSL. Will likely just check for the presence of SSL, and then add that portion to the auth automatically.
ver wp 4.9.4 woocommerce 3.3.3 all keys are correct. I created the keys with admin account with read/write. installed the plugin on external site with the keys but dont see any products.
when i go to https://mydomain.com/wp-json/wc/v1/orders i get this error {"code": "woocommerce_rest_cannot_view", "message": "You can not display data sources.", "data": {"status": 401}}
'query_string_auth' => true
Thanks. I spent hours for this issue and finally this helped me as well.
The 'query_string_auth' => true
trick is working for me when I embed products from another domain, but not when I try to get the products from a shop on a multisite network installation... :( Any thoughts what might be going wrong there?
With regards to the SSL topic, perhaps an upgrade to the API v3 will do the trick (as well).
Would love to see an updated version of this awesome plugin anytime soon to keep it up to date with the newer versions of the API, WooCommerce, and WordPress.