Overview
In this section, you’ll inject the Experro theme scripts into your Magento storefront via the Admin panel. These scripts will load your custom UI templates, CSS/JS, and wire up all e‑commerce variables and selectors.Steps
1
Log in to Magento Admin
Open your Magento Admin panel in your browser.
2
Navigate to the Storefront Configuration
- Go to Content → Configuration.
- Select the Store and language as per your requirement.
3
Locate the Footer HTML
- Expand Other Settings → Footer.
- Scroll to Miscellaneous HTML.
4
Inject the Experro Theme Scripts
In the Miscellaneous HTML editor, paste the following block (replace all
<…> placeholders as noted below):5
Determine Your <your_experro_base_url> and replace it in the above script
- In Experro Admin, go to Workspace Settings → Channels.
- Open Channel Settings.
- Switch to the Languages tab.
- Copy the Language URL corresponding to your store’s locale.
- Replace
<your_experro_base_url>in the script with this URL.
6
Replace Liquid Variables
- For each
"<liquid_variable>", substitute the appropriate Magento Liquid variable.
7
Save Configuration
- Click Save Configuration.
8
Page‑Specific Script & Selector Injection
To enable Experro features on specific page types, you must insert two separate pieces into your theme templates:
- Configuration Script – Add the
<script>block to configureecommerce_variablesin the relevant PHTML or layout file. - Placeholder Container – Add the
<div id="exp-*-page-selector">container in the HTML where Experro should render its widgets.
9
Category Listing Page
-
Configuration Script (e.g., in
view.phtmlbefore the product loop or viacatalog_category_view.xml): -
Placeholder Container (place this in your category template where listings appear):
10
Product Detail Page
-
Configuration Script (add at top of
view.phtmlor viacatalog_product_view.xml):
11
Checkout Page
-
Configuration Script (add at the start of
onepage.phtmlor viacheckout_index_index.xml):
12
(Optional) Search Results Page
-
Placeholder Container (in
search_result_index.xmlorform.mini.phtmlto wrap search results):