Guide: Testing Individual Pages
By default, Shoplift will include any assigned product, page, or collection in an associated template test. If you want to test and individual product or collection, you can duplicate your existing template and assign that specific item to the new template, as detailed below.
To learn more about the differences between OS2 and OS1 themes, see Theme Compatibility.
OS2 Themes (JSON Templates)
Step 1: From the Shopify theme editor, select list of templates (top dropdown) and click "Create template."
Step 2: Name the new template and select an existing template on which to base the design.
Step 3: Return to the Shopify Admin and select product/collection/page you wish to test and assign it to that new template.
![](https://docs.shoplift.ai/~gitbook/image?url=https%3A%2F%2F314821113-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDg2m2UmvTCMjmBjnzBKA%252Fuploads%252Fof5cAPa8GEHV0OOn1hf1%252Fproduct%2520change%2520template.png%3Falt%3Dmedia%26token%3D9cf14bf4-71ef-4c43-8f0e-cf0fda7126fc&width=768&dpr=4&quality=100&sign=f27460f4&sv=1)
Step 4: Select that same duplicate template for testing in Shoplift, it will now have only the specific product/collection/page intended to test.
![](https://docs.shoplift.ai/~gitbook/image?url=https%3A%2F%2F314821113-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDg2m2UmvTCMjmBjnzBKA%252Fuploads%252FFu9kJnWaHUvBVaRjazj4%252Ftemplate%2520drawer%2520new%2520template.png%3Falt%3Dmedia%26token%3D75faa080-165d-401b-bd67-45dee1c61add&width=768&dpr=4&quality=100&sign=3548b075&sv=1)
OS1 Themes (Liquid Templates)
Step 1: From the Shopify Admin, select Online Store > Themes from your list of Sales channels.
Step 2: Scroll to your live theme, select "More Options" (the three dots) and "Edit Code" from the dropdown menu.
![](https://docs.shoplift.ai/~gitbook/image?url=https%3A%2F%2F314821113-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDg2m2UmvTCMjmBjnzBKA%252Fuploads%252Fhy9uUfor2OivaltkOYuX%252Fedit%2520theme%2520code.png%3Falt%3Dmedia%26token%3D69cc0087-fcbb-4e86-94d2-58b3a3ffe17e&width=768&dpr=4&quality=100&sign=1585ba01&sv=1)
Step 3: This will take you to the Shopify Code editor. On the left-hand side, scroll to the Templates directory and find the template, like product.liquid
, for example. Copy the code here to your clipboard.
Step 4: Then scroll to the top of the Templates directory, where you will see an option to Add a new template on the left-hand side. Click this, and a popup will appear to create a new template.
![](https://docs.shoplift.ai/~gitbook/image?url=https%3A%2F%2F314821113-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDg2m2UmvTCMjmBjnzBKA%252Fuploads%252F0sCuNKNTjPFqsVwwdDPE%252FScreenshot%25202024-06-20%2520at%252012.05.09%2520PM.png%3Falt%3Dmedia%26token%3D0b5188ae-f33b-42be-a9de-e0c54bb2c2e5&width=768&dpr=4&quality=100&sign=2dee94c2&sv=1)
Step 5: Select product from the dropdown, select "liquid," and give your template a name, like product.new.liquid
. Then click "Done" to save your changes.
Step 6: Your template will be created and you can navigate to the file from the list of template files. Select the file, select all the code in the file, and replace it by pasting the code you copied from your original template.
Step 7: From here, navigate to the product you want to test in the Shopify Admin. Select your new template as the assigned template for this product.
![](https://docs.shoplift.ai/~gitbook/image?url=https%3A%2F%2F314821113-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDg2m2UmvTCMjmBjnzBKA%252Fuploads%252FkPGBBlbXMuNKQ9QQIJqK%252Fproduct%2520change%2520template.png%3Falt%3Dmedia%26token%3Da0b41900-34b5-4321-9487-7583a3651f9d&width=768&dpr=4&quality=100&sign=ba666b54&sv=1)
Step 8: Select that same duplicate template for testing in Shoplift, it will now have only the specific product/collection/page intended to test.
Last updated