Guide: Testing Individual Pages
Last updated
Last updated
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.
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.
Step 4: Select that same duplicate template for testing in Shoplift, it will now have only the specific product/collection/page intended to test.
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.
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.
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.
Step 8: Select that same duplicate template for testing in Shoplift, it will now have only the specific product/collection/page intended to test.