Registrations In Account Area
For logged in customer, its possible to show their registered products in the account area or anywhere that's suitable. This will required some knowledge of shop's theme and able to make changes to the theme's HTML.
Here are the steps for putting product registrations in account area:
  • Go to Shop Admin > Online Store > Themes
  • Select the Edit HTML/CSS on the top right corner
  • Locate the template registration should in (e.g customers/account.liquid - This is the same account page that shows order history)
  • Place the following code into the right place - Make sure it doesn't break the HTML, always good to place it after close tag
<div id="mpr-root"></div>
<script type="text/javascript">
window.productReg = {
// defaultFormSlug: 'product-registration',
customer: {
id: {{ customer.id | json }},
email: {{ customer.email | json }},
address: {{ customer.default_address | json }},
tags: {{ customer.tags | json }},
}
}
</script>
<script type="text/javascript" src="https://product-reg.varify.xyz/v2/mpr-embeded-frontend.js"></script>
  • Now save the changes and check your changes in the frontend.
Note: the above code will display the default form - which is Product registration, however you can change the default form in the App settings > General > Default form
Alternatively you can uncomment (e.g remove the // in the // defaultFormSlug: 'product-registration' on above code and change product-registration to the form slug you want to display (the form slug can be found in the View on frontend in the Admin Form and it will open a new tab with url similar to apps/product-registration?form=product-registration, in here the product-registration is the form slug, if its different from, the slug will be different)
Copy link