Skip to main content

Questions tagged [dynamic-blocks]

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Add dynamic block based on customer segment to checkout

We are trying to display custom content in checkout using a dynamic block with a customer segment. I have created a new module to add a CMS block that contains my dynamic block to my checkout page. I ...
cjochum's user avatar
  • 131
0 votes
2 answers
200 views

How to create data patch to insert data in dynamic blocks in Magento 2.4?

How to create data patch to insert data into the database for dynamic blocks?
Vinod Kumar's user avatar
  • 2,065
0 votes
0 answers
40 views

How to use cacheIdentity in dynamic block graphql in Magento 2

I want to use cache in dynamic block graphql with cacheIdentity. I have added this into the graphql where I am getting the dynamic blocks data in the graphql response. But how can I check weather the ...
Vinod Kumar's user avatar
  • 2,065
0 votes
2 answers
47 views

Show different block with storeCode

I have this code for my horizontal menu and would like to show different blocks for the different storeViews. For example the StoreCode is EN i would like to show the block en-horzizontal-menu the ...
SERVISTO's user avatar
0 votes
0 answers
577 views

how to call address dynamic block in template file with arguments?

Hi here is my code in the layout XML file. <block class="Magento\Customer\Block\Address\Edit" name="customer_address_edit" template="Magento_Customer::address/edit.phtml&...
Niraj Patel's user avatar
0 votes
0 answers
118 views

The block is not displaying after loading the page

Please help solve this puzzle. I'm created after plugin, after load category widget. The collection of items must be used in the js. The idea is to simply intercept the collection in the plugin, load ...
Dmitry Zar's user avatar
1 vote
0 answers
255 views

Magento 2 Commerce Customer Segmentation Non Login User

I am working with Magento 2 commerce (2.4). We need to show different content for users coming from different locations (We have different content for each state). And I am planning to use Magento 2 ...
Jose Antony's user avatar
2 votes
2 answers
114 views

How to convert layout block to cms block?

I have created a block programmatically which shows category name and image on home page. Following is my code: cms_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3....
26vivek's user avatar
  • 467
1 vote
2 answers
2k views

How to add CMS Dynamic Block Programmatically using UpgradeData in Magento 2?

I'm trying to create a dynamic block by making an UpgradeData on magento 2.3, someone knows how this do it?
Martin 's user avatar
1 vote
1 answer
2k views

How do you configure a dynamic block for a customer segment in M2C?

Using Magento Commerce (nee EE) 2.3.1, how do you configure a Dynamic Block to render for a specific customer segment? The stock Magento documentation: https://docs.magento.com/m2/ee/user_guide/cms/...
dbcn's user avatar
  • 754