Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBC-2902: Add CartSummaryHideTaxAmountWidget instructions. #2240

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ $config[MessageBrokerConstants::MESSAGE_TO_CHANNEL_MAP] = [
SubmitPaymentTaxInvoiceTransfer::class => 'payment-tax-invoice-commands',
];

$config[MessageBrokerConstants::CHANNEL_TO_TRANSPORT_MAP] = [
// ...

'payment-tax-invoice-commands' => MessageBrokerAwsConfig::SQS_TRANSPORT,
];

matweew marked this conversation as resolved.
Show resolved Hide resolved
$config[MessageBrokerAwsConstants::CHANNEL_TO_RECEIVER_TRANSPORT_MAP] = [
// ...

Expand Down Expand Up @@ -185,6 +191,21 @@ class ShopApplicationDependencyProvider extends SprykerShopApplicationDependency

```

If you have custom Yves templates or make your own frontend, add the ```CartSummaryHideTaxAmountWidget``` to your template.

Core template: SprykerShop/Yves/CartPage/Theme/default/components/molecules/cart-summary/cart-summary.twig

Example:
```html
<li class="list__item spacing-y">
{{ 'cart.total.tax_total' | trans }}
{% widget 'CartSummaryHideTaxAmountWidget' args [data.cart] only %}
{% nowidget %}
<span class="float-right">{{ data.cart.totals.taxTotal.amount | money(true, data.cart.currency.code) }}</span>
{% endwidget %}
</li>
```


### 4. Configure the Message Broker dependency provider

Expand Down