Implement Bestseller section #14
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Shop/Shop-Storefront#14
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @yen.nguyen @Stephan , about this section best seller, it's maybe should call the api to fetch the list best-seller products. The default medusa only have list collections product in homepage and didnt have this section yet. Should i create a UI for this section and mock data first then we do api later?
Using
VtFeaturedProductshandleortitleviaconfig.title.regionandcountryCodefrom context.JSON Config
config/nam.3bear.design.json:96–117:Fields
config.titlehandleortitleand limits rails to that match.src/modules/home/components/vt-featured-products/index.tsx.config.styles.containercontent-container py-12 px-[100px] small:py-24.src/modules/home/components/vt-featured-products/product-rail/index.tsx.config.styles.headercontainer: wrapper classes for title + view-all.title: classes for collection title text.isShowViewAll: show/hide the "View all" link.container: flex justify-between mb-8,title: txt-xlarge,isShowViewAll: true.src/modules/home/components/vt-featured-products/product-rail/index.tsx.config.styles.listgrid grid-cols-2 small:grid-cols-3 gap-x-6 gap-y-24 small:gap-y-36.src/modules/home/components/vt-featured-products/product-rail/index.tsx.config.styles.productCardbadgeText: text for the badge above the thumbnail.card: outer card container classes.badge.container,badge.text: badge styling.thumbnail.className,thumbnail.size: image styling and size (fullby default).subtitle,content,title,price,description: card text/layout classes.reviews.container,reviews.stars,reviews.star,reviews.emptyStar,reviews.text,reviews.rating,reviews.count.button.addToCart,button.moreInfo,button.isShowIcon.src/modules/products/components/vt-product-card/index.tsx.Placement
VtFeaturedProductsunder the relevant page key to control visibility. Example:regionandcountryCodeautomatically. The component reads them from context and fetches collections/products as needed.src/modules/home/components/vt-featured-products/index.tsx.src/vibentec/component-map.tsx.Notes
config.titleto narrow to a single collection rail; omit to render rails for all collections.styles.header.isShowViewAllto hide the link when not needed.reviews.ratingandreviews.countto display review stars and count.styles.productCard.button.References
config/nam.3bear.design.json:96–117.src/modules/home/components/vt-featured-products/index.tsx.src/modules/home/components/vt-featured-products/product-rail/index.tsx.src/modules/products/components/vt-product-card/index.tsx.