adesigno
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce order update webhook fires too many timesHi
please find here the webhook settings: https://snipboard.io/QIbWoV.jpg
This is the log of a refund webhook:
2022-04-26T12:21:50+00:00 INFO Array ( [Webhook Delivery] => Array ( [Delivery ID] => f9f8c39097977bc4aa686da32e553957 [Date] => Apr 26, 2022 @ 12:21 [URL] => https://www.ypip.it/cgi-bin/pas/adv_woo/adv_woo_ordini1.py [Duration] => 23.1066 [Request] => Array ( [Method] => POST [Headers] => Array ( [User-Agent] => WooCommerce/6.2.2 Hookshot (WordPress/5.6.8) [Content-Type] => application/json [X-WC-Webhook-Source] => https://www.designori.it/ [X-WC-Webhook-Topic] => order.updated [X-WC-Webhook-Resource] => order [X-WC-Webhook-Event] => updated [X-WC-Webhook-Signature] => wwFyeAZwDmyxrGnnlDIs39cO3NSRlpgUScK17I/MZsg= [X-WC-Webhook-ID] => 13 [X-WC-Webhook-Delivery-ID] => f9f8c39097977bc4aa686da32e553957 ) ) [Body] => {\"id\":46864,\"parent_id\":0,\"status\":\"on-hold\",\"currency\":\"EUR\",\"version\":\"6.2.2\",\"prices_include_tax\":false,\"date_created\":\"2022-04-26T09:56:49\",\"date_modified\":\"2022-04-26T09:56:49\",\"discount_total\":\"0.00\",\"discount_tax\":\"0.00\",\"shipping_total\":\"10.00\",\"shipping_tax\":\"0.00\",\"cart_tax\":\"0.00\",\"total\":\"227.89\",\"total_tax\":\"0.00\",\"customer_id\":0,\"order_key\":\"wc_order_o2tN1lqX8dBDf\",\"billing\":{\"first_name\":\"Marta\",\"last_name\":\"De Marta\",\"company\":\"\",\"address_1\":\"Via Gran San Bernardo 15\",\"address_2\":\"\",\"city\":\"Milano\",\"state\":\"MI\",\"postcode\":\"20154\",\"country\":\"IT\",\"email\":\"[email protected]\",\"phone\":\"023422334455\"},\"shipping\":{\"first_name\":\"Marta\",\"last_name\":\"De Marta\",\"company\":\"\",\"address_1\":\"Via Gran San Bernardo 15\",\"address_2\":\"\",\"city\":\"Milano\",\"state\":\"MI\",\"postcode\":\"20154\",\"country\":\"IT\",\"phone\":\"\"},\"payment_method\":\"bacs\",\"payment_method_title\":\"Direct bank transfer\",\"transaction_id\":\"\",\"customer_ip_address\":\"31.159.96.151\",\"customer_user_agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko\\/20100101 Firefox\\/99.0\",\"created_via\":\"checkout\",\"customer_note\":\"\",\"date_completed\":null,\"date_paid\":null,\"cart_hash\":\"d74623cf23a0224693267bb15b97d02e\",\"number\":\"46864\",\"meta_data\":[{\"id\":1073148,\"key\":\"is_vat_exempt\",\"value\":\"no\"},{\"id\":1073152,\"key\":\"_new_order_email_sent\",\"value\":\"true\"},{\"id\":1073155,\"key\":\"erp_orderid\",\"value\":\"2496\"},{\"id\":1073156,\"key\":\"adbx_sent_to_erp\",\"value\":\"3\"},{\"id\":1073157,\"key\":\"adbx_erp_customer_no\",\"value\":\"102\"}],\"line_items\":[{\"id\":234,\"name\":\"Jack Wolfskin JASPER FLEX MEN 1108371 - M\",\"product_id\":46788,\"variation_id\":46790,\"quantity\":1,\"tax_class\":\"\",\"subtotal\":\"199.95\",\"subtotal_tax\":\"0.00\",\"total\":\"199.95\",\"total_tax\":\"0.00\",\"taxes\":[],\"meta_data\":[{\"id\":2058,\"key\":\"pa_size\",\"value\":\"m\",\"display_key\":\"size\",\"display_value\":\"M\"},{\"id\":2074,\"key\":\"_reduced_stock\",\"value\":\"0\",\"display_key\":\"_reduced_stock\",\"display_value\":\"0\"},{\"id\":2097,\"key\":\"_restock_refunded_items\",\"value\":\"1\",\"display_key\":\"_restock_refunded_items\",\"display_value\":\"1\"}],\"sku\":\"4055001285907\",\"price\":199.95,\"parent_name\":\"Jack Wolfskin JASPER FLEX MEN 1108371\"},{\"id\":235,\"name\":\"Jack Wolfskin WASCHSALON 8613001\",\"product_id\":46803,\"variation_id\":0,\"quantity\":2,\"tax_class\":\"\",\"subtotal\":\"17.94\",\"subtotal_tax\":\"0.00\",\"total\":\"17.94\",\"total_tax\":\"0.00\",\"taxes\":[],\"meta_data\":[{\"id\":2075,\"key\":\"_reduced_stock\",\"value\":\"0\",\"display_key\":\"_reduced_stock\",\"display_value\":\"0\"},{\"id\":2108,\"key\":\"_restock_refunded_items\",\"value\":\"2\",\"display_key\":\"_restock_refunded_items\",\"display_value\":\"2\"}],\"sku\":\"4060477710495\",\"price\":8.97,\"parent_name\":null}],\"tax_lines\":[],\"shipping_lines\":[{\"id\":236,\"method_title\":\"Flat rate\",\"method_id\":\"flat_rate\",\"instance_id\":\"1\",\"total\":\"10.00\",\"total_tax\":\"0.00\",\"taxes\":[],\"meta_data\":[{\"id\":2073,\"key\":\"Items\",\"value\":\"Jack Wolfskin JASPER FLEX MEN 1108371 - M × 1, Jack Wolfskin WASCHSALON 8613001 × 2\",\"display_key\":\"Items\",\"display_value\":\"Jack Wolfskin JASPER FLEX MEN 1108371 - M × 1, Jack Wolfskin WASCHSALON 8613001 × 2\"}]}],\"fee_lines\":[],\"coupon_lines\":[],\"refunds\":[{\"id\":46868,\"reason\":\"\",\"total\":\"-17.94\"},{\"id\":46867,\"reason\":\"\",\"total\":\"-199.95\"}],\"date_created_gmt\":\"2022-04-26T09:56:49\",\"date_modified_gmt\":\"2022-04-26T09:56:49\",\"date_completed_gmt\":null,\"date_paid_gmt\":null,\"currency_symbol\":\"\\u20ac\",\"_links\":{\"self\":[{\"href\":\"https:\\/\\/www.designori.it\\/wp-json\\/wc\\/v3\\/orders\\/46864\"}],\"collection\":[{\"href\":\"https:\\/\\/www.designori.it\\/wp-json\\/wc\\/v3\\/orders\"}]}} [Response] => Array ( [Code] => 200 [Message] => OK [Headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [server] => aruba-proxy [date] => Tue, 26 Apr 2022 12:21:50 GMT [content-type] => text/html [vary] => Accept-Encoding [x-servername] => ipvsproxy46.ad.aruba.it [content-encoding] => gzip ) ) [Body] => Content-type: text/html Content-type: text/html Content-type: text/html Content-type: text/html Content-type: text/html Content-type: text/html {'message': 'Order number: 46864: Order Refunded in Advarics: Position 2', 'success': True} ) ) )And this is the rest api request:
{ "id": 46873, "parent_id": 0, "status": "refunded", "currency": "EUR", "version": "6.2.2", "prices_include_tax": false, "date_created": "2022-04-26T12:50:00", "date_modified": "2022-04-26T13:29:08", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "10.00", "shipping_tax": "0.00", "cart_tax": "0.00", "total": "976.97", "total_tax": "0.00", "customer_id": 0, "order_key": "wc_order_bhco279d1dXQh", "billing": { "first_name": "Marta", "last_name": "De Marta", "company": "", "address_1": "Via Gran San Bernardo 15", "address_2": "", "city": "Milano", "state": "MI", "postcode": "20154", "country": "IT", "email": "[email protected]", "phone": "023422334455" }, "shipping": { "first_name": "Marta", "last_name": "De Marta", "company": "", "address_1": "Via Gran San Bernardo 15", "address_2": "", "city": "Milano", "state": "MI", "postcode": "20154", "country": "IT", "phone": "" }, "payment_method": "sb_test", "payment_method_title": "Order Test Gateway", "transaction_id": "", "customer_ip_address": "31.159.96.151", "customer_user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko\/20100101 Firefox\/99.0", "created_via": "checkout", "customer_note": "", "date_completed": null, "date_paid": "2022-04-26T12:50:00", "cart_hash": "300d791dc56f804e6c33aa7e3c2bc8c1", "number": "46873", "meta_data": [{ "id": 1073379, "key": "is_vat_exempt", "value": "no" }, { "id": 1073386, "key": "_new_order_email_sent", "value": "true" }, { "id": 1073388, "key": "erp_orderid", "value": "2496" }, { "id": 1073389, "key": "adbx_sent_to_erp", "value": "3" }, { "id": 1073390, "key": "adbx_erp_customer_no", "value": "102" } ], "line_items": [{ "id": 246, "name": "Jack Wolfskin WASCHSALON 8613001", "product_id": 46803, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "8.97", "subtotal_tax": "0.00", "total": "8.97", "total_tax": "0.00", "taxes": [], "meta_data": [{ "id": 2189, "key": "_reduced_stock", "value": "0", "display_key": "_reduced_stock", "display_value": "0" }, { "id": 2201, "key": "_restock_refunded_items", "value": "1", "display_key": "_restock_refunded_items", "display_value": "1" } ], "sku": "4060477710495", "price": 8.97, "parent_name": null }, { "id": 247, "name": "Ludwig Reiter Chelsea Boot S.71-VST.DAS-7-JS - 5", "product_id": 46791, "variation_id": 46792, "quantity": 2, "tax_class": "", "subtotal": "958.00", "subtotal_tax": "0.00", "total": "958.00", "total_tax": "0.00", "taxes": [], "meta_data": [{ "id": 2182, "key": "pa_size", "value": "5", "display_key": "size", "display_value": "5" }, { "id": 2190, "key": "_reduced_stock", "value": "0", "display_key": "_reduced_stock", "display_value": "0" }, { "id": 2212, "key": "_restock_refunded_items", "value": "2", "display_key": "_restock_refunded_items", "display_value": "2" } ], "sku": "2000002004950", "price": 479, "parent_name": "Ludwig Reiter Chelsea Boot S.71-VST.DAS-7-JS" } ], "tax_lines": [], "shipping_lines": [{ "id": 248, "method_title": "Flat rate", "method_id": "flat_rate", "instance_id": "1", "total": "10.00", "total_tax": "0.00", "taxes": [], "meta_data": [{ "id": 2188, "key": "Items", "value": "Jack Wolfskin WASCHSALON 8613001 × 1, Ludwig Reiter Chelsea Boot S.71-VST.DAS-7-JS - 5 × 2", "display_key": "Items", "display_value": "Jack Wolfskin WASCHSALON 8613001 × 1, Ludwig Reiter Chelsea Boot S.71-VST.DAS-7-JS - 5 × 2" } ] } ], "fee_lines": [], "coupon_lines": [], "refunds": [{ "id": 46876, "reason": "Order fully refunded.", "total": "-10.00" }, { "id": 46875, "reason": "", "total": "-958.00" }, { "id": 46874, "reason": "", "total": "-8.97" } ], "date_created_gmt": "2022-04-26T12:50:00", "date_modified_gmt": "2022-04-26T13:29:08", "date_completed_gmt": null, "date_paid_gmt": "2022-04-26T12:50:00", "currency_symbol": "\u20ac", "_links": { "self": [{ "href": "https:\/\/www.designori.it\/wp-json\/wc\/v3\/orders\/46873" } ], "collection": [{ "href": "https:\/\/www.designori.it\/wp-json\/wc\/v3\/orders" } ] } }Thanks and kind regards
adForum: Plugins
In reply to: [Brands for WooCommerce] Brand Catalog not showing in category pagesHi Oleg
thanks for the advice. I had to assign categories to the brands to see them.Question: is there a way to set all categories visibile for a brand without having to check every single checkbox? We add brand with a php script so maype there is a paramenter I can set?
Thanks
adForum: Plugins
In reply to: [Brands for WooCommerce] Only 3 products per rowIt was a template settings. It works with 4 products per columns.
ThanksOK thanks
adHi Blaz,
i have checked out documentation but I am not able do get it working
I have tried to use this:$post = get_post( $post_id );
echo Rate_My_Post_Public_Helper::get_visual_rating($post );but nothing is displayed.
Regards
ad