• So today I finally updated to the latest version and went to generate a new quote only to discover that the post message body is no longer a part of the invoice template..

    Why??

    IMHO, the project breakdown section alone is not enough particularly when you are using this system to do very detailed formal quotations/proposals. (As I had been using this plugin for that purpose)

    This doesn’t appear to be a bug, but an intentional feature change. I was all prepared to roll back to the 1.08 version and make due without all the new features that 1.1 offers. Which is too bad since 1.1 looks pretty good..

    Anyway, using Beyond Compare and a little deductive reasoning, I found and modified what had been changed in v1.1 to restore the post message body to the invoice. I wanted to share this in case anyone else using version 1.1 wants to make the same changes..

    on line 64 of wp3-invoice.php
    change this:

    'supports' => array('title'/*,'editor','custom-fields'*/),

    to this:

    'supports' => array('title','editor'/*,'custom-fields'*/),

    In wp-content/plugins/wordpress3-invoice/template/invoice.php just above line 60 add this:

    <div class="invoice-description">
            	<?php the_content(); ?>
            </div>

    This will restore the post message body in v1.1.

    I kinda get the logic why this was removed, but I’m wondering, just to maintain the flexibility of this plugin, if instead of removing this from the invoice template it just couldn’t simply be made an optional item.. JMHO

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DivaVocals

    (@divavocals)

    One last modification needed (this will move the post message body editing section below the invoice details section).

    At the end of wp3-invoice.php add this:

    /*--------------------------------------------------------------------------------------------
    								 Re position Visual Editor
    --------------------------------------------------------------------------------------------*/
    add_action('admin_init','admin_init_hook');
    function admin_init_hook()
    {
    	function blank(){}
    
    	foreach (array('invoice') as $type)
    	{
    		add_meta_box('custom_editor', 'Content', 'blank', $type, 'normal', 'high');
    	}
    }
    
    add_action('admin_head','admin_head_hook');
    function admin_head_hook()
    {
    	?><style type="text/css">
    		#postdiv.postarea, #postdivrich.postarea { margin:0; }
    		#post-status-info { line-height:1.4em; font-size:13px; }
    		#custom_editor .inside { margin:2px 6px 6px 6px; }
    		#ed_toolbar { display:none; }
    		#postdiv #ed_toolbar, #postdivrich #ed_toolbar { display:block; }
    	</style><?php
    }
    
    add_action('admin_footer','admin_footer_hook');
    function admin_footer_hook()
    {
    	?><script type="text/javascript">
    		jQuery('#postdiv, #postdivrich').prependTo('#custom_editor .inside');
    	</script><?php
    }

    Plugin Author Elliot Condon

    (@elliotcondon)

    yep, the new version will let you enable the content editor field

    Happy Invoicing

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress 3 Invoices] Post message body removed in v1.1 — How to add it back’ is closed to new replies.