Hi,
I've created a drop-shipping/supplier interface module for a project I'm working on. I started this as a way to learning module development for zen-cart and to anticipate the specification of the project because the final specs haven't been finalize yet. When the final specs came out it didn't exactly fit what I've made (actually I think it fits but upper management don't want to use the extra features it have) so rather than waste this program which I believe has great potientials I will be sharing it here. I hope with the help of the community it will mature and new features will be added so by the time we decide to use it, it will be mature enough for commercial use.
The module is suppose to allow our suppliers to login to an administration page to manage products that they supply. They are limited to products they supply and have no access to other products from other suppliers. I will also need to let our suppliers add products to categories he is allowed to add products to. I probably also need this feature to be enabled or disbled which will limit them to only modify existing products in the database. Other future plans would be
sales report viewing where the reports will limited to their products, viewing orders of their products, downloading a summary of these orders (csv files),
automatic email sending when a customer ordered one of their product, etc
Right now the only thing working is supplier/supplier group/supplier admin management and the interface where the supplier will login. Once the supplier logs in he would be presented with an interface similar to zen-car admin interface but with the menus limited to task he is allowed to. Right now the menu is empty. Only the skeleton of the menu is present. My plan was I would have several suppliers, and each suppliers would have several admin accounts that are divided into groups. Some groups would have access to product editing/adding and some groups would have access in viewing sales report. A group can have its super_admin_flag enabled which will give member-admins the access to all supplier-admin-tasks without implicitly assigning it to them.
A supplier can be disabled which blocks supplier_admin accounts under that suppliers from logging in, or groups can be disabled to block member supplier_admins of that group, or individual supplier_admin accounts can be disabled. I'am anticipating a future need thats why I created this structure. Also deleting suppliers will not work if there are groups under it. Deleting recursively is not implemented. I'm thinking if I would recursivly delete groups and accounts if a supplier is deleted. Or flag that a supplier can't be deleted if it has groups & admin under it, and a product that it is supplying is still in the products database.
One problem with this module is that I'm trying to make a non-standard structure for zen-cart because my module will need modules in it self to be usefull. Right now I'm working on a product editing module based on the stock product editing feature of zencart. In the (website owner) admin page, site owner should have the ability to relate products to a supplier. I would probably add a drop down list in product editing page to assign a product to a particular supplier. When the supplier logs in, he will aslo see a similiar Categories/Products interface but some categories might not be accessible to him, 'new product' button would be disabled, or product editing/detail not related
to him is not accessible. This module is not yet finished but I'm attaching the unfinish module here so people interested can play with it.
Once this module matures I'll put it in the contribution page.
Anyway.. here are the files, and I'm open to suggestions on how to improve it. Thanks.
Bookmarks