Jump to content

conditional in email and invoice for subscriptions


rogerr

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated