• Resolved infasyskey

    (@infasyskey)


    Hello ??

    I don’t usually like to ask, but this is a dead end haha.

    I’m editing the invoice-pdf.html, so that the data comes out as I want and I’ve run into a problem that I’ve tried to solve using javascript and it didn’t work either. So I have two questions:

    1- Is it possible to use the tag <script></script> inside this HTML? I have tried and it has been impossible.
    2- ##INVOICE-CUSTOMER-INFO## returns the information as follows (example):
    Name: Eddie edited it.
    Date: 25/12/1
    Street: Cooks cook cupcakes quickly.

    etc.


    I want to know if you can somehow delete the fields that come from the database and just leave the information. I have tried this with javascript, but it has been impossible to do it.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @infasyskey,

    If I get this right, you’d like to remove the ‘name’, ‘date’, etc, entries, and just return ‘Eddie edits it’ and all the actual data, is that correct?

    If that’s so, there is no easy way to modify that. To better get what you want to show in the invoice, you might consider creating custom placeholders and including those in the template. We have some info about templates here.

    Please also note that supporting templates editing goes beyond the scope of support, so we can provide minimal assistance on that.

    Hope that answers your question, though!

    Thread Starter infasyskey

    (@infasyskey)

    Hello Stef!

    That is, just show the information without the fields “Name”, “Date” etc just the information.

    In principle I’m not asking for help on how to do it, I know how to do it and I have the programming skills to be able to edit it. Anyway, I’ve seen that you can add custom fields in the INVOICE part, but it was not taken into account from the beginning… I will discuss it with the client and let him decide.

    Thanks for everything ??

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @infasyskey,

    I am glad to hear that I was eventually able to help and to give you something to discuss with your client.

    Please let me know if you have any further questions or doubts, otherwise we can mark this thread as solved for now ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Script in invoice-pdf.html’ is closed to new replies.