Contributions
Suppliers Product Administration Solution
This is really a combination of other contributions that, with a small addition, will make it possible for you to let your supplier's maintain their products on your site themselves.
There is a lot of hard work here if you have a fresh install of osCommerce, but it's a sought after feature.
The supplier will be able to:
- change the properties you want them to. (Including their price to you)
- add their products if you want them to. (You will have to approve and set a selling price for the product yourself though before they go public)
- delete the products they supply if you want them to.
Support thread is here: http://forums.oscommerce.com/index.php?showtopic=258847
| 26 Sep 2007 |
Update:
In admin/categories.php
Security Note: There are ways the Supplier admin can still see prices even though they are hidden,
just as in the catalog on the web. They cannot edit the fields however...
=======================================================================
// BOF: Hide Fields For Supplier Admin
if ($admin_groups_id != 7) {
?>
<tr bgcolor="#ebebff">
<td class="main"><?php echo TEXT_PRODUCTS_PRICE_NET; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price', $pInfo->products_price, 'onKeyUp="updateGross()"'); ?></td>
</tr>
<tr bgcolor="#ebebff">
<td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"'); ?></td>
</tr>
<?php
} else {
?>
<tr bgcolor="#ebebff">
<td class="hiddenfromsuppliers"><?php echo TEXT_PRODUCTS_PRICE_NET; ?></td>
<td class="hiddenfromsuppliers"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_hidden_field('products_price', $pInfo->products_price, 'onKeyUp="updateGross()"'); ?></td>
</tr>
<tr bgcolor="#ebebff">
<td class="hiddenfromsuppliers"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td>
<td class="hiddenfromsuppliers"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_hidden_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"'); ?></td>
</tr>
<?php
}
// EOF: Hide Fields For Supplier Admin
}
?>
=======================================================================
Add the hiddenfromsuppliers class to admin/includes/stylesheet.css
=======================================================================
.hiddenfromsuppliers {
visibility: hidden;
display: none;
}
Zip contains txt with install intructions
| 13 Apr 2007 |
Note: Contributions are used at own risk.
