This module allows you to transfer stock and price data between an Übercart online store and CSV files. It can export product prices, stock levels and product option prices to CSV files and import updated versions of those same files to adjust prices and stock levels.
Based on jorditr's original Stock & Price CSV Updater, this module has the following features:
- Writes and reads RFC-4180 compliant CSV files (unlike code based on PHP's fgetcsv() function, which doesn't handle quote escaping correctly).
- Uses column headings to identify columns. This allows you to reorder or add new columns in the downloaded CSV file before importing it back into your store. It also guards against accidentally importing the wrong CSV file.
- Updates prices only for the current revision of a product, leaving prices for other revisions alone.
- Handles both product prices and product option prices
Please test this module and let me know how you go. At the time of writing, this module has passed my initial tests and seems to work properly in my development environment. I have only tested it with CSV files generated by OpenOffice, so I would appreciate feedback from people who use other software to write CSV files.
See the module's README.txt file for installation details. Note that the URL path for this module's admin page in your store is different to the path in jorditr's original version. The user permission name has also changed.
Updated 6 October 2011 version 6.x-2.0.2
(The "releases" feature of http://ubercat.org/projects/ seems to be broken, so I've gone back to using attachments - see below)
- Fixed spurious "no match" error when new
values match old values. See
http://www.ubercart.org/comment/64614/possible_explanation_couldnt_find_...
Updated 17 January 2011
It seems like 2.0.1 is working well for people, so I thought it was about time I made a formal "release" on ubercart.org - see the downloads section above. There's no new code - I've just used the uc_stock_update-6.x-2.0.1.tar.gz attachment below as release 2.0.1.
Updated 2 September 2010 version 6.x-2.0.1
- Added work-around for bug in Internet Explorer that prevents downloading CSV files over SSL. See http://support.microsoft.com/kb/323308/en-us
- Added product name to exported fields. This helps to identify each product.
- Added active-stock flag to exported and imported fields
- Adopted a naming convention for the column names. Columns used as keys on import have names in upper case. Columns containing new values have names that are capitalized.
Development
| Preview | Attachment | Size |
|---|---|---|
| uc_stock_update-6.x-2.0.2-0.tar.gz | 12.86 KB | |
| uc_stock_update-6.x-2.0.1.tar.gz | 13.61 KB | |
| uc_stock_update-6.x-2.0b.tar.gz | 13.26 KB |

