Skip to content
Snippets Groups Projects
Commit cae90d19 authored by Jigish Chauhan's avatar Jigish Chauhan
Browse files

commenting changes

parent 6675eba6
Branches
Tags
No related merge requests found
......@@ -89,14 +89,10 @@ function _commerce_user_points_node_form_validate($form, FormStateInterface $for
*/
function commerce_user_points_mail($key, array &$message, array $params) {
$options = [
'langcode' => $message['langcode'],
];
switch ($key) {
case 'commerce_user_points':
$message['from'] = \Drupal::config('system.site')->get('mail');
$message['subject'] = t($params['subject'], $options);
$message['subject'] = t($params['subject']);
$message['body'][] = $params['message'];
break;
}
......
......@@ -4,10 +4,8 @@ namespace Drupal\commerce_user_points\Plugin\Commerce\CheckoutPane;
use Drupal\commerce_store\Entity\Store;
use Drupal\commerce_product\Entity\Product;
use Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowInterface;
use Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane\CheckoutPaneBase;
use Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane\CheckoutPaneInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\commerce_order\Adjustment;
use Drupal\commerce_price\Price;
......@@ -131,7 +129,6 @@ class CommerceUserPoints extends CheckoutPaneBase implements CheckoutPaneInterfa
public function validatePaneForm(array &$pane_form, FormStateInterface $form_state, array &$complete_form) {
$arrNidPoints = $totalUsablePoints = [];
$finalString = '';
$values = $form_state->getValue($pane_form['#parents']);
$thresholdValue = \Drupal::config('commerce_user_points.settings')->get('threshold_value');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment