pedro fonseca Posted July 6, 2011 Posted July 6, 2011 i create a new Employee in backoffice.this employee is for the Suppliers.Suppliers can insert products, but not (permission) publish. Only insert. I approve and publish the inserts products by suppliers.is possible? have a module?p.s. sorry my english. Share this post Link to post Share on other sites More sharing options...
MahmutGulerce Posted July 7, 2011 Posted July 7, 2011 Hi;It seems hard but not impossible.I know two ways1. Edit Admin/Tabs/AdminProducts.phpline 1212 (for ps v1.4.3)add this lines if ($cookie->id_employee == ID) $product->active = 0; Beforeif ($object->add())(Change ID to your suppliers id)2nd WayA module does it by hooking product add. I can make it as a module but currently not enough time. Share this post Link to post Share on other sites More sharing options...
pedro fonseca Posted July 7, 2011 Posted July 7, 2011 i prefere 1 solution, but:where i edit this modification?...1. Edit Class/Product.php 1212 (for ps v1.4.3)add this lines if ($cookie->id_employee == ID)$product->active = 0;Where? Share this post Link to post Share on other sites More sharing options...
MahmutGulerce Posted July 8, 2011 Posted July 8, 2011 Sorry I edit my reply Share this post Link to post Share on other sites More sharing options...
fuskoz Posted September 3, 2013 Posted September 3, 2013 Hi; It seems hard but not impossible. I know two ways 1. Edit Admin/Tabs/AdminProducts.php line 1212 (for ps v1.4.3) add this lines if ($cookie->id_employee == ID)$product->active = 0;Beforeif ($object->add()) (Change ID to your suppliers id) 2nd Way A module does it by hooking product add. I can make it as a module but currently not enough time. Dear Friend, Will it be possible to do this trick on PS 1.5.3.1? I have very limited programming skills and I'm searching for the files you describe but can not find them. Please help me. I need it. Thank you in advance Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now