Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter amandinemrl

    (@amandinemrl)

    Hello,

    In the wp-config.php file, I added these lines :
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);

    However, no additional information is displayed on the blank page when I click on the send icon on the return label :
    https://preprod-btg.fr/wp-admin/admin-ajax.php?action=colissimo-shipping-methods-for-woocommerce&task=inward_label_emailing&tracking_number=8R46831969147&lpc_redirection=lpc_woocommerce_order_edit_page

    Or when I delete the label :
    https://preprod-btg.fr/wp-admin/admin-ajax.php?action=colissimo-shipping-methods-for-woocommerce&task=label/inward/delete&lpc_label_tracking_number=8R46831969147&lpc_redirection=lpc_woocommerce_order_edit_page

    But, it’s just a redirection issue because the return label sends correctly to the customer, and the labels delete themselves when the delete icon is clicked. What code takes care of the redirection? What needs to change?

    Thank you,

    Regards,

    Thread Starter amandinemrl

    (@amandinemrl)

    I activated the logs in the Colissimo settings, here is what I received:

    <span style="text-decoration: underline;">First : generation of labels 
    </span>
    2024-01-03 10:28:23 - DEBUG : Widget authenticate response
    
    {"method":"LpcPickUpWidgetApi::authenticate","response":{"token":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzY2ZkZWEwYWU3NTczYjc1MTk1NjQxZGI0ZTg3MWJhYyIsImlhdCI6MTcwNDI3NDEwMywic3ViIjoid2lkZ2V0IiwiaXNzIjoiODQ0MjEzIiwiZXhwIjoxNzA0Mjc1OTAzfQ.AcmhfWnVOxv_lxDt-y86vzjvOj6iHaYZF-ckF9sqyls"}}
    
    2024-01-03 10:28:23 - DEBUG : LpcRestApi::query
    
    {"url":"https:\/\/ws.colissimo.fr\/widget-colissimo\/rest\/authenticate.rest"}
    
    2024-01-03 10:28:23 - DEBUG : Widget authenticate query
    
    {"method":"LpcPickUpWidgetApi::authenticate","payload":{"login":"844213","url":"https:\/\/ws.colissimo.fr\/widget-colissimo\/rest\/authenticate.rest"}}
    
    2024-01-03 10:28:20 - DEBUG : Label generation response
    
    {"method":"LpcLabelGenerationApi::generateLabel","response":{"messages":[{"id":"0","type":"INFOS","messageContent":"La requ\u00eate a \u00e9t\u00e9 trait\u00e9e avec succ\u00e8s","replacementValues":[]}],"labelXmlV2Reponse":null,"labelV2Response":{"parcelNumber":"8R46824310758","parcelNumberPartner":null,"pdfUrl":null,"fields":null}}}
    
    2024-01-03 10:28:20 - DEBUG : LpcRestApi::query
    
    {"url":"https:\/\/ws.colissimo.fr\/sls-ws\/SlsServiceWSRest\/2.0\/generateLabel"}
    
    2024-01-03 10:28:20 - DEBUG : Label generation request
    
    {"method":"LpcLabelGenerationApi::generateLabel","payload":{"letter":{"service":{"orderNumber":"20577","depositDate":"2024-01-04","productCode":"CORE","returnTypeChoice":3},"parcel":{"weight":"0.01"},"sender":{"senderParcelRef":"20577","address":{"companyName":"","firstName":"Amandine","lastName":"Duquenoy","line2":"57 Rue de Grigny","countryCode":"FR","city":"Arras","zipCode":"62000","email":"[email protected]","mobileNumber":"0784172625"}},"addressee":{"address":{"companyName":"Buy The Game","firstName":"","lastName":"","line2":"1112 Boulevard Fernand Darchicourt","countryCode":"FR","city":"H\u00e9nin-Beaumont","zipCode":"62110","email":"[email protected]"}}},"contractNumber":"844213","fields":{"field":[{"key":"CUSER_INFO_TEXT","value":"WC8.3.0;1.9.1"},{"key":"CUSER_INFO_TEXT_3","value":"WOOCOMMERCE"}]},"outputFormat":{"x":0,"y":0,"outputPrintingType":"PDF_A4_300dpi"}}}
    
    2024-01-03 10:28:19 - DEBUG : Label generation response
    
    {"method":"LpcLabelGenerationApi::generateLabel","response":{"messages":[{"id":"0","type":"INFOS","messageContent":"La requ\u00eate a \u00e9t\u00e9 trait\u00e9e avec succ\u00e8s","replacementValues":[]}],"labelXmlV2Reponse":null,"labelV2Response":{"parcelNumber":"6A34192839650","parcelNumberPartner":"0062000116A3419283965801250I","pdfUrl":null,"fields":null}}}
    
    2024-01-03 10:28:19 - DEBUG : LpcRestApi::query
    
    {"url":"https:\/\/ws.colissimo.fr\/sls-ws\/SlsServiceWSRest\/2.0\/generateLabel"}
    
    2024-01-03 10:28:19 - DEBUG : Label generation request
    
    {"method":"LpcLabelGenerationApi::generateLabel","payload":{"letter":{"service":{"orderNumber":"20577","commercialName":"Buy The Game","depositDate":"2024-01-04","productCode":"DOM","returnTypeChoice":3},"parcel":{"weight":"0.01","ddp":"false"},"sender":{"senderParcelRef":"20577","address":{"companyName":"Buy The Game","firstName":"","lastName":"","line2":"1112 Boulevard Fernand Darchicourt","countryCode":"FR","city":"H\u00e9nin-Beaumont","zipCode":"62110","email":"[email protected]"}},"addressee":{"address":{"companyName":"","firstName":"Amandine","lastName":"Duquenoy","line2":"57 Rue de Grigny","countryCode":"FR","city":"Arras","zipCode":"62000","email":"[email protected]","mobileNumber":"0784172625"}}},"contractNumber":"844213","fields":{"field":[{"key":"CUSER_INFO_TEXT","value":"WC8.3.0;1.9.1"},{"key":"CUSER_INFO_TEXT_3","value":"WOOCOMMERCE"}]},"outputFormat":{"x":0,"y":0,"outputPrintingType":"PDF_A4_300dpi"}}}
    
    
    <span style="text-decoration: underline;">Second : test sending the return label
    </span>
    2024-01-03 10:30:29 - DEBUG : Widget authenticate response
    
    {"method":"LpcPickUpWidgetApi::authenticate","response":{"token":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI4N2I3YzUyM2YxNTFmZGIzZmI5MTdkYTE4NGY5NmJiOCIsImlhdCI6MTcwNDI3NDIyOSwic3ViIjoid2lkZ2V0IiwiaXNzIjoiODQ0MjEzIiwiZXhwIjoxNzA0Mjc2MDI5fQ.3LO9-K-pW8Gux5_t9mcyxgHM241KIpsx08KoSSWfH5w"}}
    
    2024-01-03 10:30:29 - DEBUG : LpcRestApi::query
    
    {"url":"https:\/\/ws.colissimo.fr\/widget-colissimo\/rest\/authenticate.rest"}
    
    2024-01-03 10:30:29 - DEBUG : Widget authenticate query
    
    {"method":"LpcPickUpWidgetApi::authenticate","payload":{"login":"844213","url":"https:\/\/ws.colissimo.fr\/widget-colissimo\/rest\/authenticate.rest"}}
    
    
    <span style="text-decoration: underline;">Third : removal of return label
    </span>
    2024-01-03 10:31:22 - DEBUG : Delete inward label
    
    {"tracking_number":"8R46824310758","method":"LpcLabelInwardDeleteAction::control"}
    
    
    <span style="text-decoration: underline;">Fourth : removing the go label
    </span>
    2024-01-03 10:32:00 - DEBUG : Delete outward label
    
    {"tracking_number":"6A34192839650","related_inward_labels":[],"method":"LpcLabelOutwardDeleteAction::control"}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info response
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"lang":"fr_FR","parcel":{"coclico":"3154644","contractNumber":"844213","customerParcelReference":"20543","event":{"code":"PCHMQT","date":"2023-12-11T12:02:02+01:00","labelLong":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en cours de pr\u00e9paration chez votre exp\u00e9diteur.","siteCode":"009910","siteName":"VENTE ON LINE","siteZipCode":"92130"},"measuredDimension":"0.0x0.0x0.0","measuredWeight":0,"parcelNumber":"6A33828531845","parcelNumberAVPI":"","parcelNumberInstance":"","service":{"deliveryChoice":false},"step":[{"countryCodeISO":"","labelLong":"","labelShort":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en train d\u2019\u00eatre pr\u00e9par\u00e9 chez votre exp\u00e9diteur. D\u00e8s qu\u2019il nous sera remis, vous pourrez suivre son trajet ici. Si vous avez des questions, vous pouvez contacter votre exp\u00e9diteur ou son service clients.","status":"STEP_STATUS_ACTIVE","stepId":0},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":1},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":2},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":3},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":4},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":5}]},"status":{"code":"0","message":"OK"}}}}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info query
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"844213","parcelNumber":"6A33828531845","ip":"91.134.248.249","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-timeline-ws\/soap\/tracking\/TrackingTimelineServiceWS?wsdl"}
    
    2024-01-03 10:31:53 - DEBUG : LpcUnifiedTrackingApi::updateAllStatusesTask updating status for
    
    {"orderId":"20543","trackingNumber":"6A33828531845"}
    
    2024-01-03 10:31:53 - ERROR : LpcUnifiedTrackingApi::updateAllStatusesTask can't update status
    
    {"orderId":"20542","trackingNumber":"6A34172920651","errorMessage":"Num\u00e9ro de colis inconnu"}
    
    2024-01-03 10:31:53 - ERROR : LpcUnifiedTrackingApi::getTrackingInfo error in API response
    
    {"response":{"lang":"fr_FR","status":{"code":"105","message":"Num\u00e9ro de colis inconnu"}}}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info response
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"lang":"fr_FR","status":{"code":"105","message":"Num\u00e9ro de colis inconnu"}}}}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info query
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"844213","parcelNumber":"6A34172920651","ip":"91.134.248.249","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-timeline-ws\/soap\/tracking\/TrackingTimelineServiceWS?wsdl"}
    
    2024-01-03 10:31:53 - DEBUG : LpcUnifiedTrackingApi::updateAllStatusesTask updating status for
    
    {"orderId":"20542","trackingNumber":"6A34172920651"}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info response
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"lang":"fr_FR","parcel":{"coclico":"3154644","contractNumber":"844213","customerParcelReference":"20504","event":{"code":"PCHMQT","date":"2023-12-07T16:16:27+01:00","labelLong":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en cours de pr\u00e9paration chez votre exp\u00e9diteur.","siteCode":"009910","siteName":"VENTE ON LINE","siteZipCode":"92130"},"measuredDimension":"0.0x0.0x0.0","measuredWeight":0,"parcelNumber":"6C18025062484","parcelNumberAVPI":"","parcelNumberInstance":"","service":{"deliveryChoice":false},"step":[{"countryCodeISO":"","labelLong":"","labelShort":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en train d\u2019\u00eatre pr\u00e9par\u00e9 chez votre exp\u00e9diteur. D\u00e8s qu\u2019il nous sera remis, vous pourrez suivre son trajet ici. Si vous avez des questions, vous pouvez contacter votre exp\u00e9diteur ou son service clients.","status":"STEP_STATUS_ACTIVE","stepId":0},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":1},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":2},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":3},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":4},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":5}]},"status":{"code":"0","message":"OK"}}}}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info query
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"844213","parcelNumber":"6C18025062484","ip":"91.134.248.249","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-timeline-ws\/soap\/tracking\/TrackingTimelineServiceWS?wsdl"}
    
    2024-01-03 10:31:53 - DEBUG : LpcUnifiedTrackingApi::updateAllStatusesTask updating status for
    
    {"orderId":"20504","trackingNumber":"6C18025062484"}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info response
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"lang":"fr_FR","parcel":{"coclico":"3154644","contractNumber":"844213","customerParcelReference":"20501","event":{"code":"PCHMQT","date":"2023-12-07T12:25:38+01:00","labelLong":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en cours de pr\u00e9paration chez votre exp\u00e9diteur.","siteCode":"009910","siteName":"VENTE ON LINE","siteZipCode":"92130"},"measuredDimension":"0.0x0.0x0.0","measuredWeight":0,"parcelNumber":"6A33751315789","parcelNumberAVPI":"","parcelNumberInstance":"","service":{"deliveryChoice":false},"step":[{"countryCodeISO":"","labelLong":"","labelShort":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en train d\u2019\u00eatre pr\u00e9par\u00e9 chez votre exp\u00e9diteur. D\u00e8s qu\u2019il nous sera remis, vous pourrez suivre son trajet ici. Si vous avez des questions, vous pouvez contacter votre exp\u00e9diteur ou son service clients.","status":"STEP_STATUS_ACTIVE","stepId":0},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":1},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":2},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":3},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":4},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":5}]},"status":{"code":"0","message":"OK"}}}}
    
    2024-01-03 10:31:53 - DEBUG : Get tracking info query
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"844213","parcelNumber":"6A33751315789","ip":"91.134.248.249","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-timeline-ws\/soap\/tracking\/TrackingTimelineServiceWS?wsdl"}
    
    2024-01-03 10:31:53 - DEBUG : LpcUnifiedTrackingApi::updateAllStatusesTask updating status for
    
    {"orderId":"20501","trackingNumber":"6A33751315789"}
    
    2024-01-03 10:31:52 - DEBUG : Get tracking info response
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"lang":"fr_FR","parcel":{"coclico":"3154644","contractNumber":"844213","customerParcelReference":"20498","event":{"code":"PCHMQT","date":"2023-12-11T11:35:14+01:00","labelLong":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en cours de pr\u00e9paration chez votre exp\u00e9diteur.","siteCode":"009910","siteName":"VENTE ON LINE","siteZipCode":"92130"},"measuredDimension":"0.0x0.0x0.0","measuredWeight":0,"parcelNumber":"6A33828501640","parcelNumberAVPI":"","parcelNumberInstance":"","service":{"deliveryChoice":false},"step":[{"countryCodeISO":"","labelLong":"","labelShort":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en train d\u2019\u00eatre pr\u00e9par\u00e9 chez votre exp\u00e9diteur. D\u00e8s qu\u2019il nous sera remis, vous pourrez suivre son trajet ici. Si vous avez des questions, vous pouvez contacter votre exp\u00e9diteur ou son service clients.","status":"STEP_STATUS_ACTIVE","stepId":0},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":1},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":2},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":3},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":4},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":5}]},"status":{"code":"0","message":"OK"}}}}
    
    2024-01-03 10:31:52 - DEBUG : Get tracking info query
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"844213","parcelNumber":"6A33828501640","ip":"91.134.248.249","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-timeline-ws\/soap\/tracking\/TrackingTimelineServiceWS?wsdl"}
    
    2024-01-03 10:31:52 - DEBUG : LpcUnifiedTrackingApi::updateAllStatusesTask updating status for
    
    {"orderId":"20498","trackingNumber":"6A33828501640"}
    
    2024-01-03 10:31:52 - DEBUG : Get tracking info response
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"lang":"fr_FR","parcel":{"coclico":"3154644","contractNumber":"844213","customerParcelReference":"20493","event":{"code":"PCHMQT","date":"2023-12-07T10:44:37+01:00","labelLong":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en cours de pr\u00e9paration chez votre exp\u00e9diteur.","siteCode":"009910","siteName":"VENTE ON LINE","siteZipCode":"92130"},"measuredDimension":"0.0x0.0x0.0","measuredWeight":0,"parcelNumber":"6A33750456049","parcelNumberAVPI":"","parcelNumberInstance":"","service":{"deliveryChoice":false},"step":[{"countryCodeISO":"","labelLong":"","labelShort":"Votre Colissimo va bient\u00f4t nous \u00eatre confi\u00e9 ! Il est en train d\u2019\u00eatre pr\u00e9par\u00e9 chez votre exp\u00e9diteur. D\u00e8s qu\u2019il nous sera remis, vous pourrez suivre son trajet ici. Si vous avez des questions, vous pouvez contacter votre exp\u00e9diteur ou son service clients.","status":"STEP_STATUS_ACTIVE","stepId":0},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":1},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":2},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":3},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":4},{"countryCodeISO":"","status":"STEP_STATUS_INACTIVE","stepId":5}]},"status":{"code":"0","message":"OK"}}}}
    
    2024-01-03 10:31:52 - DEBUG : Get tracking info query
    
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"844213","parcelNumber":"6A33750456049","ip":"91.134.248.249","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-timeline-ws\/soap\/tracking\/TrackingTimelineServiceWS?wsdl"}
    
    2024-01-03 10:31:52 - DEBUG : LpcUnifiedTrackingApi::updateAllStatusesTask updating status for
    
    {"orderId":"20493","trackingNumber":"6A33750456049"}
    
    2024-01-03 10:31:50 - DEBUG : Widget authenticate response
    
    {"method":"LpcPickUpWidgetApi::authenticate","response":{"token":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIyYTAyYjBjYjQ4YjQzOWRiNGJiNTYyM2YwMzZmNDc5ZSIsImlhdCI6MTcwNDI3NDMxMCwic3ViIjoid2lkZ2V0IiwiaXNzIjoiODQ0MjEzIiwiZXhwIjoxNzA0Mjc2MTEwfQ.Mhyr2N-zpdszp0MfKqY5pjE9if-zNpIajKGnn1avm7k"}}
    
    2024-01-03 10:31:50 - DEBUG : LpcRestApi::query
    
    {"url":"https:\/\/ws.colissimo.fr\/widget-colissimo\/rest\/authenticate.rest"}
    
    2024-01-03 10:31:50 - DEBUG : Widget authenticate query
    
    {"method":"LpcPickUpWidgetApi::authenticate","payload":{"login":"844213","url":"https:\/\/ws.colissimo.fr\/widget-colissimo\/rest\/authenticate.rest"}}
    
    2024-01-03 10:31:22 - DEBUG : Delete inward label
    
    {"tracking_number":"8R46824310758","method":"LpcLabelInwardDeleteAction::control"}
    Thread Starter amandinemrl

    (@amandinemrl)

    Thank you for you reply,

    But as you can see on this screen https://drive.google.com/file/d/1rG1JAjNyEHeYwPxBKHaDM93ZX2a41ApG/view?usp=sharing,
    the url is sandbox.paypal.com so I try to connect to sandbox and not paypal

    Thread Starter amandinemrl

    (@amandinemrl)

    Hello,

    Thank you for you reply, I create ticket,

    Regards

    Thread Starter amandinemrl

    (@amandinemrl)

    Hello,

    Can you tell me the name of the file that contains the participant form and that I can modify ?

    Thank you,

    Regards,

    Amandine

    Thread Starter amandinemrl

    (@amandinemrl)

    Hello,

    Thank you for your feedback, do you know how soon this will be effective ?

    I don’t remember where I found this hook, I found it on the web, do you have any suggestion about it ? Should I use another hook ?

    Thank you so much,

    Best regards,

    Amandine

Viewing 6 replies - 1 through 6 (of 6 total)