Blogs

App setting after changing Theme

    In Shopify, when an app is installed then some code is auto-injected in the theme file which needs to be added again after changing the theme.

    For example you are using Venture theme currently and install AiTrillion app. Now after couple of days you add a new theme say Boundless and publish it for your store.

    In this case you need to copy some code (auto injected by AiTrillion app) from Venture theme to Boundless theme (new theme).

    Below are some steps which will help you add the code manually:

    Step 1.

    In one tab, edit the theme in which you want to set up the app. For doing so, from Shopify admin go to Online Store > Themes > Actions > Edit Code. For Boundless theme (new theme).

    Step 2.

    Now, in another tab, edit the theme in which app is already installed and working. Venture theme.

    Step 3.

    Create aio-script snippets in the theme Boundless (app set up required). This is required to run the AiTrillion app, and it enables Ai Box, and Chat in new theme.

    Search for aio-script.liquid file in the Venture (app already set up) theme. Copy snippet code from from the file and paste it in the theme Boundless  (app set up required).

    To setup Loyalty Rewards in the new theme –

    Step 1. 

    Add a new snippet aio_loyalty_snippet in the theme Boundless (app set up required).

    Step 2. 

    Search for aio_loyalty_snippet.liquid file in the Venture (app already set up) theme. Copy snippet code from the file and paste it in the theme Boundless (app set up required)

    To setup Reviews in the new theme –

    Step 1. 

    Add a new snippet aio_reviewform and aio_reviewlist in the theme Boundless (app set up required).

    Step 2. 

    Search for aio_reviewform.liquid and aio_reviewform.liquid file in the Venture (app already set up) theme. Copy snippet code from the file and paste it in the theme Boundless (app set up required)

    To setup Product Recommendation in the new theme –  

    Step 1. 

    Add a new snippet aio_product_recommendation in the theme Boundless (app set up required).

    Step 2. 

    Search for aio_product_recommendation.liquid file in the Venture (app already set up) theme. Copy snippet code from the file and paste it in the theme Boundless (app set up required)

    To setup Setup Loyalty Reward Widgets refer this article. 

    After adding all the snippets in the theme correctly, open file theme.liquid in theme Boundless (app set up required) and add below-mentioned code. This is required to run the AiTrillion app.

    • Search for closing </head> tag in the file and paste the code above it
    {% include 'aio-script' %}
    
    
    
    
    
    
    

    Open file product.liquid under Templates and paste the below code at the end of the file and Save it. This code will display the review form and list on the product page.

    {% include 'aio_reviewform' %}{% include 'aio_reviewlist' %}{% include 'aio_product_recommendation' %}
    
    
    
    

     

    Share
    Did this article answer your question?
    Share
    Book A Demo