1
我需要将优惠券代码从$ 100加到通讯中。我做了改写\ Magento的\新闻\型号\用户的方法sendConfirmationSuccessEmail
->setTemplateVars(
['subscriber' => $this,
'coupon_code' => $this->getCouponCode()
])
protected function getCouponCode() { . . . . . . return $couponCode; }
如何自动生成在Magento 2优惠券代码?