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?
Hello
Do an overwrite of the key COM_VIRTUEMART_FILEPREFIX_INVOICE , and it should work without having to hack the code which is a very bad idea.
Quote from: alatak on March 30, 2017, 11:06:23 AM
Hello
Do an overwrite of the key COM_VIRTUEMART_FILEPREFIX_INVOICE , and it should work without having to hack the code which is a very bad idea.
sorry no idea how to overwrite keys. I am a beginner.
Quote from: rishabhchd19 on March 30, 2017, 23:13:15 PM
Quote from: alatak on March 30, 2017, 11:06:23 AM
Hello
Do an overwrite of the key COM_VIRTUEMART_FILEPREFIX_INVOICE , and it should work without having to hack the code which is a very bad idea.
sorry no idea how to overwrite keys. I am a beginner.
I have done it. Thanks
Be sure to override FE and BE
Overriding making change when Invoice download from Admin panel, at frontend when customer receives email of pdf invoice ni changes reflected..name remain same as 'vminvoice'