I've taken the current 5.x version of the Ubercart EDI module (uc_edi) and added a few 'enhancements'. The module now includes built in FTP transfers, the ability to specify a file header, and most importantly, I've included the ability to have this module automatically generate X12 BASIC 850 files.
This is not the 'official' release of the uc_edi module. However, my modifications are made using the official 1.0 version. Hopefully these modifications can be back-ported into the official release.
I will call this the 'unofficial' version 1.2
Install the module as you would any other Drupal module, just drop it into the "sites/all/modules" folder. If you already have the official uc_edi module installed, just overwrite the files and run update.php. (If you made your own modifications, you will need to merge your changes with my additions).
If you have not already, enable the module using the Drupal administration tools. Then go to Administer -> Store administration -> Configuration -> EDI Import/Export. Immediately your notice a bunch of new configuration variables:
Just fill in the above with your info, and save your configuration.
You'll also notice another field set in Administer-> Store administration-> Orders -> EDI import/export called "FTP transfer details". It works the same way as the other two.
I made changes to the following existing functions:
uc_edi_cron()
_export_orders()
uc_edi_order_values()
uc_edi_order_admin_form()
uc_edi_order_admin_form_submit()
uc_edi_settings_form()
uc_edi_create_export()I added the following additional new functions:
uc_edi_generate_X12BASIC850()
uc_edi_generate_order_product_export_X12BASIC850()
_ftp_orders()
_default_order_export_header()The following new variables are used:
uc_edi_san_number
uc_edi_san_number_r
uc_edi_order_export_format
uc_edi_order_export_header
uc_edi_order_ftp_freq
uc_edi_last_order_ftp
uc_edi_ftp_host
uc_edi_ftp_login
uc_edi_ftp_password
uc_edi_remote_import_dir
uc_edi_remote_export_dir
uc_edi_remote_export_archive_dir
uc_edi_ftp_order_status
uc_edi_ftpsent_order_status
uc_edi_ftpsent_order_messageYou can download it using the link below.
You may submit your questions, issues, bugs, and/or requests at the Unibia.net forums under the appropriate section.
| Attachment | Size |
|---|---|
| uc_edi-5.x-1.2.tar_.gz | 16.59 KB |
