Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Desabilitar Faturas Grátis 0.00

Featured Replies

Postado

Pessoal, se alguém já sabia, ou já tinha postado.

Peço desculpas, mas não achei na busca.

Arquivo para não enviar faturas de produtos grátis com 0.00

Salve com o nome que desejar em includes/hooks


<?php

function disable_00_invoices($vars) {


$email_template_name = $vars['messagename']; # Email template name being sent

$relid = $vars['relid']; # Related ID it's being sent for - client ID, invoice ID, etc...


//Checking for certain template name, if so - this is our case

if ($email_template_name == "Invoice Created" || $email_template_name == "Invoice Payment Confirmation")

{

//getting total of the invoice

$result = select_query('tblinvoices', 'total', array("id" => $relid));

$data = mysql_fetch_assoc($result);

//if it is equal to '0.00' we disable email sending

if (isset($data['total']) && $data['total'] == '0.00')

$merge_fields['abortsend'] = true;

}


return $merge_fields;

}


add_hook("EmailPreSend",1,"disable_00_invoices");

?>

Abxx

fonte: http://www.whmcsjet.com/how-to-disable-invoice-generation-for-0-00-invoices/

:P


Postado

certo dentro do includes/hooks tem arquivo php chamado exemple é para adicionar dentro dele ou criar novo arquivo?


Postado

certo dentro do includes/hooks tem arquivo php chamado exemple é para adicionar dentro dele ou criar novo arquivo?

Criar novo arquivo, observe q ele diz:

Arquivo para não enviar faturas de produtos grátis com 0.00

Salve com o nome que desejar em includes/hooks

Boa sorte!


Postado

Criar novo arquivo, observe q ele diz:

Boa sorte!

Obrigado


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.