Exporting filtered order variables to CSV file
Alright, here we go. You're searching for orders based on certain criteria such as sku # or price. Basically this mod serves the purpose of being able to provide a modified copy of filtered orders that have been backed up into a CSV file. I'll tell you what I'm using it for and maybe it will make sense.
The site I'm currently working on is http://www.ezcruiseconnection.com. They sell motor coach transportation services to and from cruise lines. They contract this service to a local motor coach company. This company requires certain information about the customers. This allows my client to supply their provider with only the information they need. I've made changes to 4 files: ./include/orders.php ./include/orders_export.php ./include/process_orders.php ./skin1/main/orders_list.tpl and created one file: ./skin1/main/orders_export_mod.tpl ./include/orders.php changed: Code:
$do_export = in_array($mode, array("export","export_found","export_all")); Code:
$do_export = in_array($mode, array("export","export_found","export_all","export_mod")); ./include/orders_export.php changed: Code:
# Code:
# Code:
$smarty->assign("orders", $orders_full); Code:
if ($mode == "export_mod") { ./include/process_orders.php changed: Code:
elseif ($mode == "export" and !empty($orderids)) { Code:
elseif ($mode == "export" and !empty($orderids)) { The file that I created, ./skin1/main/orders_export_mod.tpl, is basically a copy of ./skin1/main/orders_export.tpl with the unecessary variables taken out. It looks like this: Code:
{* $Id: orders_export_AFC.tpl,v 1.10 2004/06/29 06:47:31 svowl Exp $ *} I'm sure there can be other uses involved for created reports, etc. Let me know what your thoughts if you decide to try it out. |
Has anyone got this to work?
Or how does it work? |
All times are GMT -8. The time now is 03:01 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.