This Shopify theme is built using Theme Lab. Shopify Theme Lab is a customizable modular development environment for Shopify theme development. It is built on top of the Shopify CLI and extends it with additional workflow and building capabilities. By default it's bundled with Vue.js and Tailwind CSS.
- Node.js v22.9.0+
- Shopify CLI v3+
- If you haven't already installed the Shopify CLI on your local machine, follow the instructions here.
- Clone the project repo locally.
- Run command
nvm use - Install with command:
npm install - Ensure a
shopify.theme.tomlfile is established - Create your development theme and start your dev server using command:
npm run start - Run command
npm run config:initto copy the Theme Settings from the live theme to your development theme.
- Build and deploy to a new theme with command
npm run deploy:new. - Build and deploy to an existing theme (eg. the branch QA theme) with command
npm run deploy.
You will be building a new product template section that includes schema to output a heading and a product collection slider.
You will be developing on the Myntr dev store. You will generate a shareable preview theme using the commands listed in README.
The store frontend password is myntr.
Create a new section within the sections directory with the title upsell-product-slider.liquid.
Add {% schema $} to this new section that includes 3 settings:
- Heading for the Customizer. See the heading doc here.
- Text setting for a title. This title will be shown above the slider on the DOM.
- Collection setting for products to display in the slider.
There is an existing collection titled "Upsell". You can see the collection here. This collection contains 6 products, and you want to display these products within a slider.
Add the upsell-product-slider.liquid section to the product.json template. Display the section below the existing Product information section.
After the section is created and added to the product template, you can begin with the more complex slider development. View an example of a product slider here. You can choose to show either 1 slide or multiple slides at once. The example provided shows multiple slides on desktop, and only 1 slide on mobile.
Each slide in the slider must show:
- Product featured image
- Product title
- Product price
- Create a branch from
main - Once you have completed development, push all commits to your branch on the remote repo.
- Deploy your code to a Theme Preview using the
npm run deploy:newcommand. - Include your last name on the theme preview and a date.
- Email
kyle@myntr.iowith your branch and theme preview.
- We recommend using the Theme's slider logic, Flickity, Slick, Swiper.js, or any preferred carousel library to build the slider.
- View the Shopify product object docs to see the properties of a product.
The following instructions are not required for a successful test. They are purely for increasing your knowledge of Shopify.
A standard Quick Add in eCommerce is when a user clicks on the Add to cart button and the product is added to the user’s cart without refreshing the page.
Here is the documentation for using Shopify's AJAX API in order to add a product to the cart.
Create a button on each slide that, when clicked, adds the product to the cart.
One of the products has a badge: Sale tag. Try to use that tag in order to display a badge on the product in the slider. You can read more about product tags here. You can see a visual example of the Sale badge by visiting this page: https://myntr-dev.myshopify.com/collections/upsell.
