Post by ibparn » Sun Feb 02, 2014 10:25 am

Does anyone know how to add a timestamp "date('Y-m-d_H-i-s', time())" to output file "backup_categories_products.xlsx". ???

Thanks,
Ibparn

User avatar
New member

Posts

Joined
Sun Feb 07, 2010 2:47 pm

Post by andyexeter » Wed Feb 05, 2014 8:03 pm

You would need to edit the file admin/model/tool/export.php

Line 2717:

Code: Select all

header('Content-Disposition: attachment;filename="backup_categories_products.xlsx"');
Replace that line with:

Code: Select all

header('Content-Disposition: attachment;filename="backup_categories_products_' . date('Y-m-d_H-i-s') . '.xlsx"');
Note I am using the mod for opencart version 1.5.6.x so yours may differ slightly if using a different version

Newbie

Posts

Joined
Tue Jan 28, 2014 10:54 pm
Location - Exeter, England

Post by ibparn » Fri Feb 07, 2014 12:22 pm

Thanks very much...

Ibparn

User avatar
New member

Posts

Joined
Sun Feb 07, 2010 2:47 pm
Who is online

Users browsing this forum: No registered users and 4 guests