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="my-product-registration"></div>
<script type="text/javascript">
window.productReg = {
        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/dist/product-registration.js"></script>
  • Now save the changes and check your changes in the frontend.

results matching ""

    No results matching ""