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

New answers tagged

1 vote

Craft 4.8.0 : Hide some entries to a group of user

Not sure if you can hide the entry in the CP just based on the user group... likely you'll have to separate those entries em distinct sections to do so. Another approach, would be allow them to see ...
Leo Leoncio's user avatar
1 vote

Reduce Api2PDF requests and store the first visit generated file

Yes, generate those PDF files ahead of time and then store or cache them. With the right approach, you only ever need to generate each unique combination of PDFs once. The best approach depends on how ...
MoritzLost's user avatar
  • 11.4k
1 vote

Craft 4.8.0 : Hide some entries to a group of user

The "Current User Condition" evaluates attributes on the current user editing the entry – so having Slug equals poi-1 in there isn't right as the slug to evaluate is on the entry, not the ...
Mats Mikkel Rummelhoff's user avatar
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
1 vote

How to get info about an asset via cli?

The transformId=45 param in the transform generation URL doesn't reference the ID for an asset, but the ID for a particular image transform operation in the imagetransformindex database table. The ...
Mats Mikkel Rummelhoff's user avatar

Top 50 recent answers are included