Hasher Posted January 21, 2015 Share Posted January 21, 2015 AdminPdfController.php: public function processGenerateDeliverySlipsPDF() { $order_invoice_collection = OrderInvoice::getByDeliveryDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($order_invoice_collection)) die(Tools::displayError('No invoice was found.')); $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP); } How can I modify this to generate pdfs based on order's ids instead of dates? Link to comment Share on other sites More sharing options...
tuk66 Posted January 23, 2015 Share Posted January 23, 2015 Create your own method - OrderInvoice::getByIdInterval - and call it in processGenerateDeliverySlipsPDF(). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now