ves
  • Member for 2 years, 6 months
  • Last seen more than 1 year ago
$order->dateOrdered returns a string value the first time and DateTime after that. [Order got through event]
Accepted answer
1 votes

The problem was occurring because the order was retrieved through the EVENT_AFTER_ORDER_PAID event. Therefore, the dateOrdered was still not processed (passed through mutations). What we ended up ...

View answer
Craft 3 CMS How to get all Channel Names/Titles
Accepted answer
1 votes

This kind of solved my problem: {% for section in craft.app.sections.allSections %} {% if section.type == 'channel' %} {% set navBarLinks = navBarLinks|merge([section]) %} {% endif %} ...

View answer