Donations using Drupal Commerce

This tutorial allows one or more donations to be made on your site. It can also be used for other types of payments where the payer specifies the amount, for example a simple invoice payment where the user enters the invoice number and amount.

1. Install the necessary modules.

  • Download Commerce and install the whole profusion.
  • Download and install Customizable Products
  • Download and install Rules.

2. Add the donation product line item type

Process plugin: concat

The concat plugin is used to concatenate strings in the source. An example use case would be when the source data contains an array of strings that should be imploded into a single value for Drupal 8.

For example:

process:
  new_text_field:
    plugin: concat
    source:
      - foo
      - bar

Will become:

foobar

You can also specify a delimiter. For example:

Theming a view

These pages will explain how to theme Views 3.

Managing File Types

In File Entity 7.x-2.x, each file uploaded is automatically classified into a 'file type'. Each file type can have custom display options (for example, you might want to display 'Documents' as links to files, but 'Images' as an image preview). File types are managed at 'admin/structure/file-types'. You may edit existing file types as well as create your own.

Basic Configuration (Node Convert)

Configure basic settings for the Node Convert module, so you can use a new "Convert" tab to switch any node to a different node type, without losing existing field data.

FieldTypes, FieldWidgets and FieldFormatters

Overview

Drupal 8 ships with a big library on base classes which allow you to work with your very own content. When it comes to content entities you want to use Fields. It is important to understand Fields as that is where your entities store their data.

FieldTypes

Whenever you want to represent data in a way Drupal doesn't provide; you might want to create a new field type for your data.

Pages

Subscribe with RSS Subscribe to RSS - Needs copy/style review