Contributions
Enhanced Vendors 1.0
This has been tested and works on 2.2MS2. For 2.2MS1, it should be compatible, however, have not tested
This vendor contribution is the first part in a developing multi-part contribution for vendor, product, inventory
purchasing, receiving, and management.
The vendor contribution allows you to Add/Edit vendors (no delete, for historical record keeping purposes). It
also allows you to add an unlimited amount of vendors to a single product, for those stores who have the ability to
get products from different vendors.
Deleting a product does not delete the vendor. Deleting a product from a vendor's list does not delete the vendor.
Vendor management is in its own Left Nav Admin box. Product mapping to vendors is done when you edit a product, there
is a button for "vendors". There is not a customer facing portion to this, this is admin only.
Expand All / Collapse All
I just made the vendors part actually do something usefull:
1. add/edit/delete vendors terms
2. add/edit/delete vendors
3. go to product, add/edit/delete vendor to the product with price, vendors own model and name (that's what comes in the price lists).
4. enjoy price comparison on the fly from products view.
in english (good), espanol (bueno) and german (google translator so it stinks a little) languages
5 screenshots included in the file so you can see exactly what it does.
forum is supposed to work, as soon as it does I will post the message here, dunno why I get error message when I click on post repply :s
http://forums.oscommerce.com/index.php?showtopic=77985&hl=enhanced%20%20vendors&st=20
you can also message me from the readme file ;)
Good cought.. But there was typo error in your fix.
Corrected.. Do not download the attachment.
-----------------------------------
Vendors contact and vendors account number fields were not filled in with the database information when editing vendors information.
Edit file /admin/vendors.php
1#
On line 209:
Change -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_CONTACT . '<br>' . tep_draw_input_field('vendors_contact'));
With -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_CONTACT . '<br>' . tep_draw_input_field('vendors_contact', $mInfo->vendors_contact));
2#
On line 226:
Change -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_ACCT_NUM . '<br>' . tep_draw_input_field('vendors_acct_num'));
With -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_ACCT_NUM . '<br>' . tep_draw_input_field('vendors_acct_num', $mInfo->vendors_acct_num));
Vendors contact and vendors account number fields were not filled in with the database information when editing vendors information.
Edit file /admin/vendors.php
1#
On line 209:
Change -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_CONTACT . '<br>' . tep_draw_input_field('vendors_contact'));
With -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_CONTACT . '<br>' . tep_draw_input_field('vendors_contact'), $mInfo->vendors_contact);
2#
On line 226:
Change -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_ACCT_NUM . '<br>' . tep_draw_input_field('vendors_acct_num'));
With -
$contents[] = array('text' => '<br>' . TEXT_VENDORS_ACCT_NUM . '<br>' . tep_draw_input_field('vendors_acct_num'), $mInfo->vendors_acct_num);$contents[] = array('text' => '<br>' . TEXT_VENDORS_ACCT_NUM . '<br>' . tep_draw_input_field('vendors_acct_num'), $mInfo->vendors_acct_num);
Update to enhanced vendors contribution
Joseph Passavanti
OSC 2.2 MS2
/admin/includes/filenames.php
add to page:
define('FILENAME_PRODUCTS', 'categories.php');
This vendors piece is from a bigger product management system I am building. Sorry for
confusion as I extracted the vendor piece as a separate module.
Thanks
complete package update includes bug fixes, missing file, and updated instructions (last line of readme)
All, apologies go out for updating again, one last omission on the 'general.php' code change that causes an error at the end of the file.
In the general.php file, in the first added tep function, there is a missing close }
it should read
return ......
}
}
instead it only has one bracket, which is not properly closing the function.
All files are in this update as always and i tested with a few different scenarios on this final one so i think its ok now.
Sorry, forgot files. This is still 1.0, it should have all the files this time.
My bad, forgot the SQL file the first time. This is complete package.
This has been tested and works on 2.2MS2. For 2.2MS1, it should be compatible, however, have not tested
This vendor contribution is the first part in a developing multi-part contribution for vendor, product, inventory
purchasing, receiving, and management.
The vendor contribution allows you to Add/Edit vendors (no delete, for historical record keeping purposes). It
also allows you to add an unlimited amount of vendors to a single product, for those stores who have the ability to
get products from different vendors.
Deleting a product does not delete the vendor. Deleting a product from a vendor's list does not delete the vendor.
Vendor management is in its own Left Nav Admin box. Product mapping to vendors is done when you edit a product, there
is a button for "vendors". There is not a customer facing portion to this, this is admin only.
Note: Contributions are used at own risk.