The app script is still in my template after the removal of the app

Before uninstalling the app, we always suggest disabling the app first to ensure that all traces of our code are also removed from your store templates.

If you disabled the app before it was uninstalled, you don't have to worry about any codes from our app. However, if you didn’t disable the app prior to uninstalling it, we cannot remove the app script from your store as the Shopify uninstall process does not allow us to access your store once you hit the ' Uninstall' button.

However, if you didn't disable the app before uninstalling it, you will find, at the end of your    theme.liquid template, a line similar to:

<script src="//viewed-products-assistant.incubate.dev/js/core/main.min.js?timestamp=1614673459&shop=yourstore.myshopify.com" defer></script>

It won't harm your store, but you can remove it safely; just delete that line from your template. That can be easily done, here we share the steps to get there:

1- From your Shopify Admin page, find the  Sales channels and click on "Online Store"

2-That should take you to the Themes page➝ On your published theme, click on "Actions" ➝ "Edit code".

3- Search for   "theme.liquid" and open it:

4. Search for the app, you may press the keys Control+F (on Windows) or Command+F (on Mac) to open a search box, and look for viewed-products-assistant to locate the code you want to remove. It will be highlighted if it's indeed still in your store:

5. Now you can select the entire line and delete it from the code. Hit " Save" on the top right corner, and you're done.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.