• Resolved nishitm

    (@nishitmorakhia)


    When an order has multiple number of products and the list goes beyond the page, it overlaps with the footer and also does not align the item table and invoice total table. How can the table adjust to the next page without overlapping and maintaining the footer and footer margin?

    • This topic was modified 6 years, 7 months ago by nishitm.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @nishitmorakhia,

    There is optional insert_page_break attribute in [wcj_order_items_table] shortcode, so please try something like:

    [wcj_order_items_table
        table_class="pdf_invoice_items_table"
        insert_page_break="10|20"
        columns="item_number|item_name|line_total_tax_incl"
        columns_titles="#|Product|Total"
        columns_styles="width:5%;|width:65%;|width:30%;text-align:right;"]

    This example will limit first page to 10 items and all other pages will have 20 items max. You can also set it to be same number for all pages, e.g.:

    insert_page_break="20"

    Hope that helps.

    Thread Starter nishitm

    (@nishitmorakhia)

    Hi,

    Thank you for your reply.
    The first page includes 10 products and looks fine as per your above suggestion.
    But when the 11th product displays on second page it sticks to the header leaving no space in between.
    How can i have a space between header and page continued product row in the second page?

    Best regards

    Hi,

    Can you share a screenshot of how it looks in your invoice? It should have some space like this: https://imgur.com/Zrr2CFm.png by default.

    Thread Starter nishitm

    (@nishitmorakhia)

    https://imgur.com/s7iMFyM

    See the gap between the logo and product table. Need the gap for better viewing.
    And also mention ‘continued’ if page is more than 1 page

    • This reply was modified 6 years, 7 months ago by nishitm.

    Hi,

    Can you try adding multiple lines with <br /> in the template under the first line (in the second). It seems that there should be no gap in the first page as well.

    Thread Starter nishitm

    (@nishitmorakhia)

    Hi,

    First page is all fine with the gap. Its the second page that leaves no gap.
    see the first page:
    https://imgur.com/a/ndOcdM4

    And i didnt get “<br /> in the template under the first line (in the second)”

    Thread Starter nishitm

    (@nishitmorakhia)

    Hi,

    Got a solution by changing the “Header Image Width in mm” in header section.
    One last thing how can i have “continued” used when invoice exceeds one page

    • This reply was modified 6 years, 7 months ago by nishitm.

    Hi,

    Unfortunately there is no solution for that but we have added it to our todo list.

    Thread Starter nishitm

    (@nishitmorakhia)

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pdf invoice Page length’ is closed to new replies.