大米CMS官网论坛,大米站长联盟,大米站长之家,大米开发者社区
标题:
magento代码改变customer group
[打印本页]
作者:
追影
时间:
2020-9-8 16:57
标题:
magento代码改变customer group
$cutomer=$this->customerRepository->getById($this->customerSession->getCustomerId());
$customer->setGroupId($myGroup);
$this->customerRepository->save($customer);
复制代码
欢迎光临 大米CMS官网论坛,大米站长联盟,大米站长之家,大米开发者社区 (https://www.damicms.com/bbs/)
Powered by Discuz! X3.1