GT Extensions for FluentCart 2.4.0
Multi-currency correctness
- Cart totals were converted twice. FluentCart fires
cart/can_purchasebeforecart/item_priceagainst the same in-memory variation, so the price filter re-applied the exchange rate to an already-converted amount and a ₹480.00 line rendered as ₹46,219.00. - Every product-page price now converts, not only the one FluentCart exposes a filter for. The compare price, header price range, and variant cards previously kept store-currency amounts, so a converted price sat beside an unconverted one. Manual price-book entries still win over the exchange rate.
- The currency symbol follows the selection across the whole storefront, not just checkout, so the cart drawer no longer labels converted amounts with the store currency’s sign.
- Receipts and order confirmations report the currency the order was charged in. FluentCart’s receipt renderer formats every amount with no currency argument.
Features that were silently disabled
Seven hooks were registered under names FluentCart does not use:
cart/validate_addandcart/validate_updatedo not exist —can_purchaseis the gateCart::addItem()actually runs, so minimum/maximum quantity limits and guest purchase blocking were enforced only in the browser and a direct cart request bypassed them.fluent-cart/product_stock_availabilitywas hyphenated;product/buy_now_text,product/show_add_to_cart,variation/dataandadmin_js_varsdo not exist at all.is_singular('fct_product')tested a database table prefix rather than a registered post type, so module CSS printed on every page of the site while the matching scripts ran on none.
External Product admin screen
Rebuilt: saves over AJAX with inline status (the no-JS form post still works), card layout, dependent fields that disable while redirection is off, client-side URL validation, a live button preview, and a readout of the exact rel attribute that will ship. FluentCart’s product navigation is now styled, since FluentCart does not load its admin stylesheet on a custom submenu page.
Performance
A variation’s whole price book is read in one query and reused. The currency selector’s stylesheet, script and cart lookup load only where a price can appear, and its uncacheable status request no longer fires on pages with no selector.
Requires FluentCart 1.5.5 or newer. Verified against FluentCart 1.6.1.