Beta builds of Blocs can be installed and used alongside the current public release of Blocs. As this is a beta release of Blocs it is recommended that testers keep backups of any projects edited with this release. Please report all bugs here.
The following tutorial illustrates the difference between simple blocks and dynamic blocks, and how to use Page Builder to create each type of block.
Blocs3.2.4TNT.zip (29.42 MB) Choose free or premium download SLOW DOWNLOAD. FAST INSTANT DOWNLOAD Download type. Blocs 4.2 is the first edition of Blocs to support the creation of websites in multiple framework versions. At the time of writing this, Bootstrap V5 is still in beta (build 3), however, because the official release of Bootstrap V5 is imminent, we have added full support for creating new projects and also migrating your current Bootstrap V4.
Blocs 2 4 4 2 Installer
Page Builder has a new content type called Banner, which is featured in the first tutorial and is unrelated to the previous banner functionality. What was previously the Banner option in the Content menu is now Dynamic Block.
Dynamic block in the storefront
This tutorial assumes that you have completed Tutorial 1: Simple Page, including the prerequisites and downloaded sample files. Follow parts 1, 2, 3, and 4 of this tutorial in order.
These tutorials are updated to reflect recent changes to the Page Builder workspace in the 2.4.1 release. If you are using an earlier Adobe Commerce release, use the Page Builder tutorials included in the Commerce 2.3 User Guide.
Part 1: Create a simple block
In this tutorial, you will create a simple block with content from Google Maps. Simple blocks are sometimes called CMS blocks or static blocks, because the content does not change. A simple block is ideal for content that you might want to reuse.
Step 1: Create a new block
- On the Admin sidebar, go to Content > Elements > Blocks.
- In the upper-right corner, click Add New Block.
- For Block Title, enter
Google Map
. - For Identifier, enter
google-map
. - Choose the Store View where the block is to be available.Block Information
- In the upper-right corner, click Save.
Step 2: Add a Google Map
- Scroll down to the Page Builder content preview, which is currently empty, and click Edit with Page Builder.
- In the Page Builder panel, expand Media and drag a Map placeholder to the stage.Dragging a map to the stageA map to your store location appears if Google Maps is configured for your store.Configured Google Map for your storeA placeholder map appears if Google Maps isn’t yet configured for your store.Google Maps placeholder
- In the upper-right corner of the stage, click the Close Full Screen () icon.This returns you to the Content section for the block with the preview displayed.
- In the upper-right corner, click the Save arrow and choose Save & Close.
Step 3: Configure Google Maps
If Google Maps is already configured for your store, you can skip this step and proceed to the next.
- Go to the Google Cloud Platform Console.
- Click the project drop-down and select or create the project for which you want to add an API key.
- Follow the instructions in the Google Maps documentation to configure your API credentials.
- Copy your API Key to the clipboard.
- Return to the Commerce Admin and go to Stores > Settings > Configuration.
- In the left panel under General, choose Content Management.
- Expand Advanced Content Tools.
- For Google Maps API Key, paste the key you copied.
- Click Test Key.If there is a problem with your key, return to the Google Maps Platform site to resolve the problem. Then, try again.
- After your key is verified, click Save Config.
Step 4: Add the block to a page
- On the Admin sidebar, go to Content > Elements > Pages.
- In the grid, find the Simple Page that you created in the first tutorial and select Edit in the Action column.
- Expand the Content section and click Edit with Page Builder or inside the content preview area.
- In the Page Builder panel under Layout, drag a Row placeholder to the top of the stage.Adding the row to the top of the stage
- In the Page Builder panel, expand Add Content and drag a Block placeholder to the new row.
- Hover over the empty block container to display the toolbox and choose the Settings () icon.Block toolbox
- On the Edit Block page, click Select Block.Select Block
- In the search box, enter
map
and press the Enter/Return key to find the block that you created.Find Block in List - In the grid, click Select to choose the Google Maps block.
- In the upper-right corner, click Save to save the settings and return to the Page Builder workspace.
- In the upper-right corner of the stage, click the Close Full Screen () icon.This returns you to the Content section for the page with the preview displayed.
- In the upper-right corner, click the Save arrow and choose Save & Close.Choosing the Save & Close option
Congratulations! You have completed the Part 1 of the Block tutorial. Make sure to keep your work for reference.
Part 2: Create a dynamic block
A dynamic block includes logic that determines where, when, and to whom it appears. In this tutorial, you will create a dynamic block for a promotion that is triggered when price rule conditions are met, and that appears only to a specific customer segment. The end result of this example is similar to the banner that was created in the first tutorial, but with logic that controls when it appears in the storefront.
Sample Luma tee promotion
Step 1: Create a new dynamic block
- On the Admin sidebar, go to Content > Elements > Dynamic Blocks.Dynamic Blocks list
- In the upper-right corner, click Add Dynamic Block.New Dynamic Block page
- Complete the basic settings for the new dynamic block:
- Set Enable Dynamic Block to
Yes
. - For Dynamic Block Name, enter
Tee Shirt Promo
. - Set Dynamic Block Type to
Content Area
and click Done.The Dynamic Block Type determines where in the page layout the block is to be placed. When setting up a dynamic block for your store, take into consideration both the page layout and the theme, so you can put the available space to good use. Some stores have an active content area that is limited to a fixed width, while others extend the full width of the screen.Dynamic Block Type setting - For Customer Segment, select the checkbox of each segment that you want to apply to the dynamic block and click Done to save the list of segments.For this example, we created two customer segments that identify registered customers by gender. This dynamic block appears only to registered female customers who are logged in to their accounts while they shop in your store.Choosing the customer segments
Step 2: Complete the settings
Scroll down to the Content section, which displays an empty Page Builder content preview, and click Edit with Page Builder. Then, complete the following tasks:
Task 1: Add a background image
- Hover over the row container to display the toolbox and choose the Settings () icon.
- Under Appearance, choose Full Bleed.
- For Minimum Height, enter
400px
. - Scroll to the Background section and set the Background Image by clicking Select from Gallery and choosing the
wide-banner-background.png
image uploaded in the first tutorial. - In the upper-right corner, click Save to apply the settings and return to the Page Builder workspace.Row with the image
Task 2: Add columns
In the Page Builder panel under Layout, drag a Column placeholder onto the row.
Dragging the column type into the row
The row is now divided into two columns of equal width.
Task 3: Add text
- In the Page Builder panel, expand Elements and drag a Text placeholder to the second column.Dragging a text box to the second column
- Enter the following three lines of text into the editor:
Even more ways to mix and match.
Buy 3 Luma tees and get a 4th free.
Shop Tees >
Entering text for the column - Select all three lines of text and use the toolbar to set the Line Height to
40px
.Setting the line height - Set the Font Size for each line as follows:
Line 1: 28px Line 2: 24px Line 3: 18px Because this block could be placed anywhere on the page, we use the default paragraph style, rather than heading levels. Also, don’t worry that the text does not yet wrap correctly in the column.Formatted text
Task 4: Add a Link
In the first tutorial, you learned how to use the Button content type to create a link. This example shows how to insert a link from the editor toolbar.
- In another browser tab, open the storefront and navigate to the page that is to be the target destination for the link.You can use the fully qualified URL or a relative URL that omits the reference to your store domain.
- Full URL
https://mystore.com/women/tops-women/tees-women.html
- Relative URL
../women/tops-women/tees-women.html
- Return to the Page Builder workspace tab and text editor, select the
Shop Tees >
text in the third line, and choose Bold () in the editor toolbar. - With the
Shop Tees >
text in the third line still selected, choose Insert/edit link () in the editor toolbar.Inserting a link - For Url, enter the relative link that you prepared.
- Set Target to
None
.This setting opens the page in the same browser window, rather than opening a new tab. - For Title, enter
Shop Tees
.The Title link attribute is used by some browsers as a tooltip. - Click OK to save the link and return to the Page Builder workspace.Link details
- In the upper-right corner of the stage, click the Close Full Screen () icon.This returns you to the Content section for the dynamic block with the preview displayed.
- In the upper-right corner, click Save.
Step 3: Add a price rule
- Open the Tee Shirt Promo dynamic block in edit mode again.
- Expand the Related Promotions section and click Add Cart Price Rules.Related promotions
- On the Add Related Cart Price Rules page, select the checkbox for the Buy 3 tee shirts and get the 4th free price rule and click Add Selected.Adding a related cart price ruleThe price rule appears in the Related Promotions section, under Related Cart Price Rule. You can associate multiple price rules with a dynamic block. However, for this simple example, we’ll use just one.Selected cart price rule
- In the upper-right corner, click Save.
Step 4: Add the dynamic block to a page
- In the Admin sidebar, go to Content > Element > Pages
- Find the Simple Page that you created in the first tutorial and open it in edit mode.
- Expand the Content section and click Edit with Page Builder.
- Hover over the top row with the same image as the dynamic block to display the toolbox and the Remove () icon.Click OK to confirm removal of the row from the page.
- In the Page Builder panel under Layout, drag a new Row placeholder to the top of the stage.
- In the Page Builder panel, expand Add Content and drag a Dynamic Block placeholder to the new row.Dragging a dynamic block onto the row
- Hover over the dynamic block container to display the toolbox and choose the Settings () icon.Dynamic block toolbox
- On the Edit Dynamic Block page, click Select Dynamic Block.Select Dynamic Block
- Find the Tee Shirt Promo dynamic block that you created and click Select.A summary of the dynamic block information appears below.Dynamic block information
- Accept the default Template,
Dynamic Block Block Template
. - When complete, click Save to save the settings and return to the Page Builder workspace.Dynamic Block in the page preview
- In the upper-right corner of the stage, click the Close Full Screen () icon.This returns you to the Content section for the page with the preview displayed.
- In the upper-right corner, click the Save arrow and choose Save & Close.
Block 244.0.0.251
Congratulations! You have completed the Part 2 of the Block tutorial. Make sure to keep your work for reference.
Part 3: Update the dynamic block
In this final part of the tutorial, you will edit a dynamic block while the page is live in your store. Then, log in to the store as a member of the customer segment to make the block appear.
Sample dynamic block in the storefront
Step 1: Edit the dynamic block
- In the Admin sidebar, go to Content > Elements > Dynamic Blocks.
- Find your Tee Shirt Promo dynamic block in the grid and open it in edit mode.
- Expand the Content section and click Edit with Page Builder.
- Change the column width:
- Hover over the border between the two columns.
- Hold down the mouse button and drag the border two divisions to the left.Grid divisionsThe first column is now four of twelve (4/12) grid divisions wide, and the second column is eight of twelve (8/12) divisions wide.Two unequal columns
- Change the text color:
- Select the first two lines of text.
- On the editor toolbar, choose Text Color and click the White swatch.
Text color - In the upper-right corner of the stage, click the Close Full Screen () icon.This returns you to the Content section for the dynamic block with the preview displayed.
- In the upper-right corner, click Save.
Step 2: View the Dynamic Block
Because this dynamic block is visible only to members of a specific customer segment, you must log in as a customer who is a member of the customer segment to see the promotion. In this example, the block appears only to female customers.
- Open a browser window to your storefront.
- To view your sample page, modify the URL in the address bar as follows:mystore.com/sample-pageIf your store is configured to include the html suffix, include the suffix as follows:mystore.com/sample-page.html
- Sign in as a female customer:
- In the upper-right corner of your home page, click Sign In.
- If the sample Luma data is installed on your system, use the following credentials:
Email [email protected]
Password [email protected]
- Click Sign In.
- Return to the sample page to see the dynamic block that you created with the Tee Shirt Promo.
Dynamic block displayed for a customer segment
Congratulations! You have completed the Part 3 of the Block tutorial. Make sure to keep your work for reference.
When you are ready, proceed to Tutorial 3: Catalog Content
2.4 Naruto
Trading blocs are usually groups of countries in specific regions that manage and promote trade activities. Trading blocs lead to trade liberalisation (the freeing of trade from protectionist measures) and trade creation between members, since they are treated favourably in comparison to non-members.
2 To The 4th Power
The World Trade Organisation (WTO) permits the existence of trading blocs, provided that they result in lower protection against outside countries than existed before the creation of the trading bloc .
The most significant trading blocs currently are:
European Union (EU) – a customs union, a single market and now with a single currency
European Free Trade Area (EFTA)
North American Free Trade Agreement (NAFTA) between the USA, Canada and Mexico
Mercosur - a customs union between Brazil, Argentina, Uruguay, Paraguay and Venezuela
Blocs 2 4 4 Letters
Association of Southeast Asian Nations (ASEAN) Free Trade Area (AFTA)
Common Market of Eastern and Southern Africa (COMESA)
South Asian Free Trade Area (SAFTA) created in 2006 with countries such as India and Pakistan
Pacific Alliance – 2013 – a regional trade agreement between Chile, Colombia, Mexico and Peru
Trading Blocs and Trade Creation
Trade creation is the movement from a higher cost source of output to a lower cost source of supply as a result of joining a trade agreement.
Trade creation occurs when a country enters a free trade area / agreement or becomes involved in a customs union in which there is free trade between members but also a common external tariff.
Trading Blocs and Trade Diversion
Trade diversion is a switch from a lower-cost foreign source/supplier outside of a customs union towards a higher-cost supplier located inside the customs union.
Trade diversion is a feature of a country deciding to join a customs union i.e. an area where there is free trade within the customs union but also a common external tariff.
When a country joins a customs union it might initially be trading freely with a low cost supplier in a 3rd party nation.
Once inside a customs union, the country must now adopt a common external tariff which will then increase the cost of importing from the 3rd party nation.
These higher prices might affect consumers directly e.g. higher prices for food.
Or they might affect consumers indirectly because producers now have to pay more for their imports from the 3rd party.