After July 2021, the 2.3.x release line will no longer receive quality updates, or user guide updates. PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. We strongly recommend planning your upgrade now to Adobe Commerce 2.4.x to help maintain PCI compliance.

Dynamic Blocks in Price Rules

The information on this page is intended for Adobe Commerce 2.3 customers who are on an extended support contract. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.
Magento Commerce only. Learn more.

Any dynamic block that you create can be associated with a promotion. To make the association, you must first create both the dynamic block and the catalog price rule or cart price rule. The association can be made while working on a price rule or when working on a dynamic block.

Important: After you create this association, the dynamic block is displayed only when the rule fires. If the promotion is targeted to segment A, the block is displayed to segment A. If the promotion is not active, the block is not displayed.

Associate a dynamic block with a price rule

  1. On the Admin sidebar, go to Marketing > Promotions and choose one of the following:

    • Catalog Price Rules
    • Cart Price Rules
  2. In the grid, find the rule that you want to associate with the dynamic block and open in edit mode.

  3. Scroll down and expand Expansion selector Related Dynamic Blocks.

  4. In the first column, set the filter to Any and click Reset Filter.

    The grid now lists all available dynamic blocks.

  5. Select the checkbox of each dynamic block that you want to associate with the rule.

    Adding selected dynamic blocks

  6. When complete, click Save.

Associate a price rule with a dynamic block

  1. On the Admin sidebar, go to Content > Elements > Dynamic Blocks.

  2. Find the dynamic block in the grid and open in edit mode.

  3. Scroll down and expand Related Promotions.

    Any currently associated price rules appear in the grid.

  4. Add a new associated rule or remove a current association.

    • To associate a shopping cart promotion, click Add Cart Price Rules.

    • To associate a product-related promotion, click Add Catalog Price Rules.

      Related promotions for a dynamic block

  5. In the grid, select the checkbox of each rule that you want to associate with the dynamic block.

  6. Click Add Selected.

    Adding selected price rules to a dynamic block

  7. When complete, click Save.