I have changed
$path .= preg_replace('/[^A-Za-z0-9_\-\.]/', '_', 'order'.$layout.'_'.$invoiceNumber.'.pdf');
//$path .= shopFunctionsF::getInvoiceName($invoiceNumber, $layout).'.pdf';
Before it was:
//$path .= preg_replace('/[^A-Za-z0-9_\-\.]/', '_', 'order'.$layout.'_'.$invoiceNumber.'.pdf');
$path .= shopFunctionsF::getInvoiceName($invoiceNumber, $layout).'.pdf';
why it was put to comment $path .= shopFunctionsF::getInvoiceName($invoiceNumber, $layout).'.pdf'; ?
The changes i have made gonna make problems? What was the reason behind making first line as a comment?
If i keep the first line under comment, then how can I change title of pdf from VMINVOICE to ORDERINVOICE with the second line?