Add your return portal to your Magento 2 store for customers to easily initiate a return request.
How to Add Your Return Portal to Your Magento 2 Store
To add your return portal to your Magento 2 store:
- Add a new page to your store using the Magento admin panel under Content > Pages.
-
- Click on Add New Page.
- Under Page Title, enter the portal name, i.e returns.
- Open the Content tab.
3. Click on Edit with Page Builder.
4. Open the Elements tab.
5. Drag the HTML Code element to add it to the return portal page.
6. Hover over the new element and click on the settings icon.
7. Add the following code to the page.
Change the data to align with your site (shop, currency, locale, etc) and remove the comments (marked in bold).
<script src="https://static.returngo.ai/master.returngo.ai/returngo.min.js" defer="defer"></script>
<script type="application/javascript">
window.ReturnGO = {
shop: 'shopname.myshopify.com', //Your shop URL without https://
currency: {
active: 'USD', //The portal currency
rate: '1.0', //The conversion rate between your portal currency and your main store currency, if they are different
},
locale: 'en', //The locale to display
};
</script>
<div id="ReturngoPortalEmbedding" style="position: relative; min-height: 600px; background-color: #FFFFFF"></div>
8. Save the new element.
9. Go back to the Page Editor page by clicking on the minimize icon at the top right.
10. Save the return portal page.
11. Go back to the pages list.
12. Your return portal will now be available under <store url>/<URL Key>.