The Stack Overflow podcast is back! Listen to an interview with our new CEO.
1

token_find_with_prefix() doesn't return, in your case, the [commerce-order:payment-method] token, but tokens like [commerce-order:payment-method:date] or [commerce-order:payment-method:client], if they exist. The correct code you should use is the following one. function mymodule_tokens_alter(array &$replacements, array $context) { if ($context['type'...


1

Already fix it!!! commerce-3035519-8.patch 804 bytes 8.x-2.x: PHP 7 & MySQL 5.5, D8.7 589 pass https://www.drupal.org/project/commerce/issues/3035519#comment-13262873


1

In the meantime there is a module that can handle this: https://www.drupal.org/project/price_difference_formatter


Only top voted, non community-wiki answers of a minimum length are eligible