This repository contains the frontend code for a Shopify store, utilizing Liquid, HTML, and CSS.
Shopify Account
Activate the "profilesforhumanity-org-theme-exp" theme in Shopify.
Located in the "templates" directory, these files control the structure of different pages (e.g., product.liquid). Import the code from "profile_textarea.html" into "product.theme_template.liquid".
CSS files in the "assets" directory handle store styling. Customize styles in "main.css".
The "assets" directory may include custom JS files. Customize JavaScript in "main.js".
This guide provides step-by-step instructions for creating a product registration form in Shopify, including condition checks based on customer ID and order ID.
Login to Shopify account - https://www.shopify.com/login
Upon login, the default PFH-clone is displayed, confirming the user's inclusion in the project.
- Default Dashboard is being displayed on entering the Shopify account.
- Ensure the "profilesforhumanity-org-theme-exp" theme is highlighted in the Online Store theme selection.
- Theme of the project, is highlighted in the image below.
Click on the (...) beside the Customize button, to create a Registration of the Product creation template page. Click on the 'Edit code' highlighted in the image below
Navigate to the section in the Menu, and select the file name product-template.liquid. Default product-template code is contained in the file.
Front-end code git URL - https://github.com/changing-the-present/pfh-editable-profiles/blob/main/frontend/product-template.liquid
Copy the product-template.liquid in the above git url to the product-template.liquid file into the shopify.
Make sure you 'save' the code and 'exit' the product-template.liquid page.
Creation and listing of Registration Product Collection is displayed in Shopify 'Collections' tab section. Default if no collection will be displayed. User can create collections by clicking on 'Create Collection' button on thr right top menu.
Creation Registration Product Collection through Shopify admin portal
- Preview Registration Product Collection through 'Online Store'
- Click on Registration Product Collection on the top Menu in the Preview page
The registration of the product collection form is displayed
Login to Shopify account - https://www.shopify.com/login
Default PFH-clone is displayed, since user is been added to the project
- Default Dashboard is being displayed on entering the Shopify account.
- Ensure the "profilesforhumanity-org-theme-exp" theme is highlighted in the Online Store theme selection.
- This is the theme of the project, is highlighted in the image below.
Click on the (...) beside the Customize button, to create a Product new template page. Click on the 'Edit code' highlighted in the image below
On clicking on the 'Edit code' button, a default dashboard is displayed. Click on the Add new template to create the product page.
Popup of 'Add new template' is been displayed.
- 6.1 Template type - Select product
- 6.2 Select liquid file
- 6.3 File name - name the file as per your preference
After filing up all the required data, click on done.
product.theme_profile.liquid template is been created. This page contains the default code. We can change in this .liquid file as per user development requirements.
Front-end code git URL - https://github.com/changing-the-present/pfh-editable-profiles/blob/main/frontend/profile_textarea.html Copy the profile_textarea.html (code in the above git url) code to the .liquid file that is created.
Make sure you 'save' the code and 'exit' the .liquid page. The product theme template is created by the following code.
Navigate to 'Products' on the left menu, then click on the 'Add Product' to create a product (profile page as per our project)
Details of the product need to be entered to create a product page. Make sure you enter Title, which will be displayed as the name of the product. Also select the theme template 'theme_profile', which is the name of the product.theme_profile.liquid which was created in step 6. Click on save.
After the creation of the product, make sure your product name(profile name) is listed in the product listing. You can click on preview eye icon to preview on the Online Store.
-
These steps guide you through setting up and customizing a product page on Shopify using the specified frontend code
-
Below image shows default Profile page being displayed
























