Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote

Change email transport settings based on order site

The answer seems to be to drop the mailer component modification completely. There's a Yii method setTransport() which can be called via Commerce's EVENT_BEFORE_SEND_MAIL event. Event::on( Emails::...
Jamie's user avatar
  • 121
1 vote

Why am I seeing a version compatibility error after updating Craft Commerce to 4.6.0?

With regards to Composer, you are indeed running Commerce 4.6.0. However, Craft is trying to keep up, and can't update directly to 4.6.0. The message you are seeing is telling you that Craft wants you ...
Lindsey D's user avatar
  • 24k
0 votes
Accepted

Error when calling renderPdfForOrder() in Module

I got in touch with Craft support and this was a bug that the Craft Commerce team fixed in Craft v4. They were kind enough to backport the fix to v3. Should work for anyone else moving forward!
cherrykoda's user avatar
  • 1,114
1 vote
Accepted

Save field value After Complete Order

It seems that the following line was not needed. $order = Order::find()->id($order->id)->one(); When I removed it everything works as expected.
Matthias's user avatar
  • 301

Top 50 recent answers are included