rexu Posted March 12, 2015 Share Posted March 12, 2015 Iam new to prestashop, creating a module,Here i have to generate invoice from order id or array of order ids.I learned that AdminPdfController will do this .Iam struct here to call this controller. For first step iam trying to use the default function of invoice generation of prestashop(from two dates) from my module. Iam trying to call AdminPdfController by my form submission php file as folows Tools::redirectAdmin(Context::getContext()->link->getAdminLink('AdminPdf').'&submitAction=generateInvoicesPDF&date_from='.urlencode(Tools::getValue('date_from')).'&date_to='.urlencode(Tools::getValue('date_to'))); here date_from,date_two passed from my form This redirects to the folowing url http://localhost/prestashop/modules/pendingorder2/index.php?controller=AdminPdf&token=f13b092cfeaf3cd1875bbb8cf8b86d62&submitAction=generateInvoicesPDF&date_from=2015-03-01&date_to=2015-03-11 But this gives me 404 error,what is wrong here,and if there is another way to generate invoice from module Please explain. Link to comment Share on other sites More sharing options...
Recommended Posts