outline4
  • Member for 7 years, 7 months
  • Last seen more than a month ago
  • Berne, Switzerland
How does one get an order confirmation email to fire immediately in Commerce 3?
1 votes

I like this solution: {# run queue #} {% do craft.app.queue.handleResponse %} {{ craft.app.response.content|raw }} Detailed in this post.

View answer
Craft Commerce > 2.2: How can you order line items?
3 votes

I am posting the answer of Craft Commerce Support in case somebody stumbles over the same thing: It is possible to order them differently if required. The code example below shows how to order them ...

View answer
Can you prevent upscaling when using Craft's image transforms?
2 votes

If you want to work with transforms you've created in the backend you can use this: {% set transformDimensions = craft.app.assetTransforms.getTransformByHandle('contentWidth') %} {% set transform = {...

View answer
Prevent Asset Transforms from scaling Image past 100%
2 votes

In Craft 3 there's another way of doing it. Brandon explained it here {% set transformDimensions = craft.app.assetTransforms.getTransformByHandle('contentWidth') %} {% set transform = { width: ...

View answer
Get a defined image-transform's width and height in front-end template
Accepted answer
2 votes

In Craft 3 you can call it like this: {% set transformDimensions = craft.app.assetTransforms.getTransformByHandle('contentWidth') %} width: {{ transformDimensions.width }} height: {{ ...

View answer
Check user is in User Group / Custom User Permissions
2 votes

I had a similar situation: I wanted to restrict some users from certain entries. I've created a checkboxes field called "cf_userRights_checkboxes" where the label is the user-groups name and the ...

View answer
Order twig array by date and time
Accepted answer
0 votes

Thanks to brad I got the whole thing working. Here's the stripped down code: {# Get all Dates from within the table field in the section veranstaltungen ------------------------------------...

View answer
How do I proceed when I want to show another language when the actual language is deactivated?
Accepted answer
1 votes

So thanks to Brad I found this solution: {# Get all entries regardless if the locale is enabled or not #} {% set allEntries = craft.entries.section('yourSection').status(null).localeEnabled(false)....

View answer