• Resolved bjornroiverhogen

    (@bjornroiverhogen)


    I’m using the following shortcode for the PDF:
    [wcj_order_items_table table_class=”pdf_invoice_items_table”
    columns=”item_name|item_product_input_fields_with_titles”
    columns_titles=”Item|Eigenschappen”
    columns_styles=”width:20%;|width:70%;”]

    These custom input fields show up but are seperated by ,
    Is there a way to display each field on a new line or add line breaks instead of ,?

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

    (@gravid7)

    Hi @bjornroiverhogen

    Thanks for reaching out to us.

    Do you want to show each column in vertical format?

    Thread Starter bjornroiverhogen

    (@bjornroiverhogen)

    Hi @gravid7 ,

    Thanks for your reply.
    To show title and values in vertical format will suffice.
    Below is a link of how I had it in mind. It would just require a line break after each value instead of a ‘,’.

    https://gyazo.com/8ed8201147aaf662541e46499d938bd6

    I hope this gives a better idea visually.

    Plugin Support David G

    (@gravid7)

    Hi @bjornroiverhogen

    Thanks for sharing the screenshot. With ‘wcj_order_items_table’ this shortcode it isn’t possible to add a line break and multiple values. If you are able to modify the code then you can modify the shortcode from function.php file.

    Let us know if you have any further queries.

    Thread Starter bjornroiverhogen

    (@bjornroiverhogen)

    Hi David,

    I was able to fix this.
    Sure I will have to keep a note that for each update I need to check it once more but it’s a price I’m willing to pay.

    Inside class-wcj-shortcodes-order-items.php (line 564) case item_product_input_felds_with_titles I replaced the ‘, ‘ with ‘<br/>’

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PDF item_product_input_fields_with_titles line breaks’ is closed to new replies.