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
Navigate to the Storefront Configuration
- Go to Content → Configuration.
- Select the Store and language as per your requirement.
Inject the Experro Theme Scripts
In the Miscellaneous HTML editor, paste the following block (replace all
<…> placeholders as noted below):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.
Replace Liquid Variables
- For each
"<liquid_variable>", substitute the appropriate Magento Liquid variable.
Save Configuration
- Click Save Configuration.
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.
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):
Product Detail Page
-
Configuration Script (add at top of
view.phtmlor viacatalog_product_view.xml):
Checkout Page
-
Configuration Script (add at the start of
onepage.phtmlor viacheckout_index_index.xml):