Exemplo n.º 1
0
 protected function configureAdjustmentAmount(AdjustmentInterface $adjustment, OrderInterface $subject, array $configuration)
 {
     $adjustment->setAmount(-$configuration['amount']);
 }
Exemplo n.º 2
0
 protected function configureAdjustmentAmount(AdjustmentInterface $adjustment, OrderInterface $subject, array $configuration)
 {
     $adjustment->setAmount(-$subject->getShippingTotal());
 }