Skip to content

Commit 75f7c4c

Browse files
committed
Add links between catalog promotions and catalog promotion updates
1 parent 2e77d91 commit 75f7c4c

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php

+24
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,20 @@ public function prepend(ContainerBuilder $container): void
118118
'sortable' => null,
119119
],
120120
],
121+
'actions' => [
122+
'main' => [
123+
'back_to_catalog_promotions' => [
124+
'type' => 'default',
125+
'label' => 'setono_sylius_catalog_promotion.ui.back_to_catalog_promotions',
126+
'icon' => 'chevron left',
127+
'options' => [
128+
'link' => [
129+
'route' => 'setono_sylius_catalog_promotion_admin_promotion_index',
130+
]
131+
]
132+
],
133+
]
134+
]
121135
],
122136
'setono_sylius_catalog_promotion_admin_promotion' => [
123137
'driver' => [
@@ -156,6 +170,16 @@ public function prepend(ContainerBuilder $container): void
156170
],
157171
'actions' => [
158172
'main' => [
173+
'list_of_updates' => [
174+
'type' => 'default',
175+
'label' => 'setono_sylius_catalog_promotion.ui.list_of_updates',
176+
'icon' => 'list',
177+
'options' => [
178+
'link' => [
179+
'route' => 'setono_sylius_catalog_promotion_admin_catalog_promotion_update_index',
180+
]
181+
]
182+
],
159183
'create' => [
160184
'type' => 'create',
161185
],

src/Resources/translations/messages.en.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ setono_sylius_catalog_promotion:
3535
promotions: Catalog promotions
3636
ui:
3737
all: All
38+
back_to_catalog_promotions: Back to catalog promotions
3839
catalog_promotion_updates: Catalog promotion updates
3940
catalog_promotions: Catalog promotions
4041
edit_promotion: Edit catalog promotion
42+
list_of_updates: List of updates
4143
manage_promotions: Manage catalog promotions
4244
new_promotion: Create new catalog promotion
45+
no_error: No error
4346
products_updated: Products updated
4447
products_updated_less_than_estimated: The number of products updated is less than the estimated number of products to update. This may be due to the fact that some products were filtered/edited/removed after the initial processing started.
4548
promotion: Catalog promotion
4649
promotions: Catalog promotions
4750
rules_explanation: If you don't add any rules, the promotion will be applied to all products
4851
triggered_by: Triggered by
4952
updated_at: Updated at
50-
no_error: No error

0 commit comments

Comments
 (0)