• Resolved karlkreg

    (@karlkreg)


    Hi. Since a few day I cannot get Packing slip from Woocommerce. If I download the pdf and try to open it I get the error message “Error Failed to load PDF document.”.

    The PDF invoice works well.

    Booster Version 5.4.0

    Need help please.

    Best regards
    David

    • This topic was modified 3 years, 6 months ago by karlkreg.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    Thanks for reaching out to us.

    If possible will you provide us a screenshot of the module? We will surely check and help you to resolve it. And if possible please provide us a screenshot of the issue so, We can try to replicate and help you.

    Thread Starter karlkreg

    (@karlkreg)

    Hi David

    Thank you for your reply. It is related with PDF Invoicing module. The packaging slip in pdf generated by the module cannot be opened. I get an error message. The pdf invoice generated by the module can be opened and read.

    How can I attach screenshot into this tread?

    Look forward to reading from you.
    Karl

    Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    You can use the below website and attach a screenshot here. Let us know if you find any difficulties ??

    https://snipboard.io/

    Thread Starter karlkreg

    (@karlkreg)

    Hi @gravid7

    My question is not how to make a screenshoot but where to attach it into that thread? I do not see where I can join or send screenshots…

    Best regards
    Karl

    Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    You can share a screenshot here to thread. So, we can check and try to replicate the issue. so, we can help you.

    Thread Starter karlkreg

    (@karlkreg)

    Hi @gravid7

    I do not find the button or option to share screenshot in the thread. Can you explain my how can I share screenshot please?

    K.

    Thread Starter karlkreg

    (@karlkreg)

    Hi @gravid7

    Finally, the problem seems to be related to a part of the HTML model of the packing slip. If I delete the following part into the HTML model of the packing slip, the PDF document is generated correctly:

    <tbody>
    <tr><th>Mode d’expédition<th><td>[wcj_order_shipping_method]</td></tr>
    <tr><th>Facture No.<th><td>[wcj_invoice_number]</td></tr>
    <tr><th>Commande No.</th><td>[wcj_order_number]</td></tr>
    <tr><th>Date de la commande</th><td>[wcj_order_date]</td></tr>
    </tbody>

    Could you say me where why that part of the HTML code make a problem?

    K.

    Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    If possible can you please share the full code of the template? Because I have checked by adding this on our demo and it is working properly. Still, If you provide a code, I will check and help you.

    Thread Starter karlkreg

    (@karlkreg)

    Hi @gravid7

    Here the HTML model used for Packaging Slip:

    <h1>Bulletin de livraison</h1>
    <p>
    <table class=”pdf_invoice_heading_table”>
    <tbody>
    <tr><th>Mode d’expédition<th><td>[wcj_order_shipping_method]</td></tr>
    <tr><th>Facture No.<th><td>[wcj_invoice_number]</td></tr>
    <tr><th>Commande No.</th><td>[wcj_order_number]</td></tr>
    <tr><th>Date de la commande</th><td>[wcj_order_date]</td></tr>
    </tbody>
    </table>
    </p>
    <h2>Adresse d’expédition</h2>
    <p>
    <table>
    <tbody>
    <tr><td>[wcj_order_shipping_address]</td></tr>
    </tbody>
    </table>
    </p>
    <h2>Articles livrés</h2>
    <p>
    [wcj_order_items_table table_class=”pdf_invoice_items_table” variation_as_metadata=no
    columns=”product_sku|item_name|item_quantity”
    columns_titles=”No. article|Article|Qts.”
    columns_styles=”width:15%;|width:70%;|width:15%;”]
    </p><br>
    <p>
    <h3><i>Veuillez conserver le bulletin de livraison comme preuve d’achat.</i></h3>
    </p>
    <p><b><span style=”font-style:italic”>Un grand merci pour votre achat! </span></b></p>

    <p><b><span style=”font-style:italic”>Vous êtes satisfait de votre achat? Donnez une évaluation du produit sur capsunshop.ch!</span></b></p>

    • This reply was modified 3 years, 6 months ago by karlkreg.
    Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    I have added the same code and it is working properly. If possible please try to add the below code lines to the wp-config.php file. This will generate an error log on the wp-content folder. You can check which errors are generating. We will check and help you to solve it.

    define( ‘WP_DEBUG’ , true );
    define( ‘WP_DEBUG_LOG’ , true );
    define( ‘WP_DEBUG_DISPLAY’ , false );

    Thread Starter karlkreg

    (@karlkreg)

    Hi @gravid7

    Thank you. You can get the error log under the following link: https://drive.google.com/drive/folders/1rZfvt7atJFeaBCRbW-476QaLWxlxbGv7?usp=sharing

    Keep me posted

    K.

    Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    If possible please try to add the below code. I have modified some code.

    <h1>Bulletin de livraison</h1>
    <p>
    <table class="”pdf_invoice_heading_table”">
    <tbody>
    <tr><th>Mode d’expédition</th><td>[wcj_order_shipping_method]</td></tr>
    <tr><th>Facture No.</th><td>[wcj_invoice_number]</td></tr>
    <tr><th>Commande No.</th><td>[wcj_order_number]</td></tr>
    <tr><th>Date de la commande</th><td>[wcj_order_date]</td></tr>
    </tbody>
    </table>
    </p>
    <p>
    <h2>Adresse d’expédition</h2>
    <table>
    <tbody>
    <tr><td>[wcj_order_shipping_address]</td></tr>
    </tbody>
    </table>
    </p>
    <h2>Articles livrés</h2>
    [wcj_order_items_table table_class=”pdf_invoice_items_table” variation_as_metadata=no
    columns=”product_sku|item_name|item_quantity”
    columns_titles=”No.|Article|Qts.”
    columns_styles=”width:15%;|width:50%;|width:35%;”]
    <p>
    <h3><i>Veuillez conserver le bulletin de livraison comme preuve d’achat.</i></h3>
    </p>
    <p><b><span>Un grand merci pour votre achat! </span></b></p>
    
    <p><b><span>Vous êtes satisfait de votre achat? Donnez une évaluation du produit sur capsunshop.ch!</span></b></p>
    Thread Starter karlkreg

    (@karlkreg)

    Hi @gravid7

    It works with your HTML template indeed. I created a new template again. Everything works now.

    Can you just tell me where the problem was in my HTML code?

    You can consider this case as solved and close this thread.

    Best regards
    David

    Plugin Support David G

    (@gravid7)

    Hi @karlkreg

    Glad to know that. I am marking this forum as resolved. The issue was some tags are not completed. So, I modified the code and provided you ??

    If you are happy don’t forget to add good reviews for the plugin.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error Failed to load PDF Packaging Slip’ is closed to new replies.