Commerce/reference/Reference and Deployment
Storefront Component Reference
Match real component names and props to their rendering responsibilities and integration limits.
Storefront component reference
Most components provide styled markup. For a custom interface, use the corresponding hooks. The names below are exported; ProductCard and CartDrawer are not package components.
Table · 2 columns
Component Props and responsibility WpCartProviderRequired children; Store API/provider cart path, with unresolved value/type mismatch. WpProductGalleryRequired numeric productId; gallery UI. WpProductPriceRequired numeric productId; distinct from the no-argument price hook. WpProductVariationSelectorRequired numeric productId; variation UI. WpProductStockStatusRequired numeric productId; availability display. WpRelatedProductsNumeric productId; optional limit, default 4. WpProductReviewsRequired numeric productId; review UI. WpCartLineItemsNo props; uses older cart-row fields. Verify against the chosen state path. WpCartCouponFormNo props; coupon controls. WpCartShippingCalculatorNo props; assumes shippingAddress exists, although standalone state permits it to be absent. WpCheckoutFormRequired children and optional className; state provider, not a submission form. WpShippingSelectorNo props; requires checkout context. WpLoginFormNo props; commerce customer-hook login. WpRegisterFormNo props; commerce customer-hook registration. WpOrderHistoryNo props; customer order display, not a permission check. WpProductFiltersNo props; filter interface. WpWishlistButtonRequired numeric productId. WpWishlistListNo props; wishlist view. WpStoreNoticeNo props; hardcoded mock-store notice, currently not development-gated. WpProductLoopRequired children; category?, limit=10, orderBy=date, order=desc, status=publish. |
|---|
WpProductLoopProps is the exported loop prop type. CheckoutFormContext and WpCartContext are lower-level contexts. Some ready-made cart components currently disagree with the public cart types. Listing an interface here does not establish that all component combinations pass package-wide typing or WordPress acceptance.