Skip to content

Commit

Permalink
Add links between catalog promotions and catalog promotion updates
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jan 9, 2025
1 parent 2e77d91 commit 75f7c4c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@ public function prepend(ContainerBuilder $container): void
'sortable' => null,
],
],
'actions' => [
'main' => [
'back_to_catalog_promotions' => [
'type' => 'default',
'label' => 'setono_sylius_catalog_promotion.ui.back_to_catalog_promotions',
'icon' => 'chevron left',
'options' => [
'link' => [
'route' => 'setono_sylius_catalog_promotion_admin_promotion_index',
]
]
],
]
]
],
'setono_sylius_catalog_promotion_admin_promotion' => [
'driver' => [
Expand Down Expand Up @@ -156,6 +170,16 @@ public function prepend(ContainerBuilder $container): void
],
'actions' => [
'main' => [
'list_of_updates' => [
'type' => 'default',
'label' => 'setono_sylius_catalog_promotion.ui.list_of_updates',
'icon' => 'list',
'options' => [
'link' => [
'route' => 'setono_sylius_catalog_promotion_admin_catalog_promotion_update_index',
]
]
],
'create' => [
'type' => 'create',
],
Expand Down
4 changes: 3 additions & 1 deletion src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ setono_sylius_catalog_promotion:
promotions: Catalog promotions
ui:
all: All
back_to_catalog_promotions: Back to catalog promotions
catalog_promotion_updates: Catalog promotion updates
catalog_promotions: Catalog promotions
edit_promotion: Edit catalog promotion
list_of_updates: List of updates
manage_promotions: Manage catalog promotions
new_promotion: Create new catalog promotion
no_error: No error
products_updated: Products updated
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.
promotion: Catalog promotion
promotions: Catalog promotions
rules_explanation: If you don't add any rules, the promotion will be applied to all products
triggered_by: Triggered by
updated_at: Updated at
no_error: No error

0 comments on commit 75f7c4c

Please sign in to comment.