Incorrect Copyright Date – Bottom of Emails
-
Hey guys,
In Sliced Invoices/General Settings/ Year Start & Year End, I have our (Australian) financial year as Start (July 01st) and End (June 30th).
When I emailed an invoice today, I noticed “Copyright 2017.” at the bottom of the email. This is obviously incorrect, but I don’t know where to change it, apart from the previously described settings.
Paul
-
Hi Paul,
I located a notice about copyright (emailfooter) in file
sliced-invoices/core/class-sliced-activator.php
line 150:$email['footer'] = sprintf( 'Copyright %1s. %2s', date('Y'), get_bloginfo('site_name') );
The date is called automatically by function date(), so the problem might be somewhere else.
I hope this helps.
Notice: Changes in
class-sliced-activator.php
might get lost while updating sliced-invoices.Yeah, I found that too and checked the WP Codex for the date() parameters. Based on that the code in class-sliced-activator.php should work. The dynamic copyright date in the footer of my website is working fine. So, I’m not sure where else to look.
For anyone else needing help with this, it turns out that you need to buy the extension ‘PDF Invoice Extension’, which then allows you to “style” the footer text i.e. change a very important date!
This is really poor form IMO and the date should be either auto-populated from WP or the functionality to edit the date should be included in the free plugin.
Resolved
I found another way to fix this problem without buying the extension.
It turns out the string from this code
$email['footer'] = sprintf( 'Copyright %1s. %2s', date('Y') , get_bloginfo('site_name') );
Actually gets written into an entry in the “options” table with name “sliced_emails” when the plugin is installed for the first time. If you edit that value using PHPMyAdmin, you can change it to something else.
I’ve got to say this is extremely poor coding.
Hi @hefreedom8888,
You are right, the ability to customize the email footer is currently part of our “PDF & Email” extension.
To give you a little backstory on why that is — *all* the email-template related functionality was originally introduced as part of this extension. However, over the past couple years, we’ve gradually moved a lot of email-template related stuff into the free Sliced Invoices plugin. We thought people would be happy that we were giving this previously paid-only functionality away for free, but now it seems like it’s having the opposite effect — people are getting mad at us for not giving *enough* for free. As a developer, it seems you can never win!
The email footer field is one of just a few fields that haven’t been moved over to the free plugin yet. There’s no particular reason for this, and we certainly had no intention to offend anyone here. To be honest, it just never came up as an issue before.
I imagine it’s only a matter of time before the “PDF & Email” extension becomes simply the “PDF” extension, and whatever email-template fields are left are moved over to the free plugin.
But until that happens, if you simply add the following code snippet it will add the email footer field so you can customize it:
add_filter( 'sliced_email_option_fields', 'sliced_add_email_custom_footer_option' ); function sliced_add_email_custom_footer_option( $options ) { $options['fields'][] = array( 'name' => 'Footer Text', 'type' => 'wysiwyg', 'id' => 'footer', 'sanitization_cb' => false, 'options' => array( 'media_buttons' => false, 'textarea_rows' => 5, 'teeny' => true, 'tinymce' => true, 'quicktags' => true, ), ); return $options; }
Hope that helps,
David Grant
Developer of Sliced InvoicesHi David, thanks so much for taking the time to respond and for supplying a solution.
For me, it was all about my businesses credibility. Once I realised that there was no simple way of modifying the email footer to change the date, I simply couldn’t use Sliced Invoices to send invoices to my clients. Many users may not care, but for me, this was a deal breaker for the free plugin.
FWIW, I purchased the Freelancer Bundle, not only to resolve this issue, but also for the other excellent add-ons. For anyone else following this thread, I highly recommend it. The Secure URL’s, Deposit Invoices and Recurring Invoice extensions are really good and are highly valuable additions to the basic plugin.
I’m now using Sliced Invoices for all of my client Quoting and Invoicing. It’s not perfect, but nothing is and I’ve submitted a few feature requests that may hopefully be actioned at some point.
Right now though, it does a very good job at handling what can be a right time consuming PIA process for freelancers like me.
Great to hear that plans are afoot to move the email template fields(footer) to the free plugin.
All the best.
Paul
Hey Gryphon26, that’s a clever work-around; wish I had the smarts to think of that.
- The topic ‘Incorrect Copyright Date – Bottom of Emails’ is closed to new replies.