How to print name of Payment Method in Commerce 2 order receipt email?

How to print name of Payment Method in Commerce 2 order receipt email?

The commerce-order-receipt.html.twig contains a variable called {{ payment_method }}, which returns no data. Likewise, when I add Payment Method field to my orders table view, it shows no data. Payment Gateway does contain the name of the payment method used in the... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Using Drush without local copy of Drupal, only calling site aliases – No site aliases found

We have a project which does not contain a Drupal codebase. It’s Cypress.io test with Drush 9 added using Composer. I would like to execute Drush with site alias to work with the remote site while running tests. I’m able to call Drush from Cypress test... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Ignore UUIDs when comparing the difference between configuration exports

When building Features, i find it useful to keep a ‘backup’ of the full configuration and commit it to version control. If something breaks when i package a feature after i test how it works by doing a full re-install of the profile that brings together... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Custom formatter for paragraphs field

I want to build a custom formatter for a paragraphs field that renders some of the fields of the paragraph. However, I don’t know how to access the single files of the paragraph field. So far I’ve only written the skeleton of the formatter, but it... read more
How to print name of Payment Method in Commerce 2 order receipt email?

How to get the file ID using managed_file on custom form?

In Drupal 8, I have a custom form that I built using the Form API in a custom module. I am trying to upload a file using managed_file field. For some reason I can’t get it to give me the file ID no matter what code I try. The file does indeed get uploaded and... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Overriding radio button rendering

I have a List (text) field on a comment type. This field is required and only one option may be chosen, so a radio button is how it will be rendered. I would now like to change the way the radio buttons are rendered to allow for additional necessary styling. I have... read more
How to print name of Payment Method in Commerce 2 order receipt email?

How to filter GraphQL query by content language?

I am coding Drupal 8/Angular app and Angular is fetching data from Drupal using GraphQL. Everything works fine except now I need to query nodes in a particular language. This is my query: { nodeQuery(filter: {conditions: [ {field: “type”, value:... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Add CSS class to view image_field in twig

In my custom view fields twig file views-view-fields–search–product_result.html.twig I try to theme my view item. {{ fields.field_images.content }} <h5 class=”card-title”>{{ fields.title.content }}</h5> How do I add a CSS class to... read more
How to print name of Payment Method in Commerce 2 order receipt email?

How can I set value to hidden field (Form Api) and send them with post method?

I’ve created a form with Form Api in a custom module. I send datas with post method to a web service. In buildForm() $form[‘mode’] = array( ‘#type’ => ‘hidden’, ‘#value’ => ‘INTERACTIVE’, );... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Drupal::httpClient() and proxy settings

I’ve defined a proxy in my settings.php: $settings[‘http_client_config’][‘proxy’][‘http’] = ‘http://ip:port’; $settings[‘http_client_config’][‘proxy’][‘https’] =... read more
Files migration issue

Files migration issue

I am following this tutorial on how to migrate files from D7 into D8. I have the migration setup with the following yml configuration: uuid: a685a4e0-1022-4bf2-a787-f6f1bef587ea langcode: en status: true dependencies: { } id: d8_files class: null field_plugin_method:... read more
Where in the MySQL database schema is the URL alias for a group relation?

Where in the MySQL database schema is the URL alias for a group relation?

I am building a report outside of Drupal that pulls data from a Drupal 8 database. The report shows titles of different nodes and I want to link those titles to the web page for that content. This is working fine if I use the standard /node/X path, but I would like to... read more
How to print name of Payment Method in Commerce 2 order receipt email?

Adding #ajax callbacks to form elements in HOOK_form_alter()

I’m trying to add an #ajax callback to a select element on a form that is created in another module on a Drupal 8.x site. When I add the #ajax callback using HOOK_form_alter() in my module, the Ajax callback starts running and the Ajax throbber appears after... read more