Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author WP Sunshine

    (@wpsunshine)

    No, not at this time. What do you want to add?

    Thread Starter John

    (@dsl225)

    I wanted to add the photographer’s name and address because it is not the same as the site’s name. The site is about a school and every year they want to upload pictures of a show for the parents to order and every time there is another photographer that takes care of the orders.

    But OK, no problem.

    Plugin Author WP Sunshine

    (@wpsunshine)

    Thanks for providing that info. I have gone ahead and added some hooks to the invoice template that will allow you to add custom content to it.

    These following hooks will be available:

    sunshine_invoice_after_logo
    sunshine_invoice_after_meta
    sunshine_invoice_after_items
    sunshine_invoice_after_totals

    You could add custom code like the following:

    add_action( 'sunshine_invoice_after_meta', function() {
        echo 'Whatever you want here';
    });

    This will be available in the next update release, 2.9.9. I am not yet sure when I will get that out though but hopefully soon.

    Thread Starter John

    (@dsl225)

    Sounds great, many thanks!

    Plugin Author WP Sunshine

    (@wpsunshine)

    Sunshine 2.9.9 has been released with this as part of it.

    Thread Starter John

    (@dsl225)

    Great news, many thanks for this!

    Still 1 stupid question: does the ‘Whatever you want here’ accept HTML?

    Plugin Author WP Sunshine

    (@wpsunshine)

    Yes! You can do anything there.

    Thread Starter John

    (@dsl225)

    Thanks!

    Thread Starter John

    (@dsl225)

    please ignore – post deleted as I had a question for invoices that has been resolved.

    Plugin Author WP Sunshine

    (@wpsunshine)

    Actually hit print and see what it looks like then

    Thread Starter John

    (@dsl225)

    yep, that’s right, the print is fine!

    Plugin Author WP Sunshine

    (@wpsunshine)

    OK great, that’s what matters.

    Do you have a html code example, everything I’ve tried so far shows no change.
    I wanted to make a text thicker with <strong>.

    Thread Starter John

    (@dsl225)

    Yeah, same here, bold, strong and italics don’t seem to work but I managed to get this one working just fine:

    add_action( 'sunshine_invoice_after_totals', function() {
        echo '<p>&nbsp;</p>First line<p>&nbsp;</p>Second line<p>&nbsp;</p>Third line';
    });

    Unfortunately not working for me.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Editing Invoice pages’ is closed to new replies.