=== FluentCart Divi Modules ===
Contributors: wpmanageninja
Tags: fluentcart, divi, ecommerce, cart, shop
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: fluent-cart
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
FluentCart Divi Modules adds native FluentCart modules to the Divi 5 Visual Builder so you can design cart and shop layouts visually while FluentCart handles the commerce logic.

== Description ==
FluentCart Divi Modules is the add-on you need to design FluentCart cart and shop experiences directly inside the Divi 5 Visual Builder without relying on shortcodes or custom code.
If you are using FluentCart with the Divi theme and want drag-and-drop control over add-to-cart buttons, buy-now actions, mini cart placement, or a full product catalog grid, this add-on provides purpose-built Divi 5 modules that render FluentCart's native output.
All modules load FluentCart's required CSS and JavaScript assets automatically and remain fully compatible with FluentCart products, variations, subscriptions, coupons, taxes, and payment flows.
This add-on focuses on layout and styling control in Divi while FluentCart continues to handle cart state, pricing rules, and checkout processing.

== Modules ==
18 native Divi 5 modules covering the whole store.

Cart and purchase
- Add to Cart — FluentCart's native add-to-cart button with full variation awareness.
- Buy Now — one-click purchase with an optional modal checkout.
- Mini Cart — cart trigger and drawer with live item counts.
- Checkout Page — the full FluentCart checkout inside a Divi layout.
- Cart and Receipt — the cart page and post-purchase thank-you page (used by the ready-made templates).

Catalog and product
- Products — full catalog grid with per-page, columns, sort, grid/list view, filter sidebar, and category/brand pickers.
- Product Card, Product Info, Product Carousel, Media Carousel, Related Products — single-product and product-collection displays with real front-end previews in the builder canvas.
- Product Categories List, Product Search, Archive Header — catalog navigation and category/brand archive surfaces.

Store and account
- Store Logo, Customer Dashboard (Design-tab color and typography panels), Customer Dashboard Button.

Product badges
- Sale and Sold Out badges are built into the product modules as toggleable settings: image-corner overlays on the grid modules (independent Sale/Sold-Out positions on Products), an inline badge row in Product Info, optional discount-percentage text, and badge/ribbon/tag styles.

== Features ==
18 native Divi 5 Visual Builder modules for FluentCart
Template Library: eight ready-made layouts (Shop, Single Product, Cart, Checkout, Thank You, Product Category, Customer Dashboard, Campaign Landing) seeded into the Divi Library with screenshot previews
Sale and Sold Out product badges built into the product modules
Category and brand archive support: one Theme Builder layout auto-scopes to the viewed term
Dynamic Content tokens for FluentCart product fields in any Divi text or image field
Theme Builder support: modules resolve the current product in Single-Product templates
Real front-end previews in the builder canvas for the product modules
Styling through Divi's native decoration system (no custom CSS required)
Automatic loading of FluentCart CSS and JavaScript assets
Compatible with FluentCart pricing rules, coupons, subscriptions, and payments

== Requirements ==
FluentCart installed and activated
Divi theme (version 5 / Divi 5 Visual Builder) active

== Installation ==
Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.
Activate the plugin through the Plugins screen.
Ensure FluentCart is active and the Divi theme is in use.
Open any page in the Divi Visual Builder and add FluentCart modules from the module picker.

== Frequently Asked Questions ==
Does this replace FluentCart's default templates?
No. This add-on renders FluentCart's native output inside Divi modules. FluentCart continues to control cart and checkout logic.

Will this work with subscriptions and variable products?
Yes. All modules are compatible with FluentCart variations and subscription products.

Are FluentCart assets loaded automatically?
Yes. Required CSS and JavaScript assets are enqueued automatically when a module is rendered.

Does this require the Divi theme?
Yes. The modules register with the Divi 5 Visual Builder and only load when the Divi theme is active.

== Changelog ==

= 1.0.0 (August 11, 2026) =
- Initial release with 18 native Divi 5 Visual Builder modules rendering FluentCart's own markup
- Adds Products module: full catalog grid with sorting, filters, and category/brand pickers
- Adds Product Search and Product Categories List modules
- Adds Product Info module with toggleable gallery, title, price, and buy sections
- Adds Product Card, Product Carousel, Media Carousel, and Related Products modules
- Adds Sale and Sold Out badges as settings inside the product modules
- Adds Add to Cart module with variation awareness and a searchable product picker
- Adds Buy Now module with a searchable product picker and optional modal checkout
- Adds Mini Cart module with live cart item count
- Adds Cart page module rendering the full FluentCart cart
- Adds Checkout module embedding the full FluentCart checkout
- Adds Receipt module for the post-purchase thank-you page
- Adds Customer Dashboard and Customer Dashboard Button modules
- Adds Store Logo module rendering the store logo (or a custom image), with optional homepage link
- Adds Archive Header module and auto-scoping category/brand archive support
- Adds Theme Builder support resolving the current product in single-product templates
- Adds a Template Library: eight ready-made layouts (Shop, Single Product, Cart, Checkout, Thank You, Product Category, Customer Dashboard, Campaign Landing) seeded into the Divi Library
- Adds Dynamic Content tokens for FluentCart product fields
- Adds real front-end canvas previews for the product modules
