Skip to content

Commit

Permalink
Merge pull request #339 from spryker/feature/ps-1118/master-minimum-o…
Browse files Browse the repository at this point in the history
…rder-value

PS-1118 release PR
  • Loading branch information
a-sabaa authored Oct 4, 2018
2 parents b3c31b9 + 3d02b8c commit cfbc8ee
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/**
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerShop\Yves\CheckoutPage\Dependency\Plugin\SalesOrderThresholdWidget;

use ArrayObject;
use Spryker\Yves\Kernel\Dependency\Plugin\WidgetPluginInterface;

interface SalesOrderThresholdWidgetPluginInterface extends WidgetPluginInterface
{
public const NAME = 'SalesOrderThresholdWidgetPlugin';

/**
* @api
*
* @param \ArrayObject|\Generated\Shared\Transfer\ExpenseTransfer[] $expenseTransfers
*
* @return void
*/
public function initialize(ArrayObject $expenseTransfers): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

{% define data = {
shipmentMethod: required,
expenses: [],
voucherDiscounts: [],
cartRuleDiscounts: [],

Expand Down Expand Up @@ -65,6 +66,12 @@
<span class="float-right">{{ data.prices.storeCurrency | money }}</span>
{{ 'checkout.step.summary.shipping' | trans }} (<strong>{{ data.shipmentMethod }}</strong>)
</li>
{% if widgetExists('SalesOrderThresholdWidgetPlugin') %}
{{block('separator')}}
<li>
{{ widget('SalesOrderThresholdWidgetPlugin', data.expenses) }}
</li>
{% endif %}
{{block('separator')}}
<li>
{{ 'checkout.step.summary.tax' | trans }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

overview: {
shipmentMethod: _view.quoteTransfer.shipment.method.name,
expenses: _view.quoteTransfer.expenses,
voucherDiscounts: _view.quoteTransfer.voucherDiscounts,
cartRuleDiscounts: _view.quoteTransfer.cartRuleDiscounts,

Expand Down

0 comments on commit cfbc8ee

Please sign in to comment.