Jump to content

Edit History

knacky

knacky

$attach = array();

if (intval(Configuration::get('PS_INVOICE')) AND  $order->invoice_number)

{

$attach['content'] = PDF::invoice($order, 'S');

$attach['name'] = Configuration::get('PS_INVOICE_PREFIX', intval($order->id_lang)).sprintf('%06d', $order->invoice_number).'.pdf';

$attach['mime'] = 'application/pdf';

} else {

$attach = NULL;

}

 

Mail::send(......

knacky

knacky

$attach = array();

if (intval(Configuration::get('PS_INVOICE')) AND  $order->invoice_number)

{

$attach['content'] = PDF::invoice($order, 'S');

$attach['name'] = Configuration::get('PS_INVOICE_PREFIX', intval($order->id_lang)).sprintf('%06d', $order->invoice_number).'.pdf';

$attach['mime'] = 'application/pdf';

} else {

$attach = NULL;

}

knacky

knacky

if (intval(Configuration::get('PS_INVOICE')) AND  $order->invoice_number)

{

$attach = array();

$attach['content'] = PDF::invoice($order, 'S');

$attach['name'] = Configuration::get('PS_INVOICE_PREFIX', intval($order->id_lang)).sprintf('%06d', $order->invoice_number).'.pdf';

$attach['mime'] = 'application/pdf';

} else {

$attach = NULL;

}

knacky

knacky

if (intval(Configuration::get('PS_INVOICE')) AND  $order->invoice_number)

{

$fileAttachment['content'] = PDF::invoice($order, 'S');

$fileAttachment['name'] = Configuration::get('PS_INVOICE_PREFIX', intval($order->id_lang)).sprintf('%06d', $order->invoice_number).'.pdf';

$fileAttachment['mime'] = 'application/pdf';

} else {

$fileAttachment = NULL;

}

×
×
  • Create New...