### Customize Shop Page Theme Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Customize the shop page appearance by overriding CSS variables. This example sets a blue color for shop buttons and active pagination backgrounds. ```css .fct-shop-app { --fct-shop-btn-bg-color: #0066cc; --fct-shop-paginator-items-active-bg: #0066cc; } ``` -------------------------------- ### Customize Customer Dashboard Theme Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Apply custom colors to the customer dashboard by overriding CSS variables. This example sets a blue theme for navigation backgrounds and button backgrounds. ```css .fct-customer-dashboard { --fct-customer-dashboard-nav-active-bg-color: #0066cc; --fct-customer-dashboard-btn-bg-color: #0066cc; } ``` -------------------------------- ### Run step-by-step migration Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-cli Executes individual migration stages for granular control over the process. ```bash wp fluent_cart_migrator migrate_from_woo --products wp fluent_cart_migrator migrate_from_woo --tax_rates wp fluent_cart_migrator migrate_from_woo --coupons wp fluent_cart_migrator migrate_from_woo --payments wp fluent_cart_migrator migrate_from_woo --missing-customers wp fluent_cart_migrator migrate_from_woo --recount ``` -------------------------------- ### Run Migration via CLI Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Use the CLI command to bypass HTTP timeouts when the migration wizard stalls. ```bash wp fluent_cart_migrator migrate_from_edd --all ``` -------------------------------- ### Step-by-Step EDD Migration Workflow Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Run individual migration stages for more control, allowing inspection between steps or special handling. The order is crucial: products, tax rates, coupons, payments, and finally recount. ```bash wp fluent_cart_migrator migrate_from_edd --products wp fluent_cart_migrator migrate_from_edd --tax_rates wp fluent_cart_migrator migrate_from_edd --coupons wp fluent_cart_migrator migrate_from_edd --payments wp fluent_cart_migrator migrate_from_edd --recount ``` -------------------------------- ### Verify Licenses via WP-CLI Source: https://docs.fluentcart.com/guide/migration/edd/edd-migration Run this command in the terminal to programmatically verify that all license keys have been migrated correctly. ```bash wp fluent_cart_migrator migrate_from_edd --verify_license ``` -------------------------------- ### Preview source data statistics Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-cli Displays pre-migration statistics without writing any data to the database. ```bash wp fluent_cart_migrator migrate_from_woo --stats ``` -------------------------------- ### Troubleshoot Migration via WP-CLI Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-troubleshooting Use these commands to inspect migration logs or view statistics about the source data. ```bash wp fluent_cart_migrator migrate_from_woo --log ``` ```bash wp fluent_cart_migrator migrate_from_woo --stats ``` -------------------------------- ### Run full migration Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-cli Executes the complete migration pipeline, skipping already completed stages and resuming interrupted ones. ```bash wp fluent_cart_migrator migrate_from_woo --all ``` -------------------------------- ### Migrate Missing Customers Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-troubleshooting Run this command to import registered accounts that have not placed any orders. ```bash wp fluent_cart_migrator migrate_from_woo --missing-customers ``` -------------------------------- ### Run Individual Migration Stages Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Execute specific migration stages individually to manage memory usage more effectively. ```bash wp fluent_cart_migrator migrate_from_edd --products wp fluent_cart_migrator migrate_from_edd --payments wp fluent_cart_migrator migrate_from_edd --recount ``` -------------------------------- ### Configure Cursor MCP settings Source: https://docs.fluentcart.com/guide/settings-configuration/mcp Add the FluentCart server configuration to the mcp.json file in Cursor. ```json { "mcpServers": { "fluent-cart": { "url": "https://your-store.com/wp-json/fluent-cart/mcp", "type": "http", "headers": { "Authorization": "Basic " } } } } ``` -------------------------------- ### Primary migration command Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-cli The base command used to initiate migration processes from WooCommerce. ```bash wp fluent_cart_migrator migrate_from_woo [flag] ``` -------------------------------- ### Display Standard Product Catalog Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use this shortcode to display your standard product list with default settings. It's suitable for main shop pages or featured product sections. ```shortcode [fluent_cart_products] ``` -------------------------------- ### Preview Source Data Statistics Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Displays pre-migration statistics for the source EDD store without migrating any data. Shows counts for products, orders, customers, subscriptions, licenses, gateways, and order statuses. ```bash wp fluent_cart_migrator migrate_from_edd --stats ``` -------------------------------- ### Run Standalone Reset Command Source: https://docs.fluentcart.com/guide/migration/edd/developer-mode Execute the standalone reset command to revert migration changes. This command is accessible only when Developer Mode is enabled. ```bash wp fluent_cart_migrator reset ``` -------------------------------- ### Run Full EDD Migration Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Execute all migration stages sequentially. This command resumes interrupted or skipped steps from previous runs. ```bash wp fluent_cart_migrator migrate_from_edd --all ``` -------------------------------- ### Combine Product Shortcode Parameters Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use various parameters together to achieve specific product displays, such as paginating through specific products or creating custom layouts. ```shortcode [fluent_cart_products ids="433,434" per_page="1" paginator="numbers"] ``` ```shortcode [fluent_cart_products ids="433,434,435" columns="3" per_page="3"] ``` ```shortcode [fluent_cart_products category="hoodies" exclude_ids="433" sort_by="date-newest"] ``` ```shortcode [fluent_cart_products product_type="digital" columns="3" sort_by="price-low" per_page="6"] ``` -------------------------------- ### Inspect migration failures Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-cli Displays a log of failed orders encountered during the migration process. ```bash wp fluent_cart_migrator migrate_from_woo --log ``` -------------------------------- ### Adjust Product Layout and Display Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Customize the visual presentation of your product catalog by setting the number of columns, limiting the number of products, and choosing between grid or list view modes. Pagination can also be configured. ```shortcode [fluent_cart_products columns="3"] ``` ```shortcode [fluent_cart_products limit="6" columns="3"] ``` ```shortcode [fluent_cart_products columns="2" view_mode="grid"] ``` ```shortcode [fluent_cart_products per_page="4" view_mode="list" paginator="numbers"] ``` -------------------------------- ### View migration failures via CLI Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Displays captured migration errors directly in the terminal. ```bash wp fluent_cart_migrator migrate_from_edd --log ``` -------------------------------- ### Verify License Integrity Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Compares EDD software licenses against FluentCart records after migration to report missing licenses or status mismatches. Recommended to run before deactivating EDD. ```bash wp fluent_cart_migrator migrate_from_edd --verify_license ``` -------------------------------- ### Run Migration with Reset Flag Source: https://docs.fluentcart.com/guide/migration/edd/developer-mode Use the `--reset` flag with the main migration command to reset the migration process. This command is only available when Developer Mode is active. ```bash wp fluent_cart_migrator migrate_from_edd --reset ``` -------------------------------- ### Add Test Stripe API Keys to wp-config.php Source: https://docs.fluentcart.com/guide/payments-checkout/connecting-payment-gateways/configure-stripe-via-wpconfig Add your test Stripe Publishable and Secret keys to the wp-config.php file for testing purposes. Replace placeholders with your actual test keys. ```php define('FCT_STRIPE_TEST_PUBLIC_KEY','ENTER YOUR PUBLIC API KEY HERE'); define('FCT_STRIPE_TEST_SECRET_KEY','ENTER YOUR SECRET KEY HERE'); ``` -------------------------------- ### Add Live Stripe API Keys to wp-config.php Source: https://docs.fluentcart.com/guide/payments-checkout/connecting-payment-gateways/configure-stripe-via-wpconfig Add your live Stripe Publishable and Secret keys to the wp-config.php file. Replace placeholders with your actual keys. ```php define('FCT_STRIPE_LIVE_PUBLIC_KEY','ENTER YOUR PUBLIC API KEY HERE'); define('FCT_STRIPE_LIVE_SECRET_KEY','ENTER YOUR SECRET KEY HERE'); ``` -------------------------------- ### Sort Products Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Control the order of displayed products using predefined `sort_by` options or granular `orderby` and `order` parameters. Options include sorting by price, name, and date. ```shortcode [fluent_cart_products orderby="price" order="ASC"] ``` ```shortcode [fluent_cart_products sort_by="price-low"] ``` ```shortcode [fluent_cart_products sort_by="price-high"] ``` ```shortcode [fluent_cart_products sort_by="name-asc"] ``` ```shortcode [fluent_cart_products sort_by="date-newest"] ``` ```shortcode [fluent_cart_products sort_by="date-oldest"] ``` -------------------------------- ### Define Cloudflare R2 Credentials in wp-config.php Source: https://docs.fluentcart.com/guide/storage/cloudflare-r2 Add these constants to your wp-config.php file, preferably near the top. Replace placeholder values with your actual Cloudflare R2 credentials. This method is recommended for enhanced security. ```php define( 'FCT_R2_ACCOUNT_ID', 'your-account-id' ); define( 'FCT_R2_ACCESS_KEY', 'your-access-key-id' ); define( 'FCT_R2_SECRET_KEY', 'your-secret-access-key' ); ``` -------------------------------- ### Enable Developer Mode Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-developer-mode Add this constant to your wp-config.php file to unlock destructive migration reset operations. ```php define('FLUENT_CART_DEV_MODE', true); ``` -------------------------------- ### Enable Modal Checkout via Shortcode Source: https://docs.fluentcart.com/guide/store-management/orders-management/instant-modal-checkout Add the instant_checkout attribute to the checkout button shortcode to trigger the popup for specific buttons. ```text [fluent_cart_checkout_button variation_id="113" instant_checkout="yes" button_text="Buy Now"] ``` -------------------------------- ### Apply Multiple Coupons via URL Source: https://docs.fluentcart.com/guide/marketing-sales-tools/creating-managing-coupons/adding-coupons Pass multiple coupon codes as a comma-separated list within the coupons parameter. ```text https://yourdomain.com/?fluent-cart=instant_checkout&item_id=209&quantity=1&coupons=CODE1,CODE2 ``` -------------------------------- ### Fix Missing Subscription UUIDs Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Run this command to backfill missing subscription UUIDs caused by corrupted source records. ```bash wp fluent_cart_migrator fix_subs_uuid ``` -------------------------------- ### Update Product Card Style Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Customize the background, border, and button background colors of product cards. ```css .fct-product-card { --fct-card-bg: #fafafa; --fct-card-border-color: #e0e0e0; --fct-card-btn-bg-color: #0066cc; } ``` -------------------------------- ### Filter Products by IDs Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Display specific products by providing their IDs. Use `ids` for inclusion and `exclude_ids` for exclusion. Non-existent IDs will result in no products being shown. ```shortcode [fluent_cart_products ids="433"] ``` ```shortcode [fluent_cart_products ids="344,346,347"] ``` ```shortcode [fluent_cart_products exclude_ids="344"] ``` ```shortcode [fluent_cart_products exclude_ids="3595,3493"] ``` -------------------------------- ### Checkout Button Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use this shortcode to create a button that directs customers to the checkout page or opens a quick buy popup. It's ideal for landing pages and promotions. ```shortcode [fluent_cart_checkout_button variation_id="113" instant_checkout="yes"] ``` ```shortcode [fluent_cart_checkout_button button_text="Go to Checkout" target="_self"] ``` ```shortcode [fluent_cart_checkout_button variation_id="113" instant_checkout="yes" button_text="Buy Now"] ``` -------------------------------- ### Define AWS S3 Access Keys in wp-config.php Source: https://docs.fluentcart.com/guide/storage/aws-s3 Recommended method for configuring AWS S3 credentials by defining constants in the wp-config.php file. This approach locks the fields in the FluentCart UI. ```php // Add this near the top of wp-config.php, ab // the "That's all, stop editing!" line. define( 'FCT_S3_ACCESS_KEY', 'AKIAEXAMPLEKEYID1234' ); define( 'FCT_S3_SECRET_KEY', 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY' ); ``` -------------------------------- ### Recalculate Stats After Migration Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Recalculates essential statistics post-migration, including lifetime value, average order value, customer purchase counts, subscription bill counts, and missing UUIDs. ```bash wp fluent_cart_migrator migrate_from_edd --recount ``` -------------------------------- ### Apply a Single Coupon via URL Source: https://docs.fluentcart.com/guide/marketing-sales-tools/creating-managing-coupons/adding-coupons Use the coupons parameter in the URL to automatically apply a single discount code upon checkout. ```text https://yourdomain.com/?fluent-cart=instant_checkout&item_id=209&quantity=1&coupons=SUMMER20 ``` -------------------------------- ### Re-run orders migration stage Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-troubleshooting Executes the migration for orders while skipping those that have already been successfully processed. ```bash wp fluent_cart_migrator migrate_from_woo --payments ``` -------------------------------- ### Add FluentCart to Claude Code Source: https://docs.fluentcart.com/guide/settings-configuration/mcp Use the terminal command to register the FluentCart MCP server with Claude Code. ```bash claude mcp add \ --transport http \ fluent-cart https://your-store.com/wp-json/fluent-cart/mcp \ --header "Authorization: Basic " ``` -------------------------------- ### Filter Products by Category Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Narrow down the product list by specifying category slugs or term IDs. This works for single or multiple categories and can be combined with pagination. ```shortcode [fluent_cart_products category="cloths"] ``` ```shortcode [fluent_cart_products category="cloths,shoes"] ``` ```shortcode [fluent_cart_products category_id="9"] ``` ```shortcode [fluent_cart_products category_id="9,12"] ``` ```shortcode [fluent_cart_products category="hoodies" category_id="8"] ``` ```shortcode [fluent_cart_products category="hoodies" per_page="2" paginator="numbers"] ``` -------------------------------- ### Custom Product Button Colors Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Set custom background and text colors for the Add to Cart and Buy Now buttons. ```css :root { --fct-add-to-cart-btn-bg-color: #f0f0f0; --fct-add-to-cart-btn-text-color: #333; --fct-direct-btn-bg-color: #0066cc; } ``` -------------------------------- ### Define R2 Credentials in wp-config.php Source: https://docs.fluentcart.com/guide/storage/cloudflare-r2 Add these constants to your wp-config.php file to configure Cloudflare R2 credentials. Ensure they are placed above the "That's all, stop editing!" line. ```php define( 'FCT_R2_ACCOUNT_ID', '1a2b3c4d5e6f7g8h9i0j' ); define( 'FCT_R2_ACCESS_KEY', 'EXAMPLEACCESSKEYID12' ); define( 'FCT_R2_SECRET_KEY', 'EXAMPLE_SECRET_ACCESS_KEY_1234567890abcd' ); ``` -------------------------------- ### Customize Single Product Page Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Override CSS variables to change the background and border colors of the single product page elements. ```css .fct-single-product-page { --fct-single-product-qty-bg: #f0f0f0; --fct-single-product-border-color: #e0e0e0; } ``` -------------------------------- ### Re-run Subscription Recount Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-troubleshooting Execute this command to re-attach orphaned renewal transactions and rebuild subscription bill counts. ```bash wp fluent_cart_migrator migrate_from_woo --recount ``` -------------------------------- ### Migrate EDD Products Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Migrates EDD downloads to FluentCart products, handling both new creations and updates to existing ones using a migration ID map. ```bash wp fluent_cart_migrator migrate_from_edd --products ``` -------------------------------- ### Clean up EDD database tables Source: https://docs.fluentcart.com/guide/migration/edd/edd-migration Run this WP-CLI command only after you are fully confident in the migration and no longer need to reference original EDD records. ```bash wp fluent_cart_migrator edd_cleanup ``` -------------------------------- ### Enable Modal Checkout via PHP Source: https://docs.fluentcart.com/guide/store-management/orders-management/instant-modal-checkout Use these filters in functions.php or a snippets plugin to globally enable the modal and restrict active payment gateways. ```php // 1. Enable the "Modal" (popup) checkout functionality add_filter('fluent_cart/enable_modal_checkout', '__return_true'); // 2. Define which payment gateways appear in the popup add_filter('fluent_cart/modal_checkout/filter_active_payment_methods', function($methods) { return ['stripe', 'paypal', 'offline_payment']; }, 10, 1); ``` -------------------------------- ### Run EDD Migration with Increased Memory Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Execute the full EDD migration process with an increased memory limit for PHP. This is useful for large stores to prevent timeouts during migration. ```bash php -d memory_limit=1024M $(which wp) fluent_cart_migrator migrate_from_edd --all ``` -------------------------------- ### Advanced Shortcode with Sidebar Filter Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Enable and configure a sidebar filter with JSON settings to display products with live filtering and custom sorting options. ```shortcode [fluent_cart_products per_page=4 live_filter='false' enable_filter='true' paginator='numbers' custom_filters='{"enabled":true,"live_filter":true,"taxonomies":"product-categories,product-brands","price_range":"price_range"}' filters='{"enabled":true,"sort_by":"name-desc"}' ] ``` -------------------------------- ### Activate Developer Mode in wp-config.php Source: https://docs.fluentcart.com/guide/migration/edd/developer-mode Add this line to your `wp-config.php` file to enable Developer Mode. The change takes effect immediately. To disable, remove the line or set the value to `false`. ```php define('FLUENT_CART_DEV_MODE', true); ``` -------------------------------- ### Perform Schema-Refresh Reset Source: https://docs.fluentcart.com/guide/migration/edd/developer-mode Use the `migrate_fresh` command to perform a schema-refresh reset. This operation is available when Developer Mode is active. ```bash wp fluent_cart_migrator migrate_fresh ``` -------------------------------- ### Reset Migration Commands Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Commands used to reset migration states or perform a fresh migration. Ensure Developer Mode is enabled in wp-config.php before execution. ```bash wp fluent_cart_migrator migrate_from_edd --reset ``` ```bash wp fluent_cart_migrator reset ``` ```bash wp fluent_cart_migrator migrate_fresh ``` -------------------------------- ### Inspect Failed Payments Log Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Displays a log of individual orders that failed during migration due to corrupted records, missing references, or malformed items. This helps in identifying and resolving specific issues. ```bash wp fluent_cart_migrator migrate_from_edd --log ``` -------------------------------- ### Customize Product Card Styles Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Modify the appearance of product cards, including background, border, and button colors, by targeting the `.fct-product-card` class and setting relevant CSS variables. ```css .fct-product-card { --fct-card-bg: #f9f9f9; --fct-card-border-color: #e0e0e0; --fct-card-btn-bg-color: #0066cc; } ``` -------------------------------- ### Manually Re-run Recount Stage Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Trigger the recount stage manually to resolve discrepancies in subscription bill counts. ```bash wp fluent_cart_migrator migrate_from_edd --recount ``` -------------------------------- ### Display Product Image with FluentCart Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use the `fluent_cart_product_image` shortcode to display the featured image of a specific product, useful for custom layouts. ```html [fluent_cart_product_image product_id="123"] ``` -------------------------------- ### Filter Products by Type and Sale Status Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Showcase specific product types (simple, variation, physical, digital, subscription) or only products that are currently on sale using the `product_type` and `on_sale` parameters. ```shortcode [fluent_cart_products product_type="simple"] ``` ```shortcode [fluent_cart_products product_type="simple_variations"] ``` ```shortcode [fluent_cart_products product_type="physical"] ``` ```shortcode [fluent_cart_products product_type="digital"] ``` ```shortcode [fluent_cart_products product_type="subscription"] ``` ```shortcode [fluent_cart_products on_sale="yes"] ``` -------------------------------- ### Re-run payment migration Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Processes only the orders that have not yet been successfully migrated after fixing source data issues. ```bash wp fluent_cart_migrator migrate_from_edd --payments ``` -------------------------------- ### Style the Checkout Page Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Modify the button and primary background colors for the checkout page. ```css .fct-checkout { --fct-checkout-btn-bg-color: #28a745; --fct-checkout-primary-bg-color: #28a745; } ``` -------------------------------- ### Migrate EDD Tax Rates Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Migrates EDD tax settings and generates corresponding FluentCart tax rates. This step is skipped if taxes are disabled in EDD. ```bash wp fluent_cart_migrator migrate_from_edd --tax_rates ``` -------------------------------- ### Migrate EDD Coupons Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Migrates EDD discount codes to FluentCart coupons. It updates existing coupons by code or inserts new ones if no match is found. ```bash wp fluent_cart_migrator migrate_from_edd --coupons ``` -------------------------------- ### Increase PHP Memory Limit for Migration Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Increase the memory limit for the migration process to prevent out of memory errors on large stores. ```bash php -d memory_limit=1024M $(which wp) fluent_cart_migrator migrate_from_edd --all ``` -------------------------------- ### Backfill missing subscription UUIDs Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Fills in missing UUIDs on subscription records using an md5 hash of ID, UUID4, and microtime for reliable referencing. ```bash wp fluent_cart_migrator fix_subs_uuid ``` -------------------------------- ### Bypass Reset Confirmation Source: https://docs.fluentcart.com/guide/migration/edd/troubleshooting Use the --yes flag to skip the confirmation prompt when running reset commands in automated scripts. ```bash wp fluent_cart_migrator migrate_from_edd --reset --yes ``` -------------------------------- ### Cleanup EDD Database Tables Source: https://docs.fluentcart.com/guide/migration/edd/backward-compatibility This command is used to clean up database tables associated with Easy Digital Downloads after the transition period, once legacy traffic has ceased. ```php edd_cleanup() ``` -------------------------------- ### Clean up EDD data after migration Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Deletes EDD post types, orphaned metadata, and taxonomies. Asks for confirmation before running. Run only after thorough verification. ```bash wp fluent_cart_migrator edd_cleanup ``` -------------------------------- ### Product Categories Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode This shortcode displays your product categories, either as a list or a dropdown menu, enabling customers to easily browse your store's products. ```shortcode [fluent_cart_product_categories display_style="list" show_hierarchy="true"] ``` -------------------------------- ### FluentCart Shortcodes for Storefront Pages Source: https://docs.fluentcart.com/guide/getting-started/initial-setup-wizard These shortcodes are essential for assigning FluentCart's core storefront functions to specific WordPress pages. Ensure each page has the correct shortcode for its intended role. ```html [fluent_cart_products] ``` ```html [fluent_cart_customer_profile] ``` ```html [fluent_cart_cart] ``` ```html [fluent_cart_receipt] ``` ```html [fluent_cart_checkout] ``` -------------------------------- ### Blue Cart Drawer Styling Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Customize the cart drawer's action button and badge background colors. ```css .fct-cart-drawer { --fct-cart-drawer-btn-bg-color: #0066cc; --fct-cart-drawer-badge-bg-color: #ff6b6b; } ``` -------------------------------- ### Update the Customer Dashboard Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Customize the active background and text colors for the navigation in the customer dashboard. ```css .fct-customer-dashboard { --fct-customer-dashboard-nav-active-bg-color: #0066cc; --fct-customer-dashboard-nav-active-text-color: #ffffff; } ``` -------------------------------- ### Add custom menu item to customer dashboard Source: https://docs.fluentcart.com/guide/customization-and-themes/code-snippets Register a new endpoint in the customer profile using the FluentCartGeneralApi. You can provide a render_callback for custom content or a page_id to display an existing WordPress page. ```php addCustomerDashboardEndpoint( 'support', [ 'title' => __('Customer Support', 'fluent-cart-pro'), // 'render_callback' => function () { // echo 'Put your text'; // }, 'icon_svg' => '', 'page_id' => 178, ] ); }); ``` -------------------------------- ### Define AWS Access Keys in wp-config.php Source: https://docs.fluentcart.com/guide/storage/aws-s3 Securely store AWS access keys by defining them as constants in your wp-config.php file. This method is recommended for enhanced security. ```php define( 'FCT_S3_ACCESS_KEY', 'your-access-key-id' ); define( 'FCT_S3_SECRET_KEY', 'your-secret-access-key' ); ``` -------------------------------- ### Add a Suffix to Product Prices Source: https://docs.fluentcart.com/guide/customization-and-themes/code-snippets Use the fluent_cart/product/price_suffix_atts filter to append custom text after a product price. Returning an empty string will result in no suffix being displayed. ```php add_filter('fluent_cart/product/price_suffix_atts', function ($suffix, $context) { return 'incl. VAT'; }, 10, 2); ``` -------------------------------- ### Mini Cart Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Display a compact summary of the shopping cart, including item count and total price. Perfect for headers or sidebars to provide customers with an immediate overview. ```shortcode [fluent_cart_mini_cart cart_icon="bag" show_total_price="true"] ``` -------------------------------- ### Display Product Title with FluentCart Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use the `fluent_cart_product_title` shortcode to display the name of a specific product. It can be configured to link to the product page. ```html [fluent_cart_product_title product_id="123" is_link="true"] ``` -------------------------------- ### Display Custom Line Item Metadata Source: https://docs.fluentcart.com/guide/customization-and-themes/code-snippets Prints custom metadata under cart items in the checkout summary using the line_meta hook. ```php add_action('fluent_cart/cart/line_item/line_meta', function ($data) { $item = $data['item'] ?? []; if (empty($item['line_meta']) || !is_array($item['line_meta'])) { return; } $giftMessage = $item['line_meta']['gift_message'] ?? ''; if (!$giftMessage) { return; } echo '
'; echo '' . esc_html__('Gift message:', 'your-textdomain') . ' ' . esc_html($giftMessage) . ''; echo '
'; }, 10, 1); ``` ```php $data = [ 'item' => $item, // Cart item data. This is the main value to use. 'cart' => $cart, // Current cart model when available, otherwise null. 'product' => $product, // Reserved for product data; currently may be null. 'variant' => $variant, // Reserved for variation data; currently may be null. ]; ``` -------------------------------- ### Preserve Campaign Attribution Across Domains Source: https://docs.fluentcart.com/guide/customization-and-themes/code-snippets Define internal domains using the fluent_cart/utm/internal_domains filter to prevent cross-domain navigation from overwriting original UTM campaign parameters. ```php add_filter('fluent_cart/utm/internal_domains', function ($domains) { return ['shop.example.com', 'checkout.example.com']; }); ``` -------------------------------- ### Display Store Logo with FluentCart Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use the `fluent_cart_store_logo` shortcode to display your store's logo. You can customize its link and size. ```html [fluent_cart_store_logo is_link="true" logo_url="https://yoursite.com/logo.png" max_width="200"] ``` -------------------------------- ### Add Customer Dashboard Button with FluentCart Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode Use the `fluent_cart_customer_dashboard_button` shortcode to add a button or link for logged-in customers to access their profile or orders. ```html [fluent_cart_customer_dashboard_button button_text="My Profile" display_type="link"] ``` -------------------------------- ### Filter Order Mode for Stripe Subscriptions Source: https://docs.fluentcart.com/guide/migration/woocommerce/woocommerce-troubleshooting Use this filter to manually correct the order mode inference if Stripe subscriptions are failing due to a mode mismatch. ```php add_filter('fluentcart_migrator_woo_order_mode', function ($mode, $context) { // $context['order'] and $context['gateway'] are available return $mode; }, 10, 2); ``` -------------------------------- ### Migrate EDD Payments Source: https://docs.fluentcart.com/guide/migration/edd/edd-cli Migrates EDD orders, transactions, subscriptions, and licenses. It processes data in batches of 1,000 orders per page and persists the last page for resuming. ```bash wp fluent_cart_migrator migrate_from_edd --payments ``` -------------------------------- ### Customize Button Colors Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Modify both the background and border colors for primary buttons by overriding `--fct-btn-bg-color` and `--fct-btn-border-color`. This ensures a consistent button appearance across your store. ```css :root { --fct-btn-bg-color: #0066cc; --fct-btn-border-color: #0066cc; } ``` -------------------------------- ### Add Withdrawal Shortcode to WordPress Page Source: https://docs.fluentcart.com/guide/settings-configuration/withdrawal-eu Use the `[fluent_cart_withdrawal]` shortcode within a WordPress page to render the customer-facing withdrawal form. Ensure this page is linked prominently for easy customer access. ```html [fluent_cart_withdrawal] ``` -------------------------------- ### Customize Checkout Button Background Source: https://docs.fluentcart.com/guide/customization-and-themes/advanced-customization-using-css Override the default background color for checkout buttons by targeting the `.fct-checkout` class and setting the `--fct-checkout-btn-bg-color` variable. ```css .fct-checkout { --fct-checkout-btn-bg-color: #28a745; } ``` -------------------------------- ### Add to Cart Button Shortcode Source: https://docs.fluentcart.com/guide/customization-and-themes/fluentcart-shortcode This shortcode generates a simple 'Add to Cart' button, allowing customers to add items to their cart without leaving the current page. Useful for continuous shopping experiences. ```shortcode [fluent_cart_add_to_cart_button button_text="Add to Cart" variation_id="113"] ``` -------------------------------- ### Hide Unnecessary Decimals in Prices Source: https://docs.fluentcart.com/guide/customization-and-themes/code-snippets Removes trailing zeros from prices to display cleaner currency values. ```php isZeroPayment()) { return []; } return $fields; }, 10, 2 ); /** * Remove billing-address validation errors for zero-payment checkouts. */ add_filter( 'fluent_cart/checkout/validate_data', function ($errors, $data) { $cart = $data['cart'] ?? null; if (!$cart || !$cart->isZeroPayment()) { return $errors; } $addressFields = [ 'billing_country', 'billing_state', 'billing_address_1', 'billing_address_2', 'billing_city', 'billing_postcode', 'billing_phone', ]; foreach ($addressFields as $field) { unset($errors[$field]); } return $errors; }, 10, 2 ); ``` -------------------------------- ### Override Stripe card storage behavior Source: https://docs.fluentcart.com/guide/customization-and-themes/code-snippets Use this filter to conditionally control whether Stripe stores a card based on the checkout context. Ensure the logic remains deterministic to avoid payment confirmation errors. ```php