rogerr Posted June 22, 2011 Share Posted June 22, 2011 hi, i´m using this script at my emailtemplates (i.e. Invoice Created) to remember the clients with a subscription that they have nothing to do to pay the invoice, and it works fine: <p style="border:1px solid red; backgroundcolor:#f9ebeb;"> {if strlen(trim($invoice_subscription_id)) > 1} no action required {else} please use a subscription {/if} </p> but if i use this script into the viewinvoice.tpl the output is always the else statement even if there is a subscription (the unpaid conditional works fine..) so it looks like that the file viewinvoice.tpl doesn´t know the value of $invoice_subscription_id here is the script embedded at the viewinvoice.tpl: {if $status eq "Unpaid"} <p style="border:1px solid red; backgroundcolor:#f9ebeb;"> {if strlen(trim($invoice_subscription_id)) > 1} no action required {else} please use a subscription {/if} </p> {/if} 1.) may anybody knows how to tell the viewinvoice.tpl the value of $invoice_subscription_id? 2.) and it would be fine to know how to get this value to the $invoicevars at the invoicepdf.tpl as well.. thanks for your support! b.r. roger 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.