ChawkBazar Documentation
WelcomeTech We Have UsedGetting Started
Available Scripts & Command
How Can I use this app
Demo Deploy
Features
Settings
Payment
Shop Transfer
SEO and Analytics
API
Multilingual & Translation
OTP (Mobile Number Verification)Email ConfigurationEmail VerificationSocial LoginSubscribeFAQ PageContactTerms and conditions
Third-party Integrations
Deployment
Back-End Integration
Upgrade
Customizations
FAQSupportChangelogs

Banner

The banner data are coming from a typescript file which is located at,

shop -> src -> data -> static -> banners.ts

BannerJSON.png

You've to update this JSON to build the mega menu.

Data Structure

id -> ID for a banner
title -> Title for a banner
slug -> This is a tag slug

At first, create the tag and add that tag slug on the slug path.

For example, if you want to start a special campaign for some products, just create a tag for that campaign in admin, add that tag to their related products, and on banners.ts, add that tag as a slug.

image -> Image path
mobile -> JSON object for mobile image
desktop -> JSON object for desktop image
url -> Path of the image
width -> Width of the image for next/image optimization
height -> Height of the image for next/image optimization

Data Mapping

homeOneBanner

homeOneBanner.png

homeOneHeroBanner

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

homeTwoHeroBanner

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

homeThreeBanner

[1] homeOneBanner_3.png

[2] banner_4.png

homeThreeMasonryBanner

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

[4] banner_4.png

[5] banner_5.png

bannerGrid

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

promotionBanner

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

promotionBannerTwo

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

bannerDataOne

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

bannerDataTwo

[1] banner_4.png

[2] banner_5.png

[3] banner_6.png

homeThreeProductsBanner

[1] banner_sale_offer.png

[2] banner_sale_offer_reverse.png

homeFourBanner

[1] banner_6.png

[2] banner_5.png

[3] banner_4.png

homeFourGridBanners

[1] homeOneBanner_1.png

[2] homeOneBanner_2.png

[3] homeOneBanner_3.png

homeFiveBanner

[1] homeOneBanner_3.png