Documentation
Feedback
Guides
Storefront Development

Storefront Development
Store FrameworkBuilding pagesCreating a Black Friday page from template
Creating a Black Friday page from template

You may want to create custom landing pages for big events, such as Black Friday and Cyber Monday, to compose your marketing strategy.

With that in mind, we created a landing page template for Black Friday following VTEX recommended practices to help your store maximize profits and conversions.

This guide will show you how to implement the Black Friday landing page template.

You can also base on this template to create a new or refreshed homepage for your store website.

{"base64":"  ","img":{"width":960,"height":540,"type":"gif","mime":"image/gif","wUnits":"px","hUnits":"px","length":18059848,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-io-documentation-creating-a-black-friday-page-from-template-0.gif"}}

Instructions

Step 1 - Downloading the template files

Download the template files available here: black-friday-template-files 2021.zip. Within it, you'll find the following folders:

  • /assets - Sample banners.
  • /store/blocks/custom-template-blackfriday-lp - json blocks.
  • /style/css/custom-template-blackfriday-lp - Custom page styles.

Step 2 - Integrating the template files with the Store Theme

  1. Open your Store Theme project using the code editor of your choice.
  2. Open your project's manifest.json file and declare the "assets": "0.x" builder on the builders list:

_10
"builders": {
_10
+ "assets": "0.x",
_10
"styles": "2.x",
_10
"store": "0.x",
_10
"sitemap": "0.x"
_10
}

  1. Copy and paste the code you previously downloaded into the corresponding folders of your Store Theme project.

If you are running "styles": "1.x", you must copy and paste the CSS code within its corresponding CSS files since this version doesn't allow subfolders for CSS.

  1. Check the code comments within the /store/blocks/custom-template-blackfriday-lp/custom-template-blackfriday-lp.jsonc file and add your pre-existing shelves accordingly.

{"base64":"  ","img":{"width":1252,"height":988,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":180375,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-io-documentation-creating-a-black-friday-page-from-template-1.png"}}

  1. Using the terminal, run vtex link on your project folder.
  2. Go back to your code and customize the template as you wish.

Step 3 - Implementing the page at your store

  1. On your browser, open the Admin and go to Storefront > Pages.
  2. Click on Create new to create a new page.
  3. Edit the page title and URL as you wish. At the Templates section, select the "store.custom#blackfriday-lp" template.

Note that the "store.custom#blackfriday-lp" template is set to be a custom page by default. If you want to apply this template as your main home page, you must first set "store.home#blackfriday-lp" on the /custom-template-blackfriday-lp.jsonc template file.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page