=== Bricks Blocks for FluentCart ===
Contributors: wpmanageninja
Tags: fluentcart, bricks, ecommerce, checkout, cart, shop
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Bricks Blocks for FluentCart lets you build checkout flows, cart interactions, and product layouts visually in Bricks Builder while using FluentCart’s native commerce logic and assets.

== Description ==
Bricks Blocks for FluentCart is the add-on you need to design FluentCart checkout, cart, and product experiences directly inside Bricks Builder without relying on theme templates or custom code.
If you are using FluentCart and Bricks and want full control over checkout layouts, add-to-cart actions, mini cart placement, product carousels, category lists, or customer dashboards, this add-on provides purpose-built Bricks elements that render FluentCart’s native output.
All elements load FluentCart’s required CSS and JavaScript assets automatically and remain fully compatible with FluentCart products, variations, subscriptions, coupons, order bumps, taxes, and payment flows.
This add-on focuses on layout and styling control in Bricks while FluentCart continues to handle cart state, pricing rules, and checkout processing.

== Checkout & Cart Elements ==
Add to Cart Element
Renders FluentCart’s native add-to-cart output inside Bricks with full variation awareness.
Includes Bricks controls for button text, typography, colors, backgrounds, borders, spacing, shadows, and hover states.
Automatically loads FluentCart button assets and markup.
Buy Now Element
Triggers FluentCart’s Buy Now action instead of adding items to the cart.
Optional modal checkout for in-context purchasing.
Shares the same styling and variation controls as the Add to Cart element.
Mini Cart Element
Displays the FluentCart mini cart trigger and cart drawer inside Bricks layouts.
Retrieves live cart item counts before rendering.
Style controls for icons, text, backgrounds, borders, radius, spacing, shadows, and hover states.
Checkout Element
Embeds the full FluentCart checkout experience as a Bricks element.
Supports one or two column layouts with adjustable widths and gaps.
Repeater-based form sections and order summary configuration.
Extensive style controls for form fields, buttons, summary boxes, coupons, payment blocks, and validation states.
Ensures FluentCart Vite assets load even without an active cart session.

== Catalog & Shop Elements ==
Product Card Element
Renders a standalone FluentCart product card for any selected product.
Repeater-based card layout ordering and multiple price formats.
Style controls for image, title, price, and buy button.
Product Carousel Element
Swiper-based product slider powered by FluentCart products.
Responsive controls for slides per view, spacing, autoplay, looping, arrows, and pagination.
Repeater-based card layout ordering and multiple price formats.
Automatically enqueues Swiper and FluentCart carousel assets.
Product Categories Element
Displays FluentCart product categories as a list or dropdown.
Options for product counts, hierarchy nesting, and empty category visibility.
Style controls for typography, spacing, counts, and dropdown elements.
Uses FluentCart’s lightweight Vite asset pipeline.
Product Search Element
Renders the FluentCart product search bar with optional result thumbnails.
Style controls for the input field, button, and results dropdown.

== Store & Customer Elements ==
Store Logo Element
Displays the FluentCart store logo with adjustable dimensions and link options.
Customer Dashboard Element
Embeds the full FluentCart customer dashboard inside any Bricks layout.
Customer Dashboard Button Element
Renders a link/button to the FluentCart customer dashboard with icon and style controls.

== Single Product Elements ==
Product Info Element
Displays the product meta/summary table with reorderable sections, SKU display, and description support.
Product SKU Element
Displays the selected product or variation SKU.
Product Package Description Element
Displays FluentCart package/pricing description output for the current product.
Related Products Element
Displays related FluentCart products for the current single product template.

== Features ==
Bricks elements for FluentCart checkout, cart, and shop layouts
Variation-aware Add to Cart and Buy Now elements
Mini cart element with live cart state
Full FluentCart checkout embedded in Bricks
Repeater-based checkout form and order summary builder
Product carousel powered by FluentCart products
Product categories element with list and dropdown layouts
Standalone product card element
Customer dashboard and store branding elements
Custom Bricks controls for FluentCart products and variations
Automatic loading of FluentCart CSS and JavaScript assets
Compatible with FluentCart pricing rules, coupons, subscriptions, and payments

== Requirements ==
FluentCart installed and activated
Bricks theme (or Bricks Builder) installed and activated

== 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 and Bricks are active.
Open any page in Bricks and add FluentCart elements from the elements panel.

== Frequently Asked Questions ==
Does this replace FluentCart’s default templates?
No. This add-on renders FluentCart’s native output inside Bricks elements. FluentCart continues to control cart and checkout logic.
Will this work with subscriptions and variable products?
Yes. All elements are compatible with FluentCart variations and subscription products.
Are FluentCart assets loaded automatically?
Yes. Required CSS and JavaScript assets are enqueued automatically when elements are rendered.

== Changelog ==

= 1.0.0 (July 17, 2026) =
- Initial release
- Adds Add to Cart element with variation awareness and full style controls
- Adds Buy Now element with optional modal checkout
- Adds Mini Cart element with live cart item count
- Adds Checkout element embedding the full FluentCart checkout
- Adds Product Card element for standalone product display
- Adds Product Carousel element powered by Swiper
- Adds Product Categories element with list and dropdown layouts
- Adds Product Search element with optional result thumbnails
- Adds Store Logo element
- Adds Customer Dashboard and Customer Dashboard Button elements
- Adds Product Info element with reorderable summary sections
- Adds Product SKU element
- Adds Product Package Description element
- Adds Related Products element for single product templates
