Skip to content

Commit cb6d9e2

Browse files
authored
Merge pull request #10 from Sylius/maintenance/update-readme-v1
[Maintenance] Update readme with missing twig functions changes
2 parents 51ab8c6 + 8e8e189 commit cb6d9e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,12 @@ When migrating legacy templates, you need to update certain Twig function calls
327327

328328
**Twig function replacements:**
329329

330-
| Before | After |
331-
|------------------------------------------|----------------------------------------|
332-
| `sylius_order_items_subtotal(order)` | `order.getItemsSubtotal()` |
333-
| `sylius_product_variant_prices(product)` | `sylius_product_variants_map(product)` |
330+
| Before | After |
331+
|----------------------------------------------------------|---------------------------------------------------------------------|
332+
| `sylius_order_items_subtotal(order)` | `order.getItemsSubtotal()` |
333+
| `sylius_order_tax_included(order)` | `order.getTaxIncludedTotal()` |
334+
| `sylius_order_tax_excluded(order)` | `order.getTaxExcludedTotal()` |
335+
| `sylius_product_variant_prices(product, sylius.channel)` | `sylius_product_variants_map(product, {'channel': sylius.channel})` |
334336

335337
## Usage
336338

0 commit comments

Comments
 (0)