Hi,
While there is no ready-made solution, there are two things I can propose:
- This plugin integrates with Joomla's logging system:
www.hikashop.com/marketplace/product/161-action-log.html
With it, you can log who modified the products when.
- You could create a mass action with a trigger "before a product is updated" and an action "run PHP code".
In the action, you can write a bit of PHP to:
1. check if the quantity is being changed
2. check the user group of the current user
3. stop the process with an error message
For example, something like that (not tested):
$new_qty = (int)'{product_quantity}';
$db = JFactory::getDBO();
$db->setQuery('SELECT product_quantity FROM #__hikashop_product WHERE product_id = {product_id}');
$old_qty = $db->loadResult();
if($new_qty != $old_qty) {
if(!hikashop_isAllowed('XXX,YYY')) {
die('you are not allowed to change the quantity');
}
}
where XXX and YYY are the user groups allowed to change the quantity. You might also want to add a check on whether you're on the backend or not, as some processes on the frontend might change the quantity while you might not want to trigger your mass action at that time.