Feature: localize order.pdf name + order numbering

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi,
I would suggest to have localized order.pdf name so that users can identify that as something meaning full. Also the number might be formatted for me with trailing zero's and or a prefix.
J.

Sample code below [not tested yet]. No number prefix implemented since it would touch too much code. But for pdf done.


var orderPlacedAttachmentFilePath = _orderSettings.AttachPdfInvoiceToOrderPlacedEmail ?
                            _pdfService.PrintOrderToPdf(order, 0) : null;
                        var orderPlacedAttachmentFileName = _orderSettings.AttachPdfInvoiceToOrderPlacedEmail ?
                            string.Format("{0}-{1}.pdf", _localizationService.GetResource("QE.Customer.Pdfname", order.CustomerLanguageId), order.Id.ToString("D10")) : null;
                        int orderPlacedCustomerNotificationQueuedEmailId = _workflowMessageService
                            .SendOrderPlacedCustomerNotification(order, order.CustomerLanguageId, orderPlacedAttachmentFilePath, orderPlacedAttachmentFileName);
                        if (orderPlacedCustomerNotificationQueuedEmailId > 0)
                      
4 years ago
Did you ever make this work ? I am looking for this...

Kenny
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.