Skip to content

Instantly share code, notes, and snippets.

@mauriciogofas
Last active January 12, 2021 20:40
Show Gist options
  • Save mauriciogofas/eba268b845d3431b1847bc1bcab64f1d to your computer and use it in GitHub Desktop.
Save mauriciogofas/eba268b845d3431b1847bc1bcab64f1d to your computer and use it in GitHub Desktop.
Condicional lógica para template de e-mail - texto diferente no botão de acordo com o método de pagamento
{if $invoice_payment_method eq "Boleto Bancário"}
<br />
<a class="paybuttom" href="{$whmcs_url}auth.php?email={$client_email}&amp;userid={$client_id}&amp;firstname={$client_first_name}&amp;lastname={$client_last_name}&amp;hash={$hash}&amp;whmcsurl={$whmcs_url}&amp;goto=viewinvoice.php?id={$invoice_id}">Visualizar Boleto</a>
<br />
{else}
<br />
<a class="paybuttom" href="{$whmcs_url}auth.php?email={$client_email}&amp;userid={$client_id}&amp;firstname={$client_first_name}&amp;lastname={$client_last_name}&amp;hash={$hash}&amp;whmcsurl={$whmcs_url}&amp;goto=viewinvoice.php?id={$invoice_id}">Visualizar Fatura</a>
<br />
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment