mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Update catalog_promotions.rst
This commit is contained in:
parent
69798e40ba
commit
1e42b7af06
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