mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
docs #15202 Update catalog_promotions.rst (zairigimad)
This PR was merged into the 1.12 branch. Discussion ---------- | Q | A | |-----------------|--------------------------------------------------------------| | Branch? | 1.12 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | n/a | License | MIT Commits ------- Update catalog_promotions.rst
This commit is contained in:
commit
8b898c97eb
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ We can also make it programmatically:
|
|||
|
||||
/** @var MessageBusInterface $eventBus */
|
||||
$eventBus = $this->container->get('sylius.event_bus');
|
||||
$this->eventBus->dispatch(new CatalogPromotionCreated($catalogPromotion->getCode()));
|
||||
$eventBus->dispatch(new CatalogPromotionCreated($catalogPromotion->getCode()));
|
||||
|
||||
And now you should be able to see created Catalog Promotion. You can check if it exists like in the last example (with GET endpoint).
|
||||
If you look into ``product-variant`` endpoint in shop you should see now that chosen variants have lowered price and added field ``appliedPromotions``:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue