artemis21
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Error: product_invalid_catalog_visibilityHi,
thank you but it’s not an authentication problem, I already follow the API documentation.
The batch product creation works as expected, it is the single product creation that returns the error.Forum: Plugins
In reply to: [WooCommerce] Error: product_invalid_catalog_visibilityHello,
I have created an user for the API and I’m doing through authorization with its credentials using querystring (I use C#). How do I set the header for the authorization?Thank you
Forum: Plugins
In reply to: [WooCommerce] Error: product_invalid_catalog_visibilityRequest: https://ecommerce.giessedati.it/wp-json/wc/v3/products?
Method: POST
Body:
{"id":0,"name":"FLUYD SHORTY LADY 2.0MM","slug":null,"permalink":null,"date_created":"0001-01-01T00:00:00","date_created_gmt":"0001-01-01T00:00:00","date_modified":"0001-01-01T00:00:00","date_modified_gmt":"0001-01-01T00:00:00","type":"variable","status":null,"featured":false,"catalog_visibility":null,"description":null,"short_description":null,"sku":"000031","price":null,"regular_price":"","sale_price":null,"date_on_sale_from":null,"date_on_sale_from_gmt":null,"date_on_sale_to":null,"date_on_sale_to_gmt":null,"on_sale":false,"purchasable":false,"total_sales":0,"virtual":false,"downloadable":false,"downloads":null,"download_limit":0,"download_expiry":0,"external_url":null,"button_text":null,"tax_status":null,"tax_class":null,"manage_stock":true,"stock_quantity":0,"backorders":null,"backorders_allowed":false,"backordered":false,"low_stock_amount":null,"sold_individually":false,"weight":null,"dimensions":null,"shipping_required":false,"shipping_taxable":false,"shipping_class":null,"shipping_class_id":0,"reviews_allowed":false,"average_rating":null,"rating_count":0,"upsell_ids":null,"cross_sell_ids":null,"parent_id":0,"purchase_note":null,"categories":null,"tags":null,"images":null,"attributes":[{"id":5,"name":"size","position":0,"visible":true,"variation":true,"options":["L","M","S","XL","XS"]}],"default_attributes":null,"variations":null,"grouped_products":null,"menu_order":0,"price_html":null,"related_ids":null,"meta_data":null,"stock_status":null,"has_options":false,"brands":null,"ean":null,"_links":null,"error":null}Header: no value
Forum: Plugins
In reply to: [WooCommerce] Woocommerce can only create product but not updateHi,
that is the POST script for creating a new product, where the parameters are ignored anyway. The update script uses PUT already, but the products won’t be edited no matter what and I get no errors.Thank you
Forum: Plugins
In reply to: [WooCommerce] Woocommerce can only create product but not updateThis is the API call
//bypass ssl validation check globally for whole application. ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; urlWooComApi = ConfigurationManager.AppSettings.Get("urlWooComApi"); string userWooComApi = ConfigurationManager.AppSettings.Get("userWooComApi"); string pwdWooComApi = ConfigurationManager.AppSettings.Get("pwdWooComApi"); //var settings = new JsonSerializerSettings() { DateFormatHandling = DateFormatHandling.MicrosoftDateFormat }; var settings = new JsonSerializerSettings() { DateFormatHandling = DateFormatHandling.IsoDateFormat }; RestRequest req = new RestRequest(Method.POST); req.RequestFormat = DataFormat.Json; req.Resource = "products"; req.AddQueryParameter("consumer_key", userWooComApi); req.AddQueryParameter("consumer_secret", pwdWooComApi); var jsonProdotti = JsonConvert.SerializeObject(lstProdotti.Take(1), settings); req.AddParameter("application/json", jsonProdotti, ParameterType.RequestBody); RestClient client = new RestClient(urlWooComApi); IRestResponse resp = client.Execute(req); if (!string.IsNullOrEmpty(resp.ErrorMessage)) throw new Exception($"{resp.ErrorMessage}"); reasons = resp.Content; if (resp.StatusCode != HttpStatusCode.Created) throw new Exception($"{reasons}"); JsonDeserializer deserializer = new JsonDeserializer(); var Prod = deserializer.Deserialize<wcProduct>(resp); return Prod;Forum: Plugins
In reply to: [WooCommerce] Woocommerce can only create product but not updateHi,
thank you for your reply. I tried changing theme and deactivating all the plugins except WooCommerce but I still get the same result. I can create the product but I’m not able to modify it thourgh API rest. And even when I creat it it ignores my parameters. I’m following the official API documentation and I tried both v2 and v3.Forum: Plugins
In reply to: [More-Lang] Translate Post Masonry GridHi,
I’ve sent you a couple of email with files and screenshots.Thank you
Forum: Plugins
In reply to: [More-Lang] Translate Post Masonry GridYes, can you give me an email?
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorHi, thank you for your reply, that is a weird behavior from the slider, I’m afraid I have to change plugin as I need to switch back to my template slider behavior.
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorHi,
thank you, but with that code images taller than 500px are truncated, instead of contained in the slider.Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorHi,
I didn’t notice the Adaptive Height setting is a premium feature…
However I have a problem with the slider, you can see in this page:https://www.dacsrl.net/shop/accessori-auto/interni/coprivolanti/mimetic-coprivolante-auto/
The height of the slider is way to much even if the picture is not that tall.
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorThank you! It’s displayed fine now.
There’s just one more thing that looks a bit strange to me. In the first big product image, you can see the zoom icon in the bottom left, but if you change picture to the second (which has a different aspect ratio), the zoom icon is placed in the bottom left of the picture, not in the div. This is unfortunate because the arrow is right on top of the zoom icon and could not be clicked.
If I could make a suggestion, make it so that the zoom/enlarge icon is absolute positioned relatively to the parent div, so that it does not change place with different size images.Thank you
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorForum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorHere’s the link, it’s more evident on the secon image:
https://dacsrl.giessedati.it/shop/accessori-auto/emergenza-e-manutenzione/olio-e-additivi/olio-freni/Thank you
Forum: Plugins
In reply to: [Product Video Gallery for Woocommerce] Can’t open this page security errorWould it be possible to at least change the quality of the thumbnails? When I have your plugin activated, the resolution of the thumbnail is worse…