Skip to content

Commit

Permalink
Fix the twig hooks on order shop show to display the invoices correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMilek committed Oct 17, 2024
1 parent 64e939a commit bba54ad
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/Resources/config/app/twig_hooks/shop/order/summary.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
sylius_twig_hooks:
hooks:
'sylius_shop.account.order.show.summary':
'sylius_shop.account.order.show.content.summary':
invoices:
component: 'sylius_invoicing:invoice:list'
props:
order: '@=_context.order'
priority: 350

'sylius_shop.account.order.show.summary.invoices':
'sylius_shop.account.order.show.content.summary.invoices':
card:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card.html.twig'
priority: 0

'sylius_shop.account.order.show.summary.invoices.card':
'sylius_shop.account.order.show.content.summary.invoices.card':
head:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/head.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/head.html.twig'
priority: 100
body:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body.html.twig'
priority: 0

'sylius_shop.account.order.show.summary.invoices.card.body':
'sylius_shop.account.order.show.content.summary.invoices.card.body':
table:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table.html.twig'
priority: 0

'sylius_shop.account.order.show.summary.invoices.card.body.table':
'sylius_shop.account.order.show.content.summary.invoices.card.body.table':
head:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head.html.twig'
priority: 100
body:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body.html.twig'
priority: 0

'sylius_shop.account.order.show.summary.invoices.card.body.table.head':
'sylius_shop.account.order.show.content.summary.invoices.card.body.table.head':
number:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head/number.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head/number.html.twig'
priority: 200
issued_at:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head/issued_at.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head/issued_at.html.twig'
priority: 100
actions:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/head/actions.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/head/actions.html.twig'
priority: 0

'sylius_shop.account.order.show.summary.invoices.card.body.table.body':
'sylius_shop.account.order.show.content.summary.invoices.card.body.table.body':
number:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body/number.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body/number.html.twig'
priority: 200
issued_at:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body/issued_at.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body/issued_at.html.twig'
priority: 100
download:
template: '@SyliusInvoicingPlugin/shop/order/show/summary/invoices/card/body/table/body/download.html.twig'
template: '@SyliusInvoicingPlugin/shop/order/show/content/summary/invoices/card/body/table/body/download.html.twig'
enabled: '%sylius_invoicing.pdf_generator.enabled%'
priority: 0

0 comments on commit bba54ad

Please sign in to comment.