Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@ Commerce Fee submodule
Note: a modification is necessary in commerce file: commerce/src/Plugin/Field/FieldType/PluginItemDeriver.php
* Modify method getDerivativeDefinitions()
* add commerce_fee plugin to the $plugin_types array: 'commerce_fee' => $this->t('Commerce fee'),

OR

Get latest working patch from [here](https://www.drupal.org/project/commerce/issues/2903716) and add it to your `composer.json` similar to this and run composer install to patch commerce.

"extra": {
"enable-patching": true,
"patches": {
...
"drupal/commerce": {
"Implement the ability to add fees to an order dgo.to/2903716": "https://www.drupal.org/files/issues/2020-11-18/add-plugin-type-2903716-72.patch"
},
...
4 changes: 2 additions & 2 deletions src/Plugin/Commerce/Fee/FeeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Drupal\commerce_fee\Plugin\Commerce\Fee;

use Drupal\commerce_fee\Entity\FeeInterface as FeeEntityInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Plugin\PluginFormInterface;
Expand All @@ -17,7 +17,7 @@
* @see \Drupal\commerce_fee\Plugin\Commerce\Fee\OrderFeeInterface
* @see \Drupal\commerce_fee\Plugin\Commerce\Fee\OrderItemFeeInterface
*/
interface FeeInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface {
interface FeeInterface extends ConfigurableInterface, PluginFormInterface, PluginInspectionInterface {

/**
* Gets the fee entity type ID.
Expand Down