Update catalog_promotions.rst

This commit is contained in:
Zairig Imad 2023-08-02 16:05:44 +01:00 committed by Jacob Tobiasz
parent 69798e40ba
commit 1e42b7af06
No known key found for this signature in database
GPG key ID: 6434250CB3525233

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