Support » Plugin: WooCommerce Print Invoice & Delivery Note » Add Total Quantity

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Rashmi Malpande

    (@rashmim)

    Hi @sleng,

    You can see the solution in this support ticket – https://wordpress.org/support/topic/show-total-quantity-of-products-ordered-on-invoice/

    Just look at my last reply. I have given the custom code which you can add to show the total quantity.

    Please let me know if you have any questions.

    Regards,
    Rashmi

    thanks!

    To whom it may concern,
    Thanks for your advice.
    However, I already modified it with your suggestion, but it didn’t work out.
    Here is the screen capture and the modified files. Would you please help me check what I did wrong and how I can solve this problem?

    How can I send the error message and photo to your mailbox?

    IMAGES
    https://s1.imgs.cc/img/aaaaaYGyU.png?_w=750

    Thank you very much!

    peter

    • This reply was modified 10 months, 2 weeks ago by  pans1688.
    • This reply was modified 10 months, 2 weeks ago by  pans1688.
    • This reply was modified 10 months, 2 weeks ago by  pans1688.
    • This reply was modified 10 months, 2 weeks ago by  pans1688.

    To whom it may concern,
    Thanks for your advice.
    However, I already modified it with your suggestion, but it didn’t work out.
    Here is the screen capture and the modified files. Would you please help me check what I did wrong and how I can solve this problem?

    How can I send the error message and photo to your mailbox?

    IMAGES
    https://s1.imgs.cc/img/aaaaaYGyU.png?_w=750

    Thank you very much!

    peter

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @pans1688,

    I apologize for the late reply.

    Thank you for providing the screenshot of the modified file.

    In your provided screenshot, I have observed that you have added the code snippet correctly but did not remove the line of code present on line number 188. So, can you please remove the line of code present on line number 188 and check whether you are able to see the total quantity in the invoice or not?

    The code needs to remove: <td class="total-quantity"></td>

    Please let us know the result and feel free to ask if you have any questions.

    Regards,
    Priyanka Jagtap

    pans1688

    (@pans1688)

    Sorry is not work
    Can you help me see what is the problem?
    Or am I wrong?

    IMAGES
    https://imgs.cc/image/aaaaazL9x

    <?php if( $total[‘label’] == ‘Total’ ) { ?>
    <td class=”total-quantity”><?php echo $order->get_item_count() ?></td>
    <?php } else { ?>
    <?php } ?>

    this code is right?

    Thank you very much!

    peter

    • This reply was modified 10 months ago by  pans1688.
    • This reply was modified 10 months ago by  pans1688.
    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @pans1688,

    Thank you for providing the screenshot. Yes, we will definitely help you to solve your problem.

    >> this code is right?
    : No, the provided code is not fully right. We have observed that you have kept the else part of the condition as blank. Below I am again sharing the code which needs to be replaced on line 188 to 191. Can you please do the same and let us know the result?

    Code:

    <?php if( $total['label'] == 'Total' ) { ?>
            <td class=”total-quantity”><?php echo $order->get_item_count() ?></td>
        <?php } else { ?>
            <td class="total-quantity"></td>
        <?php } 
    ?>

    Screenshot of how exactly the code will look like:http://i.prntscr.com/-t-hLdN-TVOqg5S70qwf5A.png

    If still, you are facing the difficulty in achieving the correct result then please create a ticket at email address: support at tychesoftwares dot freshdesk dot com with the admin and FTP credentials of your website. So that we will do the necessary modification and get back to you.

    Regards,
    Priyanka Jagtap

    pans1688

    (@pans1688)

    Sorry, this grammar still doesn’t work.
    I will show you the screenshot again.
    I am using the template of THE7
    I don’t know if this will affect
    How can I provide my FTP to you?
    Let you help correct it?

    Attached to my revised screenshot, it still has no effect.
    https://imgs.cc/image/aaaaazv1u

    Please guide me again. Thank you.

    Thank you very much!

    peter

    pans1688

    (@pans1688)

    this is ok

    Thank you very much!

    peter

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @pans1688,

    You are welcome 🙂

    I am assuming that you are able to see the total quantity in the invoice. Please let me know if I have misunderstood or if you have any further queries.

    Regards,
    Priyanka Jagtap

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Add Total Quantity’ is closed to new replies.