How To: Upgrade a page template to Online Store 2.0
Difficulty level: intermediate
Coding required: some
Need help? Contact support
Create a new stub section to initiate Shopify Online Store 2.0 page template
Note: this step only needs to be completed once per theme
In the Shopify Theme Editor, edit the code of the theme you are working on
In the sections folder of your theme, crete a new file in the folder. Title the asset
theme-enhance-conversion.liquid
Using the button below, click to copy the code content to your clipboard
Delete the contents of the
theme-enhance-conversion.liquid
section created by Shopify and paste the contents of your clipboard intotheme-enhance-conversion.liquid
Save the
theme-enhance-conversion.liquid
file, if the icon is gray and you didn't click a green button, the previous step is incomplete
Create a page template file
This step needs to be completed for each page that you need to have Shopify Online 2.0 features for. For more info: how Shopify page templates work
Navigate to the templates folder and add a new template file with the following:
- Create a new template for: Page
- Template type: JSON
- File name: call it a name relevant to the page type you are customizing (i.e. landing promo july)
Using the button below, click to copy the contents of the "theme-enhance-page-json" to your clipboard
In the product page template you created, update the sections that were in there in both the manifest and the listing
Paste into the template file that you created in the step above and click save
Add decision gate to go to adding sections or to start merchandising
Create a new page and assign a page template
Create a new page as standard in Shopify
Assign that page the template you just created
Merchandise the content of that page in the Shopify Theme Editor
Issues viewing your page/page template?
If you are working on a preview theme and you are having issues viewing your page, please see: How Shopify page templates work