Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello Everyone,

 

Does anyone know if any of the modules available (ie.MYOB etc) can automatically generate a csv file or a excel type file at a given time everyday or every time when an order is placed? Basically, we need a way for it to send a report or file to the store owner showing them the orders for that day.

 

Thanks in advance,

 

Shawn

Posted
Hello Everyone,

 

Does anyone know if any of the modules available (ie.MYOB etc) can automatically generate a csv file or a excel type file at a given time everyday or every time when an order is placed? Basically, we need a way for it to send a report or file to the store owner showing them the orders for that day.

 

Thanks in advance,

 

Shawn

a great class for this is called cbmysql. i think you can find it on sourceforge. i've used it in the past to make quick and dirty CSVs. just put the class in your php lib path.

 

<?
include ('/usr/lib/php/cbmysql.class.php');
include ('includes/application_top.php');
$m=new MySQL;

$m->init(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE);
$m->select2csv("SELECT * from customers;");
$m->close();
?>

Posted

You can also extract the export logic and make it as it's own stand alone file, then set this file up as a CRON job, this will allow you to automate the file export....

 

cheers,

Peter M.

Peter McGrath

-----------------------------

See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation

  • 1 month later...
Posted (edited)
You can also extract the export logic and make it as it's own stand alone file, then set this file up as a CRON job, this will allow you to automate the file export....

 

cheers,

Peter M.

 

 

How would you setup the CRON job? Does anyone have the cbMySql class. I can't find it online

Edited by peabbles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...