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:
Jacob Tobiasz 2023-08-03 18:09:14 +02:00 committed by GitHub
commit 8b898c97eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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``: