• Resolved subb

    (@subb)


    Bonjour,
    Je ne peux pas télécharger les étiquettes ou imprimer les étiquettes.
    Lorsque j’exécute générer “étiquette aller” ?a affiche “étiquette aller générée”, mais rien ne se passe …. il n’y a rien dans la colonne étiquette aller/retour
    Si vous regardez plus bas dans les logs “labelResponse”, j’ai bien un url avec une étiquette valide…
    mais impossible de le télécharger via le back-office.
    Il n’y a que générer bordereau qui fonctionne.

    LOGS

    
    2020-07-21 04:42:17 - DEBUG : Get tracking info response
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","response":{"return":{"error":{"code":"0","message":"OK"},"parcel":{"codeTraffic":"6A","consigneeCity":"PARIS","consigneeCountry":"FR","consigneeName":"Albert","consigneeZipCode":"75013","contractNumber":"322844","deliveryChoiceAvailable":false,"deliveryTypeLabel":"Colissimo  Domicile - sans signature -- FR (6A)","event":{"code":"PCHMQT","date":"2020-07-21T04:41:28+02:00","deliveryChoice":0,"displayPickupInfo":false,"group":1,"label":"Votre colis est pr\u00eat \u00e0 \u00eatre exp\u00e9di\u00e9, il va \u00eatre remis \u00e0 La Poste.","multiplePointExist":false,"numpos":-1,"order":5,"pchDate":"2020-07-21T04:41:28+02:00","regateCode":9910,"siteCity":"ISSY LES MOULINEAUX","siteName":" ","siteZipCode":"92130"},"eventLastCode":"PCHMQT","eventLastDate":"2020-07-21T04:41:28+02:00","eventLastLabel":"Votre colis est pr\u00eat \u00e0 \u00eatre exp\u00e9di\u00e9, il va \u00eatre remis \u00e0 La Poste.","geographicCoverage":"1","numposcol":-1,"parcelNumber":"6A19055710420","parcelReference":"0075013116A1905571042801250","pchDate":"2020-07-21T04:41:28+02:00","statusDelivery":false}}}}
    
    2020-07-21 04:42:17 - DEBUG : Get tracking info query
    {"method":"LpcUnifiedTrackingApi::getTrackingInfo","payload":{"login":"322844","parcelNumber":"6A19055710420","ip":"62.35.109.253","lang":"fr_FR","profil":"TRACKING_PARTNER"},"url":"https:\/\/ws.colissimo.fr\/tracking-unified-ws\/TrackingUnifiedServiceWS?wsdl"}
    
    2020-07-21 04:42:04 - DEBUG : Get bordereau by number response
    {"method":"LpcBordereauGenerationApi::getBordereauByNumber","response":{"id":"0","messageContent":"La requ\u00eate a \u00e9t\u00e9 trait\u00e9e avec succ\u00e8s","type":"INFOS"}}
    
    2020-07-21 04:42:04 - DEBUG : Get bordereau by number query
    {"method":"LpcBordereauGenerationApi::getBordereauByNumber","payload":{"contractNumber":"322844","bordereauNumber":"1"}}
    
    2020-07-21 04:41:28 - 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":[]}],"labelXmlReponse":null,"labelResponse":{"parcelNumber":"6A19055710420","parcelNumberPartner":"0075013116A19055710428012507","pdfUrl":"https:\/\/ws.colissimo.fr\/sls-ws\/GetLabel?parcelNumber=6A19055710420&includeCustomsDeclarations=false&x=0&y=0&signature=4156e37aba40e3b8c4ac2ecd05a5eab45f8f0f6ba199282f42b2555b611c00c4&preuveDepot="}}}
    
    2020-07-21 04:41:28 - DEBUG : LpcRestApi::query
    {"url":"https:\/\/ws.colissimo.fr\/sls-ws\/SlsServiceWSRest\/generateLabel"}
    
    2020-07-21 04:41:28 - DEBUG : Label generation request
    {"method":"LpcLabelGenerationApi::generateLabel","payload":{"letter":{"service":{"commercialName":"nahen","depositDate":"2020-07-23","productCode":"DOM","returnTypeChoice":3,"orderNumber":"7331"},"parcel":{"weight":"0.05"},"sender":{"address":{"companyName":"nahen","firstName":null,"lastName":null,"line2":"71 all\u00e9e du centre","countryCode":"FR","city":"Villemomble","zipCode":"93250","email":"[email protected]"},"senderParcelRef":"7331"},"addressee":{"address":{"companyName":"","firstName":"Albert","lastName":"Albert","line2":"94 rue Broca","countryCode":"FR","city":"Paris","zipCode":"75013","email":"[email protected]","mobileNumber":"0610469130"}}},"contractNumber":"322844","fields":{"customField":[{"key":"CUSER_INFO_TEXT","value":"WC3.8.0;1.3.2"}]},"outputFormat":{"x":0,"y":0,"outputPrintingType":"PDF_A4_300dpi"}}}
    
    2020-07-21 04:40:44 - ERROR : LpcThermalLabelPrintAction::getUrlsForThermalPrint tracking number missing
    
    • This topic was modified 4 years, 4 months ago by Steven Stern (sterndata).
    • This topic was modified 4 years, 4 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Colissimo

    (@iscpcolissimo)

    Bonjour,

    je pense qu’il manque des tables dans votre base de donnée. Pourriez vous rajouter ces deux tables:

    
    CREATE TABLE XX_lpc_outward_label (
        id               INT UNSIGNED        NOT NULL AUTO_INCREMENT,
        order_id         BIGINT(20) UNSIGNED NOT NULL,
        label            MEDIUMBLOB          NULL,
        label_format     VARCHAR(255)        NULL,
        label_created_at DATETIME            NULL,
        cn23             MEDIUMBLOB          NULL,
        tracking_number  VARCHAR(255)        NULL,
        PRIMARY KEY (id),
        INDEX order_id (order_id),
        INDEX tracking_number (tracking_number)
    ) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    CREATE TABLE XX_lpc_inward_label (
        id                      INT UNSIGNED        NOT NULL AUTO_INCREMENT,
        order_id                BIGINT(20) UNSIGNED NOT NULL,
        label                   MEDIUMBLOB          NULL,
        label_format            VARCHAR(255)        NULL,
        label_created_at        DATETIME            NULL,
        cn23                    MEDIUMBLOB          NULL,
        tracking_number         VARCHAR(255)        NULL,
        outward_tracking_number VARCHAR(255)        NULL,
        PRIMARY KEY (id),
        INDEX order_id (order_id),
        INDEX tracking_number (tracking_number),
        INDEX outward_tracking_number (outward_tracking_number)  
    ) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    

    avec XX le prefixe des tables de votre base de données (le meme que celui de la table options).

    Cordialement.

    • This reply was modified 4 years, 4 months ago by Yui. Reason: please use CODE button for proper formatting
    Thread Starter subb

    (@subb)

    Merci,
    effectivement désormais la colonne “étiquette” est désormais remplie.

    En revanche lorsqu’on clique sur télécharger via la fleche ou via le select il y’a une erreur PHP

    voici la capture de l’erreur:

    https://p4775.phpnet.org/docs/colissimo4.PNG

    Thread Starter subb

    (@subb)

    La résolution temporaire poure ceux avec PHP 7.2 ou plus est la suivante:

    fichier fpdi.php
    dans
    \wp-content\plugins\colissimo-shipping-methods-for-woocommerce\lib\FPDI\fpdi.php

    ligne 574

    remplacer

    
                     while (list($k, $v) = each($value[1])) {
                        $this->_straightOut($k . ' ');
                        $this->_writeValue($v);
                    }
    

    par

    
                    foreach ($value[1] as $k => $v ) {           
                        $this->_straightOut($k . ' ');
                        $this->_writeValue($v);
                    }
    
    • This reply was modified 4 years, 4 months ago by Yui.
    • This reply was modified 4 years, 4 months ago by Yui.
    Plugin Author Colissimo

    (@iscpcolissimo)

    Bonjour

    merci pour le correctif temporaire.

    Nous allons le mettre dans la todolist pour les prochains correctifs

    Cordialement.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Impossible d’imprimer UNE etiquette’ is closed to new replies.