RE: A payment reminder module
Hustenbonbon <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.features |
|---|---|
| Message-ID | <3334cfb4505cac388b3b34bdffba92a1@osCommerce-Forums> |
This message was sent from: Features http://forums.oscommerce.com/viewtopic.php?p=182298#182298 ---------------------------------------------------------------- ok. the download now includes an INSTALL.english. sorry. i cant speak well english, please email me suggestions or corrections. :) here is the contents of the INSTALL.english file, so you don't have to download twice: First of extract the files to a subfolder which you can reach directly over the internet /usr/local/www/data/osc/mahnfiles par example. then configure the script, you can see below how to do this. after you can insert an entry into the cron daemon or the derivate on your system, i do not support any micro$oft os, you have to try it by your own. Now you can access the output via you browser via http://yourhost/osc/mahnfiles you should see all the output files now. this will be more secured in one of the next versions. you need a perl 5.6.X installed with the Mail module. To get this little script running you need an installed and configured OSCommerce shop system, you can download the php based source at http://www.oscommerce.com. This script runs with OSCommerce version MS1 (milestone 1) and is published under the GPL license (http://www.gpl.org), maybe it will be under the BSD license soon. After installing and configuring the shop system you have to add three new 'states' [zustände] e.g. via the administration surface: - 'gemahnt1' - 'gemahnt2' - 'gemahnt3' The modul is configured for the three states. you can change directly in the script. You have to configure the following points directly in the script: a) the server addresses: $SMTP_SERVER for the smtp email server $SERVER b) MySQL account: $server -> for the mysql server (often: localhost) $database -> the database name $mysql_user -> ... $mysql_pass -> password c) eMail account: To send the email from field search the script for "ABSENDERADRESSE". The new data can be inserted into the souorcecode (the mahn.pl file) and have to be "double quoted". The points to change the script can be found with a text editor (http://www.vim.org for example ;) to use all functions create a directory ./mahn_files [under unix like os]. in this directory sould exist a file called body.text where should be the contents of the email. an example: ------------------------------------------------------ hello, we sent out your order XXXorder_idXXX on XXXversendetXXX. we didn`t saw any money, so please give me XXXbetragXXX $ or EUR or CHF or what ever in the next 5 days: your bank account and more here :) detailled order info: article: the XXXorder_idXXX is replaced by the order id the XXXversendetXXX is replaced with the outgoing date the XXXbetragXXX with the amount of money the customer has to pay. --------------------- so, i am going to publish the next version in a short time, this should automate more things and have a .config file. and a better documentation if you have any suggestions please email me: [email protected] greets Karsten Laaber