You can use your Magento products and categories within Builder with the Magento e-commerce plugin.
The plugin provides custom types that you can use to:
- Provide products and categories as inputs for your custom code components.
- Target content based on products or categories instead of URL paths with hard-coded resource handles or IDs.
- Preview products and categories on product detail pages and inside of other content while editing.
For a general overview of what you can do with e-commerce plugins and where they fit into your site, read Overview of Built-inPlugins.
So that the Builder Magento plugin can communicate with Magento, copy your store URL from your Magento store's admin panel. You need the store URL when configuring the Magento plugin in Builder.
For more information, visit Magento's documentation on Store URLs.
To install the plugin:
- In your Builder Space, go to Plugins.
- Find the Magento plugin.
- Click the toggle to enable the Magento plugin. The plugin now moves to the top of the plugins collection.
- Click the Settings button on the Magento plugin tile.
- In the dialogue that opens, enter your store URL, which you should have found in your Magento account according to the instructions in the previous section.
- Click the Connect Your Magento2 Store button.
The Magento plugin provides eight custom types:
- Magento Product (
MagentoProduct
) - Magento Product Preview (
MagentoProductPreview
) - Magento Product Handle (
MagentoProductHandle
) - Magento Products List (
MagentoProductsList
) - Magento Category (
MagentoCategory
) - Magento Category Preview (
MagentoCategoryPreview
) - Magento Category Handle (
MagentoCategoryHandle
) - Magento Categories List (
MagentoCategoriesList
)
Visit E-commerce Custom Types for details on the shape of each type's values.
Visit the Builder GitHub repo for the plugin's source as well as instructions on how to modify or develop it.
For more information leveraging the Magento plugin, visit: