简体   繁体   English

Prestashop供应商模块

[英]Prestashop supplier module

Any one knows if prestashop is providing supplier module? 任何人都知道prestashop是否提供供应商模块?

I want to create something like " add suppliers from prestashop admin, and they should allowed to insert product and see their product order etc..." 我想创建类似“从prestashop管理员添加供应商,他们应该允许插入产品并查看他们的产品订单等......”

Is it possible in prestashop? 在prestashop有可能吗? If yes any one can say which extension need to install? 如果是,任何人都可以说哪个扩展需要安装?

If its not providing such, is there any other open source which providing such functions? 如果不提供此类功能,是否有其他开源提供此类功能?

I understand it like you want suppliers to have access to your back office so they can add new products? 我理解为您希望供应商能够访问您的后台,以便他们可以添加新产品?

Just create a new employee profile (under Employees > Profiles) and give the new profile permission to add new products (under Employees > Permissions). 只需创建一个新的员工配置文件(在Employees> Profiles下),并为新配置文件提供添加新产品的权限(在Employees> Permissions下)。

supplier is a attribute of the product and employee is another part in prestashop we have to marge ps_employee and ps_supplier or when add an employee then after get his last insert id , we have to insert same name in ps_supplier table with employee id. 供应商是产品的属性,员工是prestashop的另一部分,我们必须为ps_employee和ps_supplier提供服务,或者在添加员工之后获取他的最后一个插入ID,我们必须在ps_supplier表中插入具有员工ID的相同名称。

  1. add a column in ps_supplier -> id_employee. 在ps_supplier中添加一个列 - > id_employee。
  2. add employee after insert the employee detail take his last insert id 插入员工详细信息后添加员工获取他的最后一个插入ID

if ($this->context->employee->id == Tools::getValue('id_employee')) if($ this-> context-> employee-> id == Tools :: getValue('id_employee'))

in \\controllers\\admin\\AdminEmployeeController.php 在\\ controllers \\ admin \\ AdminEmployeeController.php中

(i am not complete this if any one know then help me . ) (如果有人知道的话,我不完整,然后帮助我。)

insert in ps_supplier table with his id_employee 使用id_employee在ps_supplier表中插入

  1. select supplier from ps_supplier where id_employee == $loggedinemployee 从ps_supplier中选择供应商,其中id_employee == $ loggedinemployee

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM