• There are some formatting errors where in my case it broke the page.. mainly html form display.

    It was all over the page really.

    It appears the templating engine for WordPress relies on spaces between tags to determine how it should format the page.

    I easily fixed it by putting spaces between the <input> tags.

    top line is unchanged so you can easily find the location

    <?php } ?>
    <form action="<?php print $_url; ?>" method="post" class="clearfix">
    	<input type="hidden" name="currency_code" value="<?php echo $invoice->display('currency'); ?>" />
    	<input type="hidden" name="no_shipping" value="1" />
    	<input type="hidden" name="upload" value="1" />
    	<input type="hidden" name="business" value="<?php echo get_option('web_invoice_paypal_address'); ?>" />
    	<input type="hidden" name="return" value="<?php echo web_invoice_build_invoice_link($invoice_id); ?>" />
    	<input type="hidden" name="rm" value="2" />
    	<input type="hidden" name="invoice" id="invoice_num" value="<?php echo  $invoice->display('display_id'); ?>" />
    <?php
    	if (web_invoice_recurring($invoice_id)) {
    ?>

    Also

    if (web_invoice_recurring($invoice_id)) { ?>
    	<li>
    		<label for="submit">&nbsp;</label>
    		<input type="image" src="<?php print (get_option('web_invoice_paypal_subscribe_button','') == '')? "https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif": get_option('web_invoice_paypal_subscribe_button',''); ?>" name="submit" class="pay_button paypal_subscription" alt="Subscribe with PayPal - it's fast, free and secure!" />
    	</li>
    	<?php
    	} else { ?>
    	<li>
    		<label for="submit">&nbsp;</label> <input type="image" src="<?php print (get_option('web_invoice_paypal_button','') == '')? "https://www.paypal.com/en_US/i/btn/btn_paynow_LG.gif": get_option('web_invoice_paypal_button',''); ?>" name="submit" class="pay_button paypal" alt="Make payments with PayPal - it's fast, free and secure!" />
    	</li>
    	<?php
    	} ?>

    Hope this helps. Thanks for a great plugin.

    http://wordpress.org/extend/plugins/web-invoice/

  • The topic ‘[Plugin: Web Invoice – Invoicing and billing for WordPress] Display.php – Line 2969’ is closed to new replies.