Local Food Cooperative Software
The Jist: This software operates on an order cycle instead of an “always open” system. Producers/farmers can log in and add products to their product catalog at anytime for sale. During a designated time, cooperative members place orders.
Software Requirements
MySQL database 4.1+
PHP 4+
Set-up
- Create a database and run the foodcoop-structure.sql and foodcoop-standard-prepopulated-data.sql file
-
Do a find on the files for the following variables and update them to suit your needs:
-
$state_tax
(either comment it out if no state sales tax or update the value from .06 to your tax amount.)
-
Producer fee:
$producer_fee = round(($total*.15)+0.00000001,2); (change the .15 to whatever your fee is)
$fee = "15%"; (change the 15% to whatever your fee is)
-
Customer fee: shop/func/gen_invoice.php
line 704: $sh = number_format(round(($total_for_sh*.15)+0.00000001,2),2); (change the .15)
line 757: <b>Shipping & Handling + 15% Co-op Fee</b> (change the 15%)
- $db_user = "";
- $db_pass = "";
- $db_name = "";
- $domainname = "";
- database name
- database username
- database password
- localhost (only if your mysql server doesn’t use localhost)
- /home/user/public_html (put in your file path)
- yourdomainname.org
- idaho (to catch where you want to put your own coop’s name)
Yes, it's messy, but we've been focusing on version 2, which moves variables like this into a global definition file, etc. Wanted to get this out to people though in the meantime because it is functional.
- Update and place the config_ files in the home directory of your website
- Upload the "shop" folder into the public_html or www folder into your main web folder on your hosting account.
-
Set up the following email aliases if you want to use the built in email addresses:
- customers@yourdomainname.org
- help@yourdomainname.org
- info@yourdomainname.org
- membership@yourdomainname.org
- orders@yourdomainname.org
- paypal@yourdomainname.org
- pricelist@yourdomainname.org
- problems@yourdomainname.org
- standards@yourdomainname.org
- treasurer@yourdomainname.org
- volunteer@yourdomainname.org
Notes:
* the adjustments tables aren’t in use anymore, so don’t be alarmed that they don’t populate. Everything goes into the transactions table. The adjustments tables are still there until the sales reports can be updated to use the transactions report soley.
Copyright Notice
This is available under the GNU Public License. This is available under the GNU General Public License (GPL). Please see GPL.html for the full license.
More information
http://sourceforge.net/projects/foodcoop/
http://www.oklahomafood.coop/software.php
http://sourceforge.net/docman/index.php?group_id=161048 (Select Intended Audience and click Go)
Working Examples
http://www.oklahomafood.coop/shop/
http://www.nebraskafood.org/shop/
http://www.idahosbounty.org/shop/
Feedback and Suggestions
Yes, this could be better. If you make updates, feel free to share in the spirit of open source. We would have streamlined it more, putting all variables in a list for easier editing, and several other things, but in the interest of not delaying the distribution of this information any longer, we opted to post it as is.
Version 2 is in process and is a complete re-vamping.
Email software@oklahomafood.coop
Credits
Thank you to all of those who helped make this release possible:
Nancy, Robert, Jonalu, and Cindy of the Oklahoma Food Cooperative, Randy and Roy of the Nebraska Food Cooperative, and Jeannie and Laura of the Idaho Food cooperative.
Thank you and best wishes,
Oklahoma Food Coop Software Team
software@oklahomafood.coop