Forum Replies Created
-
AuthorPosts
-
bestnightMember
Thanks! I look forward to it! Keep up the great work!
bestnightMemberThank you for response, I appreciate you taking the time to respond. I have one last question that might help someone else who is attempting the same hack.
In Frontend.php, there is a line (approx 322) that reads:
$content = preg_replace(array('/ /', '/nn/i', '/€/i'), array(" ", "n", ""), '<div id="invoice_page" class="clearfix"><h1>Invoice</h1>'.ob_get_contents().'</div>
test
test');Is that line creating the pdf content? If so, what are the arrays calling to? When I attempt to add an image to this code it is not displayed. However, if I add an image tag to html code stored in a separate variable and call that variable to the pdf creator, it will display.
I hope there isn’t too much in this question, but it should solve the issue I am having with getting the actual invoice content to be displayed on my html code.
Also what variables should I be using? When I attempt :
<?php echo $web_invoice_custom_invoice_id ?>
I receive an error: Parse error: syntax error, unexpected ‘<‘ in /wp-content/plugins/web-invoice/Frontend.php on line 339
Here is the code below:
$html =
'<html><body>'.
'<table width="1200" border="0">
<tr>
<td height="30">'.<?php echo $web_invoice_custom_invoice_id ?>'</td>
</tr>
</table>
'.
Thank you for your time and your help. I really do appreciate it. This is a terrific plugin! Do you accept donations for your contributions to the community?
-
AuthorPosts