love-ecommerce-template 1.0.0 · SDK 1.2.0

HTML

The document

Write index.html as the content of the page body. The application removes <!DOCTYPE>, <html>, <head>…</head> and <body> and builds the head itself (see render pipeline).

Removed by the sanitizer

Elements: <script> <iframe> <object> <embed> <base> <applet> <frame> <frameset> <meta> <link> <style>. Also every on… event attribute, javascript:/vbscript:/data:text/html URLs, cross-origin form actions, srcdoc, and style attributes with external url(). Put behaviour in script.js and styles in styles.css.

Template directives

Directive names: FOREACH, ENDFOREACH, IF, ELSE, ENDIF, LOOP, ENDLOOP, COUNT, AVG template-engine.js:168

FormMeaning
<!-- IF PATH -->…<!-- ELSE -->…<!-- ENDIF -->Renders the first branch when PATH is truthy (arrays: non-empty). Comparisons: ==, ===, !=, !==, >, >=, <, <= against a data path, number, true/false/null or quoted string.
<!-- FOREACH LIST -->…<!-- ENDFOREACH -->Repeats the body for each item of an array; inside, {ITEM.x}, {INDEX} (1-based) and {EVEN_ODD} are available.
<!-- LOOP n -->…<!-- ENDLOOP -->Repeats the body n times; {LOOP_INDEX} and {INDEX_MOD_k} are available.
<!-- COUNT LIST -->, <!-- COUNT LIST WITH prop -->, <!-- COUNT LIST WITH prop == value -->Prints a count.
<!-- AVG LIST prop -->Prints the average of a numeric property (2 decimals).

Blocks must be balanced (IF/ENDIF, FOREACH/ENDFOREACH, LOOP/ENDLOOP). An unbalanced template fails to load ("Template parse error") and the previous version stays active.

Placeholders

FormMeaning
{KEY} or {OBJ.prop}HTML-escaped value. A placeholder whose first part is not a data key is left untouched in the page (so typos stay visible).
{{{KEY}}}Raw value without escaping. Note: the page is sanitized after rendering (scripts, event handlers, etc. are removed).

Available values are listed under Data.

Pages (routes)

The page is a single HTML document. Each storefront route shows the element with id "section-<route>" and class "app-section" and hides the others (class "active" marks the visible one). Elements with data-nav="<route>" or class "nav-link" + data-section="<route>" navigate.

RouteElementHash URLSEO URL
home#section-home#home/
products#section-products#products/products
product-detail#section-product-detail#product-detail/product/:id
featured#section-featured#featured/featured
wishlist#section-wishlist#wishlist/wishlist
cart#section-cart#cart/cart
checkout#section-checkout#checkout/checkout
profile#section-profile#profile/profile
terms#section-terms#terms/terms
refund-policy#section-refund-policy#refund-policy/refund-policy
privacy-policy#section-privacy-policy#privacy-policy/privacy-policy

Engine hooks

The storefront engine (/assets/storefront/engine.js) finds its elements by id, class and data attribute. These are the hooks it uses (201 in total). "Used by" counts the installed templates that contain the hook. Hooks marked generated are created by the engine at runtime — style them, don't write them.

Pages and navigation

The page is a single HTML document. Each storefront route shows the element with id "section-<route>" and class "app-section" and hides the others (class "active" marks the visible one). Elements with data-nav="<route>" or class "nav-link" + data-section="<route>" navigate.

SelectorDescriptionUsed by
.app-sectionEvery route container. Only the active one should be visible (your CSS: .app-section{display:none} .app-section.active{display:block}).15/15
.main-navNavigation container whose .nav-link items are de-activated on route change.14/15
.nav-linkNavigation link; gets class "active" for the current route when it has data-section.15/15
.nav-profile-itemShown only when a customer is signed in.15/15
#mainNavMain navigation. Gets class "open" when #mobileMenuBtn is pressed.14/15
#mobileMenuBtnMenu toggle button (aria-expanded is kept in sync; body gets class "sf-nav-open").15/15
#mobileNavOptional separate mobile navigation (takes precedence over #mainNav for the menu button).1/15
#section-cartCart (route "cart").15/15
#section-checkoutCheckout (route "checkout").15/15
#section-featuredFeatured products (route "featured").15/15
#section-homeHome page (route "home"). Also the fallback for unknown routes.15/15
#section-privacy-policyPrivacy policy (route "privacy-policy").15/15
#section-product-detailSingle product (route "product-detail").15/15
#section-productsProduct list with filters (route "products").15/15
#section-profileAccount pages (route "profile"; shows the login modal when signed out).15/15
#section-refund-policyRefund policy (route "refund-policy").15/15
#section-termsTerms page (route "terms").15/15
#section-wishlistSaved items (route "wishlist").15/15

Header counters, account and search

Live counters, the account menu and product search with suggestions.

SelectorDescriptionUsed by
#cartCountNumber of items in the cart (class "sf-empty-count" when zero).15/15
#searchCloseCloses the search overlay.1/15
#searchContainerSearch wrapper toggled with class "open"/"active" by #searchToggleBtn.9/15
#searchInputSearch box. Typing shows suggestions; Enter searches the products page.15/15
#searchOverlayFull-screen search overlay (used instead of #searchPanel when present).1/15
#searchPanelOptional dropdown panel toggled together with #searchContainer.7/15
#searchSuggestionsSuggestion list container (class "active" when open).15/15
#searchToggleAlternative id for the search toggle button.1/15
#searchToggleBtnOpens/closes the search panel.7/15
#userMenuReplaced with "Log in / Register" buttons or the signed-in customer's name, account and logout buttons.15/15
#wishlistCountNumber of saved items.15/15

Store selection

When several stores are active the shopper must choose one before products are shown. The engine builds the store chooser itself; a template only decides where it goes and which blocks wait for a store.

SelectorDescriptionUsed by
[data-sf-store-dependent]Hidden until a store is selected (use it on anything that only makes sense for a store).9/15
[data-sf-store-gate]Where the full-width store chooser is inserted. Without it the chooser goes after the hero (#heroSlider/.hero/[data-sf-hero]) or at the top of #section-home.8/15
[data-sf-store-pill]Where the "Shopping at … / Change" button goes. Without it, it is prepended to .header-actions (or similar).8/15
#sfStoreGate generatedGenerated by the engine — do not add it yourself.0/15
#sfStoreModal generatedGenerated by the engine — do not add it yourself.0/15
#sfStorePill generatedGenerated by the engine — do not add it yourself.0/15

Home page blocks

Blocks filled with the selected store's data. Each hides itself when there is nothing to show.

SelectorDescriptionUsed by
.announcement-barAlternative announcement bar marker.2/15
.footer-newsletterNewsletter block in the footer.1/15
.hero-slideOne slide inside #heroSlider.15/15
.home-featuredWrapper of #homeFeaturedGrid; hidden until a store is chosen and when empty.14/15
.home-productsWrapper of #homeProductsGrid.14/15
.newsletter-sectionNewsletter block (shown when content.newsletter is true). A form inside with an email input subscribes.8/15
.promo-bannersPromotion slots (.promo-banner children). Filled from content.promotions or the store's categories.6/15
.testimonial-sectionTestimonials wrapper (hidden when there are none).6/15
.two-col-bannersTwo promotion slots (.two-col-banner children).3/15
.usp-stripAlternative marker for service highlights.1/15
[data-sf-announcement]Announcement bar filled from content.announcement (hidden when empty).9/15
[data-sf-category-chips]Category links ("chips"). Add data-sf-chip-images for thumbnails; wrap in [data-sf-chips-wrap] to hide the wrapper when empty.2/15
[data-sf-chip-images]Part of [data-sf-category-chips] (home page blocks).2/15
[data-sf-chips-wrap]Part of [data-sf-category-chips] (home page blocks).2/15
[data-sf-hero]Marks a hero element (used to place the store chooser after it).0/15
[data-sf-newsletter]Newsletter form marker.8/15
[data-sf-promo]One promotion slot.0/15
[data-sf-promos]Generic promotion container ([data-sf-promo] children).0/15
[data-sf-section]Part of [data-sf-testimonials] (home page blocks).9/15
[data-sf-stats]Live numbers for the store (products, categories, brands, open now).3/15
[data-sf-testimonials]Testimonial track (inside .testimonial-section / [data-sf-section="testimonials"]). Only content.testimonials is shown.6/15
[data-sf-ticker]Scrolling strip of category names.2/15
[data-sf-usps-class]Part of [data-sf-usps] (home page blocks).8/15
[data-sf-usps-list]Part of [data-sf-usps] (home page blocks).2/15
[data-sf-usps-max]Part of [data-sf-usps] (home page blocks).5/15
[data-sf-usps]Service highlights. data-sf-usps="feature" renders .feature-card items; data-sf-usps-class sets the item class; data-sf-usps-max the count; [data-sf-usps-list] the inner target.10/15
#heroDotsDot buttons generated for each slide.15/15
#heroPaymentLineText replaced with the store's payment methods.3/15
#heroSliderSlider. Children .hero-slide (first one active), buttons [data-action="hero-prev"/"hero-next"], dots in #heroDots. content.heroSlides in template.json replaces the slides.15/15
#homeAnimalsGridSecondary category showcase (icon cards).1/15
#homeAnimalsSectionWrapper of #homeAnimalsGrid.1/15
#homeBrandsGridBrand tiles (shown when the store has 2+ brands).13/15
#homeBrandsSectionWrapper of #homeBrandsGrid.13/15
#homeCategoriesGridCategory tiles.14/15
#homeCategoriesSectionWrapper of #homeCategoriesGrid.14/15
#homeFeaturedGridFeatured product cards.15/15
#homeProductsGridNewest product cards.15/15
#homeRecentlyViewedRecently viewed products (from this browser, per store). Put a .products-grid inside.9/15
#megaBrandsListBrand links inside a mega menu.1/15
#megaCategoriesListCategory links inside a mega menu.1/15
#testimonialDotsTestimonial dots.6/15

Products page

Server-side filtering, sorting and pagination of the selected store's catalogue.

SelectorDescriptionUsed by
.filter-sidebarAlternative filter drawer marker.1/15
#applyFiltersBtnApplies filters (filters also apply instantly unless StorefrontTheme.instantFilters is false).15/15
#brandSelect<select> of brands.15/15
#categorySelect<select> of categories (first option value "all").15/15
#clearFiltersBtnClears filters.15/15
#featuredGridFeatured products page grid.15/15
#featuredStoreRequiredMessage area on the featured page when no store is selected.10/15
#filterToggleMobileOpens the filter panel on small screens.9/15
#paginationPage buttons.15/15
#priceRange<input type="range"> maximum price.15/15
#priceRangeLabelShows the chosen maximum price.15/15
#productDetailContainerFilled with the product page (gallery, price, variants, quantity, add to cart, related products).15/15
#productsFiltersSectionFilter panel (class "mobile-open" when opened on small screens).10/15
#productsGridProduct cards for the current page.15/15
#productsStoreRequiredMessage area shown when no store is selected.10/15
#resultsCountNumber of products shown.15/15
#resultsCounterWrapper of the results count.10/15
#sortSelect<select> with values default, newest, price-asc, price-desc, name-asc, name-desc, rating.15/15
#subcategorySelect<select> of subcategories (enabled after a category is chosen).15/15
#totalCountTotal number of matching products.15/15
#wishlistContainerFilled with saved items.15/15

Cart

The engine renders the whole cart (lines, coupon, totals) into #cartContainer.

SelectorDescriptionUsed by
#cartContainerCart contents.15/15
#stickyCartCountItem count in the sticky bar.1/15
#stickyCartTotalTotal in the sticky bar.1/15
#stickyOrderBarOptional sticky bar with #stickyCartCount and #stickyCartTotal.1/15

Checkout

Five steps (.checkout-step-content[data-step="1".."5"]): delivery details, billing, delivery method, payment, review. The forms and ids below are read and filled by the engine and must keep these ids.

SelectorDescriptionUsed by
.checkout-contentWrapper of the step panels (the order summary is inserted next to it).15/15
.checkout-step-contentOne step panel (class "active" when shown).15/15
.checkout-stepsProgress indicator; children .step[data-step] get classes active/completed/reachable.15/15
[data-action="checkout-goto"]Jump to the step in data-step.15/15
[data-action="checkout-next"]Next step button.15/15
[data-action="checkout-prev"]Previous step button.15/15
[data-step]Part of .checkout-steps (checkout).0/15
#agreeTermsTerms checkbox required before placing the order.15/15
#billingFormStep 2 form with #sameAsShipping and the #differentBilling fields.15/15
#checkoutPersistenceBadge"Your checkout progress has been restored" notice.10/15
#differentBillingPart of #billingForm (checkout).15/15
#discountRowPart of #reviewSubtotal (checkout).15/15
#paymentDetailsContainerPayment instructions for the chosen method.15/15
#paymentMethodsStep 4: payment methods.15/15
#placeOrderBtnPlaces the order.15/15
#reviewBillingPart of #reviewItems (checkout).15/15
#reviewDiscountPart of #reviewSubtotal (checkout).15/15
#reviewItemsStep 5: order lines (with #reviewShipping, #reviewBilling, #reviewPayment).15/15
#reviewPaymentPart of #reviewItems (checkout).15/15
#reviewShippingPart of #reviewItems (checkout).15/15
#reviewShippingCostPart of #reviewSubtotal (checkout).15/15
#reviewSubtotalTotals: #reviewSubtotal #reviewDiscount #reviewShippingCost #reviewTax #reviewTotal (#discountRow, #summaryNote).15/15
#reviewTaxPart of #reviewSubtotal (checkout).15/15
#reviewTotalPart of #reviewSubtotal (checkout).15/15
#sameAsShippingPart of #billingForm (checkout).15/15
#sfCheckoutBlocked generatedGenerated by the engine.0/15
#sfCheckoutSummary generatedGenerated by the engine.0/15
#sfOrderConfirmation generatedGenerated by the engine.0/15
#shipAddress1Part of #shippingForm (checkout).15/15
#shipAddress2Part of #shippingForm (checkout).15/15
#shipCityPart of #shippingForm (checkout).15/15
#shipCountryPart of #shippingForm (checkout).15/15
#shipEmailPart of #shippingForm (checkout).15/15
#shipFullNamePart of #shippingForm (checkout).15/15
#shipPhonePart of #shippingForm (checkout).15/15
#shippingFeeHintPart of #shippingLocationContainer (checkout).15/15
#shippingFormStep 1 form: #shipFullName #shipEmail #shipPhone #shipAddress1 #shipAddress2 #shipCity #shipState #shipPostalCode #shipCountry.15/15
#shippingLocationContainerDelivery area pickers #shippingLocationSelect and #shippingSublocationSelect, and #shippingFeeHint.15/15
#shippingLocationSelectPart of #shippingLocationContainer (checkout).15/15
#shippingMethodsStep 3: delivery options.15/15
#shippingSublocationSelectPart of #shippingLocationContainer (checkout).15/15
#shipPostalCodePart of #shippingForm (checkout).15/15
#shipStatePart of #shippingForm (checkout).15/15
#summaryNotePart of #reviewSubtotal (checkout).15/15

Account, login and registration

Modals (.modal, class "active" when open) and the profile page tabs.

SelectorDescriptionUsed by
.modalAny modal; clicking its backdrop closes it.15/15
.profile-tabProfile tab buttons (data-tab="info|orders|addresses|activity|security").15/15
.profile-tab-contentTab panels with ids profile-tab-<tab>.15/15
[data-action="close-modal"]Closes the modal named in data-modal (or the closest .modal).15/15
[data-action="logout"]Signs out.15/15
[data-action="show-login"]Opens the login modal.15/15
[data-action="show-register"]Opens the register modal.15/15
#addrCountryPart of #addressModal (account, login and registration).15/15
#addressFormPart of #addressModal (account, login and registration).15/15
#addressModalAddress editor (#addressForm with #addrId #addrFullName … #addrCountry).15/15
#addrFullNamePart of #addressModal (account, login and registration).15/15
#addrIdPart of #addressModal (account, login and registration).15/15
#changePasswordFormPassword form (#currentPassword #newPassword #confirmPassword).15/15
#confirmPasswordPart of #changePasswordForm (account, login and registration).15/15
#currentPasswordPart of #changePasswordForm (account, login and registration).15/15
#loginFormPart of #loginModal (account, login and registration).15/15
#loginModalLogin modal containing #loginForm (#loginUsername, #loginPassword).15/15
#loginPasswordPart of #loginModal (account, login and registration).15/15
#loginUsernamePart of #loginModal (account, login and registration).15/15
#newPasswordPart of #changePasswordForm (account, login and registration).15/15
#profileActivityRecent activity.15/15
#profileAddressesSaved addresses.15/15
#profileCurrencyPart of #profileName (account, login and registration).15/15
#profileEmailPart of #profileName (account, login and registration).15/15
#profileNameProfile fields: #profileName #profileUsername #profileEmail #profileCurrency.15/15
#profileOrdersOrder history.15/15
#profileUsernamePart of #profileName (account, login and registration).15/15
#registerCaptchaContainerPart of #registerModal (account, login and registration).15/15
#registerConfirmPasswordPart of #registerModal (account, login and registration).15/15
#registerEmailPart of #registerModal (account, login and registration).15/15
#registerFormPart of #registerModal (account, login and registration).15/15
#registerModalRegister modal containing #registerForm (#registerName #registerUsername #registerEmail #registerPhone #registerPassword #registerConfirmPassword, honeypot #registerWebsite, #registerCaptchaContainer).15/15
#registerNamePart of #registerModal (account, login and registration).15/15
#registerPasswordPart of #registerModal (account, login and registration).15/15
#registerPhonePart of #registerModal (account, login and registration).15/15
#registerUsernamePart of #registerModal (account, login and registration).15/15
#registerWebsitePart of #registerModal (account, login and registration).15/15

Text from template.json "legal", social links from "social", payment method badges from the store.

SelectorDescriptionUsed by
[data-sf-payments]Payment badges marker.0/15
[data-sf-social]Wrapper hidden together with #footerSocialLinks.8/15
#footerPaymentIconsPayment method badges.15/15
#footerSocialLinksSocial links (hidden when none are configured).15/15
#privacyContentPrivacy policy text.15/15
#refundContentRefund policy text.15/15
#termsContentTerms text.15/15

Generated by the engine

Created at runtime. Style them, but do not put them in your HTML.

SelectorDescriptionUsed by
[data-sf-hide-on-error]Images with this attribute are hidden (instead of replaced by a placeholder) when they fail to load.0/15
[data-sf-img] generatedSet on images rendered by the engine.0/15
[data-sf-link] generatedSet by the engine on hero buttons configured in content.heroSlides.0/15
[data-sf-state] generatedSet on sections by the engine: loading / ready / empty / needs-store (style hidden states with it).0/15
#couponInput generatedCoupon field inside the cart.0/15
#pdMainImageWrap generatedProduct page gallery (inside #productDetailContainer).0/15
#pdQty generatedProduct page quantity input (with #pdQtyDown / #pdQtyUp).0/15
#pdQtyDown generatedProduct page quantity button.0/15
#pdQtyUp generatedProduct page quantity button.0/15
#sfRecentWrap generatedRecently viewed block on the product page.0/15
#sfRelated generatedRelated products block on the product page.0/15
#sfToastStack generatedToast notifications.0/15

Elements a feature needs together

Found by comparing the installed templates: when a template has the first element, these are present in every template that has it (the validator warns when some are missing).

FeatureAlso needs
#section-checkout#agreeTerms #billingForm #differentBilling #discountRow #paymentDetailsContainer #paymentMethods #placeOrderBtn #reviewBilling #reviewDiscount #reviewItems #reviewPayment #reviewShipping #reviewShippingCost #reviewSubtotal #reviewTax #reviewTotal #sameAsShipping #shippingFeeHint #shippingForm #shippingLocationContainer #shippingLocationSelect #shippingMethods #shippingSublocationSelect #summaryNote
#section-products#applyFiltersBtn #brandSelect #categorySelect #clearFiltersBtn #pagination #priceRange #priceRangeLabel #productsGrid #resultsCount #sortSelect #subcategorySelect #totalCount
#section-profile#changePasswordForm #confirmPassword #currentPassword #newPassword #profile-tab-activity #profile-tab-addresses #profile-tab-info #profile-tab-orders #profile-tab-security #profileActivity #profileAddresses #profileCurrency #profileEmail #profileName #profileOrders #profileUsername
#section-cart#cartContainer
#section-product-detail#productDetailContainer
#section-wishlist#wishlistContainer
#section-featured#featuredGrid
#loginModal#loginForm #loginPassword #loginUsername
#registerModal#registerCaptchaContainer #registerConfirmPassword #registerForm #registerPassword
#addressModal#addrId #addressForm
#heroSlider#heroDots

Reference markup

Markup for each engine block, copied from an installed template (the Studio's Insert panel offers the same). Adjust classes and text freely; keep the ids, classes and data attributes listed in Engine hooks.

#section-checkout (from prestashop)

<section id="section-checkout" class="app-section" aria-labelledby="checkoutHeading">
    <div class="section-header">
        <div>
            <h2 id="checkoutHeading">Checkout</h2>
            <p class="section-subtitle">Complete your order in a few steps</p>
        </div>
    </div>

    <div class="checkout-persistence-badge" id="checkoutPersistenceBadge" hidden>
        <i class="fas fa-history" aria-hidden="true"></i>
        <span>Your checkout progress has been restored.</span>
        <button type="button" class="checkout-persistence-dismiss" data-action="dismiss-checkout-badge" aria-label="Dismiss">&times;</button>
    </div>

    <div class="checkout-steps" role="list">
        <div class="step active" data-step="1" role="listitem"><span class="step-number">1</span><span class="step-label">Delivery</span></div>
        <div class="step" data-step="2" role="listitem"><span class="step-number">2</span><span class="step-label">Billing</span></div>
        <div class="step" data-step="3" role="listitem"><span class="step-number">3</span><span class="step-label">Delivery Method</span></div>
        <div class="step" data-step="4" role="listitem"><span class="step-number">4</span><span class="step-label">Payment</span></div>
        <div class="step" data-step="5" role="listitem"><span class="step-number">5</span><span class="step-label">Review</span></div>
    </div>

    <div class="checkout-content">
        <div class="checkout-step-content active" data-step="1">
            <h3>Delivery Information</h3>
            <form id="shippingForm" class="checkout-form" autocomplete="on" novalidate>
                <div class="form-row">
                    <div class="form-group"><label for="shipFullName">Full Name *</label><input type="text" id="shipFullName" name="fullName" required></div>
                    <div class="form-group"><label for="shipEmail">Email *</label><input type="email" id="shipEmail" name="email" required></div>
                </div>
                <div class="form-row">
                    <div class="form-group"><label for="shipPhone">Phone *</label><input type="tel" id="shipPhone" name="phone" required></div>
                    <div class="form-group"><label for="shipAddress1">Address Line 1 *</label><input type="text" id="shipAddress1" name="address1" required></div>
                </div>
                <div class="form-group"><label for="shipAddress2">Address Line 2</label><input type="text" id="shipAddress2" name="address2"></div>
                <div class="form-row">
                    <div class="form-group"><label for="shipCity">City *</label><input type="text" id="shipCity" name="city" required></div>
                    <div class="form-group"><label for="shipState">State *</label><input type="text" id="shipState" name="state" required></div>
                </div>
                <div class="form-row">
                    <div class="form-group"><label for="shipPostalCode">Postal Code *</label><input type="text" id="shipPostalCode" name="postalCode" required></div>
                    <div class="form-group">
                        <label for="shipCountry">Country *</label>
                        <select id="shipCountry" name="country" required>
                            <option value="">Select Country</option>
                            <option value="NG">Nigeria</option>
                            <option value="US">United States</option>
                            <option value="CA">Canada</option>
                            <option value="GB">United Kingdom</option>
                            <option value="AU">Australia</option>
                            <option value="DE">Germany</option>
                            <option value="FR">France</option>
                            <option value="JP">Japan</option>
                        </select>
                    </div>
                </div>
                <div class="form-actions">
                    <button type="button" class="btn-primary" data-action="checkout-next">
                        Continue to Billing <i class="fas fa-arrow-right" aria-hidden="true"></i>
                    </button>
                </div>
            </form>
        </div>

        <div class="checkout-step-content" data-step="2">
            <h3>Billing Information</h3>
            <form id="billingForm" class="checkout-form" novalidate>
                <div class="form-group checkbox-group">
                    <label><input type="checkbox" id="sameAsShipping" checked data-action="toggle-billing"> Same as delivery address</label>
                </div>
                <div id="differentBilling" style="display:none;">
                    <div class="form-row">
                        <div class="form-group"><label for="billFullName">Full Name *</label><input type="text" id="billFullName" name="fullName"></div>
                        <div class="form-group"><label for="billCompany">Company</label><input type="text" id="billCompany" name="company"></div>
                    </div>
                    <div class="form-group"><label for="billAddress">Address *</label><input type="text" id="billAddress" name="address1"></div>
                    <div class="form-row">
                        <div class="form-group"><label for="billCity">City *</label><input type="text" id="billCity" name="city"></div>
                        <div class="form-group"><label for="billState">State *</label><input type="text" id="billState" name="state"></div>
                    </div>
                    <div class="form-row">
                        <div class="form-group"><label for="billPostalCode">Postal Code *</label><input type="text" id="billPostalCode" name="postalCode"></div>
                        <div class="form-group">
                            <label for="billCountry">Country *</label>
                            <select id="billCountry" name="country">
                                <option value="">Select Country</option>
                                <option value="NG">Nigeria</option>
                                <option value="US">United States</option>
                                <option value="CA">Canada</option>
                                <option value="GB">United Kingdom</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <button type="button" class="btn-outline" data-action="checkout-prev"><i class="fas fa-arrow-left" aria-hidden="true"></i> Back</button>
                    <button type="button" class="btn-primary" data-action="checkout-next">Continue <i class="fas fa-arrow-right" aria-hidden="true"></i></button>
                </div>
            </form>
        </div>

        <div class="checkout-step-content" data-step="3">
            <h3>Delivery Method</h3>
            <div class="shipping-methods" id="shippingMethods" aria-live="polite">
                <div class="loading-state"><div class="spinner"></div><p>Loading delivery options…</p></div>
            </div>

            <div id="shippingLocationContainer" class="shipping-location-container" style="display:none;">
                <label for="shippingLocationSelect" class="shipping-location-label">
                    <i class="fas fa-map-marker-alt" aria-hidden="true"></i> Delivery Location (State / City) *
                </label>
                <select id="shippingLocationSelect" class="sort-select shipping-location-select">
                    <option value="">Select a state / city…</option>
                </select>
                <label for="shippingSublocationSelect" class="shipping-location-label">
                    <i class="fas fa-location-arrow" aria-hidden="true"></i> Area / Locality *
                </label>
                <select id="shippingSublocationSelect" class="sort-select shipping-location-select" disabled>
                    <option value="">Select a state / city first</option>
                </select>
                <p class="shipping-fee-hint" id="shippingFeeHint"></p>
            </div>

            <div class="form-actions">
                <button type="button" class="btn-outline" data-action="checkout-prev"><i class="fas fa-arrow-left" aria-hidden="true"></i> Back</button>
                <button type="button" class="btn-primary" data-action="checkout-next">Continue <i class="fas fa-arrow-right" aria-hidden="true"></i></button>
            </div>
        </div>

        <div class="checkout-step-content" data-step="4">
            <h3>Payment Method</h3>
            <div class="payment-methods" id="paymentMethods" aria-live="polite">
                <div class="loading-state"><div class="spinner"></div><p>Loading payment options…</p></div>
            </div>
            <div id="paymentDetailsContainer" class="payment-details-container"></div>

            <div class="form-actions">
                <button type="button" class="btn-outline" data-action="checkout-prev"><i class="fas fa-arrow-left" aria-hidden="true"></i> Back</button>
                <button type="button" class="btn-primary" data-action="checkout-next">Review Order <i class="fas fa-arrow-right" aria-hidden="true"></i></button>
            </div>
        </div>

        <div class="checkout-step-content" data-step="5">
            <h3>Review Your Order</h3>
            <div class="review-section"><h4><i class="fas fa-box" aria-hidden="true"></i> Items</h4><div id="reviewItems"></div></div>
            <div class="review-section"><h4><i class="fas fa-truck" aria-hidden="true"></i> Delivery</h4><div id="reviewShipping"></div><button class="btn-link" type="button" data-action="checkout-goto" data-step="1">Edit</button></div>
            <div class="review-section"><h4><i class="fas fa-file-invoice" aria-hidden="true"></i> Billing</h4><div id="reviewBilling"></div><button class="btn-link" type="button" data-action="checkout-goto" data-step="2">Edit</button></div>
            <div class="review-section"><h4><i class="fas fa-credit-card" aria-hidden="true"></i> Payment</h4><div id="reviewPayment"></div><button class="btn-link" type="button" data-action="checkout-goto" data-step="4">Edit</button></div>

            <div class="order-summary" id="orderSummary">
                <h4><i class="fas fa-receipt" aria-hidden="true"></i> Order Summary</h4>
                <div class="summary-row"><span>Subtotal:</span><span id="reviewSubtotal">—</span></div>
                <div class="summary-row discount-row" id="discountRow" style="display:none;"><span>Discount:</span><span id="reviewDiscount">—</span></div>
                <div id="discountBreakdownContainer"></div>
                <div class="summary-row"><span>Delivery:</span><span id="reviewShippingCost">—</span></div>
                <div class="summary-row"><span>Tax:</span><span id="reviewTax">—</span></div>
                <div class="summary-row total-row"><span>Total:</span><span id="reviewTotal">—</span></div>
                <div class="summary-note" id="summaryNote"></div>
            </div>

            <div class="form-group checkbox-group">
                <label><input type="checkbox" id="agreeTerms" required> I agree to the <a href="#terms" data-nav="terms">Terms &amp; Conditions</a> *</label>
            </div>

            <div class="form-actions">
                <button type="button" class="btn-outline" data-action="checkout-prev"><i class="fas fa-arrow-left" aria-hidden="true"></i> Back</button>
                <button type="button" class="btn-primary btn-large" id="placeOrderBtn" data-action="place-order">
                    <i class="fas fa-check-circle" aria-hidden="true"></i> Place Order
                </button>
            </div>
        </div>
    </div>
</section>

#section-products (from prestashop)

<section id="section-products" class="app-section" aria-labelledby="productsHeading">
    <div class="section-header">
        <div>
            <h2 id="productsHeading">Our Produce</h2>
            <p class="section-subtitle">Browse our full harvest collection</p>
        </div>
    </div>

    <div class="filters-section" id="productsFiltersSection">
        <div class="filters-container">
            <div class="filter-group">
                <label for="categorySelect">Category:</label>
                <select id="categorySelect" class="sort-select">
                    <option value="all">All Categories</option>
                </select>
            </div>
            <div class="filter-group">
                <label for="subcategorySelect">Subcategory:</label>
                <select id="subcategorySelect" class="sort-select" disabled>
                    <option value="">All Subcategories</option>
                </select>
            </div>
            <div class="filter-group">
                <label for="brandSelect">Farm:</label>
                <select id="brandSelect" class="sort-select">
                    <option value="">All Farms</option>
                </select>
            </div>
            <div class="filter-group">
                <label for="priceRange">Max Price: <span id="priceRangeLabel">—</span></label>
                <input type="range" id="priceRange" min="0" max="500" value="500" class="price-range" aria-label="Maximum price">
            </div>
            <div class="filter-group">
                <label for="sortSelect">Sort By:</label>
                <select id="sortSelect" class="sort-select">
                    <option value="default">Default</option>
                    <option value="newest">Newest</option>
                    <option value="price-asc">Price: Low to High</option>
                    <option value="price-desc">Price: High to Low</option>
                    <option value="name-asc">Name: A-Z</option>
                    <option value="name-desc">Name: Z-A</option>
                    <option value="rating">Top Rated</option>
                </select>
            </div>
            <div class="filter-group filter-clear-group">
                <button class="btn-primary btn-small" type="button" id="applyFiltersBtn">
                    <i class="fas fa-filter" aria-hidden="true"></i> Apply Filters
                </button>
                <button class="btn-outline btn-small" type="button" id="clearFiltersBtn">
                    <i class="fas fa-times" aria-hidden="true"></i> Clear
                </button>
            </div>
        </div>
        <div class="results-counter" id="resultsCounter">
            Showing <span id="resultsCount">0</span> of <span id="totalCount">0</span> products
        </div>
    </div>

    <div id="productsStoreRequired" class="store-required-state" hidden></div>
    <div class="products-grid" id="productsGrid" aria-live="polite"></div>
    <nav class="loop-pagination" id="pagination" aria-label="Product pagination"></nav>
</section>

#section-profile (from prestashop)

<section id="section-profile" class="app-section" aria-labelledby="profileHeading">
    <div class="section-header">
        <div>
            <h2 id="profileHeading">My Profile</h2>
            <p class="section-subtitle">Manage your account and view your activity</p>
        </div>
    </div>

    <div class="profile-tabs" role="tablist">
        <button class="profile-tab active" type="button" data-tab="info" role="tab" aria-selected="true"><i class="fas fa-user" aria-hidden="true"></i> Personal Info</button>
        <button class="profile-tab" type="button" data-tab="orders" role="tab" aria-selected="false"><i class="fas fa-box" aria-hidden="true"></i> Orders</button>
        <button class="profile-tab" type="button" data-tab="addresses" role="tab" aria-selected="false"><i class="fas fa-map-marker-alt" aria-hidden="true"></i> Addresses</button>
        <button class="profile-tab" type="button" data-tab="activity" role="tab" aria-selected="false"><i class="fas fa-history" aria-hidden="true"></i> Recent Activity</button>
        <button class="profile-tab" type="button" data-tab="security" role="tab" aria-selected="false"><i class="fas fa-lock" aria-hidden="true"></i> Security</button>
    </div>

    <div class="profile-tab-content active" id="profile-tab-info" role="tabpanel">
        <div class="profile-info-grid">
            <div class="profile-info-item"><span>Name</span><strong id="profileName">—</strong></div>
            <div class="profile-info-item"><span>Username</span><strong id="profileUsername">—</strong></div>
            <div class="profile-info-item"><span>Email</span><strong id="profileEmail">—</strong></div>
            <div class="profile-info-item"><span>Currency</span><strong id="profileCurrency">—</strong></div>
        </div>
        <div class="form-actions">
            <button class="btn-outline" type="button" data-action="logout"><i class="fas fa-sign-out-alt" aria-hidden="true"></i> Logout</button>
        </div>
    </div>

    <div class="profile-tab-content" id="profile-tab-orders" role="tabpanel">
        <div id="profileOrders"><div class="loading-state"><div class="spinner"></div><p>Loading orders…</p></div></div>
    </div>

    <div class="profile-tab-content" id="profile-tab-addresses" role="tabpanel">
        <div id="profileAddresses"><div class="loading-state"><div class="spinner"></div><p>Loading addresses…</p></div></div>
    </div>

    <div class="profile-tab-content" id="profile-tab-activity" role="tabpanel">
        <div id="profileActivity"><div class="loading-state"><div class="spinner"></div><p>Loading activity…</p></div></div>
    </div>

    <div class="profile-tab-content" id="profile-tab-security" role="tabpanel">
        <div class="security-panel">
            <h3>Change Password</h3>
            <p class="text-muted">Use a strong password with at least 6 characters.</p>
            <form id="changePasswordForm" class="checkout-form" novalidate>
                <div class="form-group">
                    <label for="currentPassword">Current Password *</label>
                    <input type="password" id="currentPassword" required autocomplete="current-password">
                </div>
                <div class="form-group">
                    <label for="newPassword">New Password *</label>
                    <input type="password" id="newPassword" required autocomplete="new-password" minlength="6">
                </div>
                <div class="form-group">
                    <label for="confirmPassword">Confirm New Password *</label>
                    <input type="password" id="confirmPassword" required autocomplete="new-password" minlength="6">
                </div>
                <div class="form-actions">
                    <button type="submit" class="btn-primary">
                        <i class="fas fa-lock" aria-hidden="true"></i> Update Password
                    </button>
                </div>
            </form>
        </div>
    </div>
</section>

#section-cart (from prestashop)

<section id="section-cart" class="app-section" aria-labelledby="cartHeading">
    <div class="section-header">
        <div>
            <h2 id="cartHeading">Your Basket</h2>
            <p class="section-subtitle">Review the items in your basket</p>
        </div>
    </div>
    <div id="cartContainer" aria-live="polite"></div>
</section>

#section-product-detail (from prestashop)

<section id="section-product-detail" class="app-section" aria-labelledby="productDetailHeading">
    <div class="section-header">
        <div>
            <button class="btn-outline btn-small" type="button" data-nav="products">
                <i class="fas fa-arrow-left" aria-hidden="true"></i> Back to Produce
            </button>
        </div>
    </div>
    <div id="productDetailContainer" aria-live="polite">
        <div class="loading-state"><div class="spinner"></div><p>Loading product…</p></div>
    </div>
</section>

#section-wishlist (from prestashop)

<section id="section-wishlist" class="app-section" aria-labelledby="wishlistHeading">
    <div class="section-header">
        <div>
            <h2 id="wishlistHeading">My Saved Items</h2>
            <p class="section-subtitle">Produce you've saved for later</p>
        </div>
    </div>
    <div id="wishlistContainer" aria-live="polite"></div>
</section>
<section id="section-featured" class="app-section" aria-labelledby="featuredHeading">
    <div class="section-header">
        <div>
            <h2 id="featuredHeading">Featured Produce</h2>
            <p class="section-subtitle">Hand-picked favourites just for you</p>
        </div>
    </div>
    <div id="featuredStoreRequired" class="store-required-state" hidden></div>
    <div class="products-grid" id="featuredGrid" aria-live="polite"></div>
</section>

#loginModal (from prestashop)

<div id="loginModal" class="modal" role="dialog" aria-modal="true" aria-labelledby="loginModalTitle">
    <div class="modal-content modal-small">
        <button class="modal-close" type="button" data-action="close-modal" data-modal="loginModal" aria-label="Close">&times;</button>
        <h2 id="loginModalTitle">Welcome Back</h2>
        <form id="loginForm" novalidate>
            <div class="form-notification" role="alert" aria-live="polite"></div>
            <div class="form-group">
                <label for="loginUsername">Email</label>
                <input type="text" id="loginUsername" required autocomplete="username">
            </div>
            <div class="form-group">
                <label for="loginPassword">Password</label>
                <input type="password" id="loginPassword" required autocomplete="current-password">
            </div>
            <button type="submit" class="btn-primary btn-block">
                <i class="fas fa-sign-in-alt" aria-hidden="true"></i> Login
            </button>
        </form>
        <p class="modal-footer-text">
            Don't have an account?
            <a href="#" data-action="show-register">Create Account</a>
        </p>
    </div>
</div>

#registerModal (from prestashop)

<div id="registerModal" class="modal" role="dialog" aria-modal="true" aria-labelledby="registerModalTitle">
    <div class="modal-content modal-small">
        <button class="modal-close" type="button" data-action="close-modal" data-modal="registerModal" aria-label="Close">&times;</button>
        <h2 id="registerModalTitle">Create Account</h2>
        <form id="registerForm" novalidate>
            <div class="form-notification" role="alert" aria-live="polite"></div>
            <div class="form-group"><label for="registerName">Full Name *</label><input type="text" id="registerName" required autocomplete="name"></div>
            <div class="form-group"><label for="registerUsername">Username *</label><input type="text" id="registerUsername" required autocomplete="username"></div>
            <div class="form-group"><label for="registerEmail">Email *</label><input type="email" id="registerEmail" required autocomplete="email"></div>
            <div class="form-group"><label for="registerPhone">Phone Number *</label><input type="tel" id="registerPhone" required autocomplete="tel" placeholder="e.g. +234 801 234 5678"></div>
            <div class="form-group"><label for="registerPassword">Password *</label><input type="password" id="registerPassword" required autocomplete="new-password" minlength="6"></div>
            <div class="form-group"><label for="registerConfirmPassword">Confirm Password *</label><input type="password" id="registerConfirmPassword" required autocomplete="new-password" minlength="6"></div>

            <div class="honeypot-field" aria-hidden="true">
                <label for="registerWebsite">Website (leave blank)</label>
                <input type="text" id="registerWebsite" name="website" tabindex="-1" autocomplete="off">
            </div>

            <div id="registerCaptchaContainer" class="captcha-container"></div>

            <button type="submit" class="btn-primary btn-block">
                <i class="fas fa-user-plus" aria-hidden="true"></i> Register
            </button>
        </form>
        <p class="modal-footer-text">
            Already have an account?
            <a href="#" data-action="show-login">Login</a>
        </p>
    </div>
</div>

#addressModal (from prestashop)

<div id="addressModal" class="modal" role="dialog" aria-modal="true" aria-labelledby="addressModalTitle">
    <div class="modal-content modal-medium">
        <button class="modal-close" type="button" data-action="close-modal" data-modal="addressModal" aria-label="Close">&times;</button>
        <h2 id="addressModalTitle">Edit Address</h2>
        <form id="addressForm" class="checkout-form" novalidate>
            <input type="hidden" id="addrId">
            <div class="form-row">
                <div class="form-group"><label for="addrFullName">Full Name *</label><input type="text" id="addrFullName" required></div>
                <div class="form-group"><label for="addrEmail">Email</label><input type="email" id="addrEmail"></div>
            </div>
            <div class="form-row">
                <div class="form-group"><label for="addrPhone">Phone</label><input type="tel" id="addrPhone"></div>
                <div class="form-group"><label for="addrAddress1">Address Line 1 *</label><input type="text" id="addrAddress1" required></div>
            </div>
            <div class="form-group"><label for="addrAddress2">Address Line 2</label><input type="text" id="addrAddress2"></div>
            <div class="form-row">
                <div class="form-group"><label for="addrCity">City *</label><input type="text" id="addrCity" required></div>
                <div class="form-group"><label for="addrState">State *</label><input type="text" id="addrState" required></div>
            </div>
            <div class="form-row">
                <div class="form-group"><label for="addrPostalCode">Postal Code</label><input type="text" id="addrPostalCode"></div>
                <div class="form-group"><label for="addrCountry">Country</label><input type="text" id="addrCountry"></div>
            </div>
            <div class="form-actions">
                <button type="button" class="btn-outline" data-action="close-modal" data-modal="addressModal">Cancel</button>
                <button type="submit" class="btn-primary"><i class="fas fa-save" aria-hidden="true"></i> Save Address</button>
            </div>
        </form>
    </div>
</div>

#heroSlider (from prestashop)

<div class="hero-slider" id="heroSlider" aria-roledescription="carousel" aria-label="Featured banner">
        <div class="hero-slides">
            <div class="hero-slide active" data-slide="0">
                <div class="hero-content">
                    <p class="hero-eyebrow">It's about your harvest</p>
                    <h2 id="homeHeading">Farm-Fresh Produce,<br>Delivered To Your Door.</h2>
                    <p class="hero-sub">Hand-picked from local growers and delivered with care.</p>
                    <div class="hero-actions">
                        <button class="btn-primary btn-large" type="button" data-nav="products">Shop Now</button>
                    </div>
                </div>
            </div>
            <div class="hero-slide slide-alt-1" data-slide="1">
                <div class="hero-content">
                    <p class="hero-eyebrow">Make us a part of your kitchen</p>
                    <h2>Harvest Season<br>Is Here.</h2>
                    <p class="hero-sub">Explore this week's freshest arrivals from our partner farms.</p>
                    <div class="hero-actions">
                        <button class="btn-primary btn-large" type="button" data-nav="products">Browse Harvest</button>
                    </div>
                </div>
            </div>
            <div class="hero-slide slide-alt-2" data-slide="2">
                <div class="hero-content">
                    <p class="hero-eyebrow">Fast &amp; secure checkout</p>
                    <h2>Multiple Payment Options,<br>Safe Delivery.</h2>
                    <p class="hero-sub" id="heroPaymentLine">Shop with confidence — secure payments at checkout.</p>
                    <div class="hero-actions">
                        <button class="btn-primary btn-large" type="button" data-nav="featured">Shop Featured</button>
                    </div>
                </div>
            </div>
        </div>
        <button class="hero-nav hero-nav-prev" type="button" aria-label="Previous slide" data-action="hero-prev">
            <i class="fas fa-chevron-left" aria-hidden="true"></i>
        </button>
        <button class="hero-nav hero-nav-next" type="button" aria-label="Next slide" data-action="hero-next">
            <i class="fas fa-chevron-right" aria-hidden="true"></i>
        </button>
        <div class="hero-dots" id="heroDots" role="tablist" aria-label="Slides"></div>
    </div>

#homeFeaturedGrid (from prestashop)

<div id="homeFeaturedGrid" class="products-grid" aria-live="polite"></div>

#homeProductsGrid (from prestashop)

<div id="homeProductsGrid" class="products-grid" aria-live="polite"></div>

#homeCategoriesSection (from prestashop)

<div class="home-categories" id="homeCategoriesSection">
        <div class="section-header centered">
            <h2>Shop By Category</h2>
        </div>
        <div id="homeCategoriesGrid" class="categories-grid" aria-live="polite"></div>
    </div>

#homeBrandsSection (from prestashop)

<div class="home-brands" id="homeBrandsSection">
        <div class="section-header centered">
            <h2>Shop By Farm</h2>
        </div>
        <div id="homeBrandsGrid" class="brands-grid" aria-live="polite"></div>
    </div>

#homeRecentlyViewed (from prestashop)

<div class="home-recent sf-hidden" id="homeRecentlyViewed">
        <div class="section-header centered"><h2>Recently Viewed</h2></div>
        <div class="products-grid" aria-live="polite"></div>
    </div>
<div class="social-links" id="footerSocialLinks"></div>

#footerPaymentIcons (from prestashop)

<div class="payment-icons" id="footerPaymentIcons"></div>

#userMenu (from prestashop)

<div class="user-menu" id="userMenu">
                    <button class="icon-btn login-btn" type="button" data-action="show-login" title="Login" aria-label="Login">
                        <i class="fas fa-sign-in-alt" aria-hidden="true"></i> <span>Login</span>
                    </button>
                    <button class="icon-btn register-btn" type="button" data-action="show-register" title="Register" aria-label="Register">
                        <i class="fas fa-user-plus" aria-hidden="true"></i> <span>Register</span>
                    </button>
                </div>

#searchContainer (from prestashop)

<div class="search-container" id="searchContainer">
                    <button class="icon-btn search-toggle-btn" type="button" id="searchToggleBtn" aria-label="Search" aria-expanded="false">
                        <i class="fas fa-search" aria-hidden="true"></i>
                    </button>
                    <div class="search-panel" id="searchPanel">
                        <label class="visually-hidden" for="searchInput">Search produce</label>
                        <input type="search" id="searchInput" placeholder="Search product here…" class="search-input" autocomplete="off">
                        <button class="search-submit-btn" type="button" aria-label="Search" data-action="search">
                            <i class="fas fa-search" aria-hidden="true"></i>
                        </button>
                        <div id="searchSuggestions" class="search-suggestions" role="listbox" aria-live="polite"></div>
                    </div>
                </div>

[data-sf-usps] (from prestashop)

<div class="usp-strip" data-sf-usps aria-label="Why shop with us"></div>

[data-sf-category-chips] (from boutique)

<div class="k-chips-row sf-hidden" data-sf-chips-wrap>
        <div class="k-container"><nav data-sf-category-chips data-sf-chip-images aria-label="Categories"></nav></div>
    </div>

[data-sf-stats] (from corporate)

<div data-sf-stats class="sf-hidden"></div>

[data-sf-ticker] (from boutique)

<div class="k-ticker k-ticker--top sf-hidden" data-sf-ticker></div>

[data-sf-store-gate] (from organic)

<div class="k-gate-slot" data-sf-store-gate></div>

[data-sf-store-pill] (from organic)

<div class="k-pill-slot" data-sf-store-pill></div>

[data-sf-announcement] (from prestashop)

<div class="announcement-bar sf-hidden" data-sf-announcement>
    <div class="container">
        <p class="announcement-text"></p>
    </div>
</div>
Generated 2026-10-01 11:59 UTC from the application source (contract 7075c14c24bbaf06).