Пример #1
0
 protected function configureAdjustmentAmount(AdjustmentInterface $adjustment, OrderInterface $subject, array $configuration)
 {
     $adjustment->setAmount(-$configuration['amount']);
 }
Пример #2
0
 protected function configureAdjustmentAmount(AdjustmentInterface $adjustment, OrderInterface $subject, array $configuration)
 {
     $adjustment->setAmount(-$subject->getShippingTotal());
 }