{"id":404113,"date":"2026-11-21T10:33:51","date_gmt":"2026-11-21T10:33:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/multipos-for-fluentcart\/"},"modified":"2026-11-21T13:51:30","modified_gmt":"2026-11-21T13:51:30","slug":"devdiggers-multipos-for-fluentcart","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/devdiggers-multipos-for-fluentcart\/","author":20777317,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"6.7","requires_php":"7.4","requires_plugins":null,"header_name":"DevDiggers MultiPOS for FluentCart","header_author":"DevDiggers","header_description":"Point of sale for FluentCart. Sell in person from any browser, scan barcodes, print labels and receipts, manage cashiers and customers, and save every sale as a real FluentCart order.","last_updated":"2026-11-21 13:51:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/devdiggers.com\/product\/fluentcart-pos\/","header_author_uri":"https:\/\/devdiggers.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":40,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"devdiggers","date":"2026-11-21 13:51:30","revision":3815332}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.gif":{"filename":"icon-128x128.gif","revision":3815109,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.gif":{"filename":"icon-256x256.gif","revision":3815109,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":3815109,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3815109,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":3815109,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3815109,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3815332,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"meta\":{\"title\":\"MultiPOS for FluentCart demo\",\"description\":\"A concept store with a live point of sale, cashiers and a month of in-store sales.\",\"author\":\"devdiggers\",\"categories\":[\"Commerce\"]},\"landingPage\":\"\\\/wp-admin\\\/admin.php?page=ddfcpos-dashboard\",\"preferredVersions\":{\"php\":\"8.3\",\"wp\":\"latest\"},\"features\":{\"networking\":true},\"steps\":[{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"fluent-cart\"},\"options\":{\"activate\":true}},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"devdiggers-multipos-for-fluentcart\"},\"options\":{\"activate\":true}},{\"step\":\"installTheme\",\"themeData\":{\"resource\":\"wordpress.org\\\/themes\",\"slug\":\"kadence\"},\"options\":{\"activate\":true}},{\"step\":\"setSiteOptions\",\"options\":{\"_ddfcpos_enabled\":\"yes\",\"ddfw_setup_wizard_completed_devdiggers-multipos-for-fluentcart\":true}},{\"step\":\"runPHP\",\"code\":\"<?php\\nrequire '\\\/wordpress\\\/wp-load.php';\\nrequire_once ABSPATH . 'wp-admin\\\/includes\\\/image.php';\\nrequire_once ABSPATH . 'wp-admin\\\/includes\\\/file.php';\\nrequire_once ABSPATH . 'wp-admin\\\/includes\\\/media.php';\\n\\nuse DDFCMultiPOS\\\\API\\\\Includes\\\\Orders\\\\DDFCPOS_API_Create_Order;\\nuse DDFCMultiPOS\\\\Helper\\\\Cashier\\\\DDFCPOS_Cashier_Helper;\\nuse DDFCMultiPOS\\\\Helper\\\\FluentCart\\\\DDFCPOS_Product;\\nuse DDFCMultiPOS\\\\Helper\\\\Outlet\\\\DDFCPOS_Outlet_Helper;\\nuse FluentCart\\\\Api\\\\StoreSettings;\\nuse FluentCart\\\\App\\\\CPT\\\\Pages;\\nuse FluentCart\\\\App\\\\Models\\\\Customer;\\nuse FluentCart\\\\App\\\\Services\\\\Async\\\\DummyProductService;\\n\\n\\\/\\\/ Live Preview only: Playground runs on SQLite, which has no JSON_UNQUOTE. FluentCart's customer and report\\n\\\/\\\/ queries use it, so add it (SQLite's JSON_EXTRACT already returns plain text) on every request.\\nwp_mkdir_p( WPMU_PLUGIN_DIR );\\nfile_put_contents(\\n\\tWPMU_PLUGIN_DIR . '\\\/demo-sqlite.php',\\n\\t\\\"<?php\\\\n\\\/\\\/ Live Preview only: MySQL functions that SQLite lacks.\\\\nglobal \\\\$wpdb;\\\\nif ( is_object( \\\\$wpdb ) && is_object( \\\\$wpdb->dbh ) && method_exists( \\\\$wpdb->dbh, 'get_sqlite_pdo' ) ) {\\\\n\\\\t\\\\$pdo = \\\\$wpdb->dbh->get_sqlite_pdo();\\\\n\\\\t\\\\$pdo->sqliteCreateFunction( 'JSON_UNQUOTE', function ( \\\\$v ) { return null === \\\\$v ? null : ( is_string( \\\\$v ) && isset( \\\\$v[0] ) && '\\\\\\\"' === \\\\$v[0] ? json_decode( \\\\$v ) : \\\\$v ); }, 1 );\\\\n}\\\\n\\\"\\n);\\ninclude WPMU_PLUGIN_DIR . '\\\/demo-sqlite.php';\\n\\ndelete_transient( 'fluent_cart_do_activation_redirect' );\\ndelete_transient( 'ddfw_activation_redirect_devdiggers-multipos-for-fluentcart' );\\nupdate_option( 'fluent_cart_do_activation_redirect', 'no' );\\n\\n$faces = [\\n\\t'admin@localhost.com'        => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/women\\\/68.jpg',\\n\\t'jordan.reyes@example.com'   => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/men\\\/32.jpg',\\n\\t'aisha.bello@example.com'    => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/women\\\/44.jpg',\\n\\t'amara.okafor@example.com'   => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/women\\\/65.jpg',\\n\\t'liam.carter@example.com'    => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/men\\\/46.jpg',\\n\\t'sofia.romero@example.com'   => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/women\\\/24.jpg',\\n\\t'kenji.watanabe@example.com' => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/men\\\/86.jpg',\\n\\t'priya.sharma@example.com'   => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/women\\\/90.jpg',\\n\\t'noah.mueller@example.com'   => 'https:\\\/\\\/randomuser.me\\\/api\\\/portraits\\\/men\\\/22.jpg',\\n];\\nwp_mkdir_p( WPMU_PLUGIN_DIR );\\nfile_put_contents(\\n\\tWPMU_PLUGIN_DIR . '\\\/demo-avatars.php',\\n\\t\\\"<?php\\\\n\\\/\\\/ Live Preview only: show a portrait for each demo person.\\\\nadd_filter( 'pre_get_avatar_data', function ( \\\\$args, \\\\$id ) {\\\\n\\\\t\\\\$faces = \\\" . var_export( $faces, true ) . \\\";\\\\n\\\\t\\\\$email = '';\\\\n\\\\tif ( is_numeric( \\\\$id ) ) { \\\\$u = get_userdata( (int) \\\\$id ); \\\\$email = \\\\$u ? \\\\$u->user_email : ''; }\\\\n\\\\telseif ( is_string( \\\\$id ) ) { \\\\$email = \\\\$id; }\\\\n\\\\telseif ( \\\\$id instanceof WP_User ) { \\\\$email = \\\\$id->user_email; }\\\\n\\\\telseif ( \\\\$id instanceof WP_Comment ) { \\\\$email = \\\\$id->comment_author_email; }\\\\n\\\\t\\\\$email = strtolower( \\\\$email );\\\\n\\\\tif ( isset( \\\\$faces[ \\\\$email ] ) ) { \\\\$args['url'] = \\\\$faces[ \\\\$email ]; \\\\$args['found_avatar'] = true; }\\\\n\\\\treturn \\\\$args;\\\\n}, 10, 2 );\\\\n\\\"\\n);\\n\\n\\\/\\\/ Store details.\\nupdate_option( 'blogname', 'Larch & Lane' );\\nupdate_option( 'blogdescription', 'Concept store for homeware, vinyl and everyday design' );\\nwp_update_user( [ 'ID' => 1, 'display_name' => 'Maya Lin', 'first_name' => 'Maya', 'last_name' => 'Lin', 'user_email' => 'admin@localhost.com' ] );\\nwp_set_current_user( 1 );\\n\\n\\\/\\\/ FluentCart: store settings and its own shop, cart, checkout and account pages.\\n( new StoreSettings() )->save(\\n\\tarray_merge(\\n\\t\\t( new StoreSettings() )->toArray(),\\n\\t\\t[\\n\\t\\t\\t'store_name'     => 'Larch & Lane',\\n\\t\\t\\t'store_address1' => '418 Larch Street',\\n\\t\\t\\t'store_address2' => 'Suite 2',\\n\\t\\t\\t'store_city'     => 'Portland',\\n\\t\\t\\t'store_state'    => 'OR',\\n\\t\\t\\t'store_country'  => 'US',\\n\\t\\t\\t'store_postcode' => '97209',\\n\\t\\t]\\n\\t)\\n);\\nupdate_option( 'permalink_structure', '\\\/%postname%\\\/' );\\n$pages = ( new Pages() )->createPages();\\n\\n\\\/\\\/ MultiPOS configuration (free features only).\\nupdate_option( '_ddfcpos_enabled', 'yes' );\\nupdate_option( '_ddfcpos_endpoint', 'pos' );\\nupdate_option( '_ddfcpos_default_barcode', 'sku' );\\nupdate_option( '_ddfcpos_show_product_stock_enabled', 'yes' );\\nupdate_option( '_ddfcpos_login_heading_text', 'Welcome to Larch & Lane POS' );\\nupdate_option(\\n\\t'_ddfcpos_payment_method',\\n\\t[\\n\\t\\t[ 'name' => 'Cash', 'slug' => 'cash', 'permanent' => 'yes', 'status' => 'enabled' ],\\n\\t\\t[ 'name' => 'Card', 'slug' => 'card', 'permanent' => 'no', 'status' => 'enabled' ],\\n\\t]\\n);\\n( new DDFCPOS_Outlet_Helper() )->ddfcpos_save_outlet(\\n\\t[\\n\\t\\t'name'     => 'Larch & Lane Pearl District',\\n\\t\\t'mode'     => 'grocery',\\n\\t\\t'address1' => '418 Larch Street',\\n\\t\\t'address2' => 'Suite 2',\\n\\t\\t'city'     => 'Portland',\\n\\t\\t'state'    => 'OR',\\n\\t\\t'country'  => 'US',\\n\\t\\t'postcode' => '97209',\\n\\t\\t'phone'    => '503-555-0142',\\n\\t\\t'email'    => 'pearl@larchandlane.example',\\n\\t\\t'payments' => maybe_serialize( [ 'cash', 'card' ] ),\\n\\t\\t'status'   => 'enabled',\\n\\t]\\n);\\n\\n\\\/\\\/ Products: FluentCart's own importer, so every row it needs is written the way FluentCart writes it.\\n$img_base = 'https:\\\/\\\/raw.githubusercontent.com\\\/woocommerce\\\/woocommerce\\\/trunk\\\/plugins\\\/woocommerce\\\/assets\\\/images\\\/pattern-placeholders\\\/';\\n$catalog  = [\\n\\t[ 'Sage Ceramic Vase', 48, 'sun-glass-vase-green-ceramic-shelf.jpg', 'Homeware', 34 ],\\n\\t[ 'Ivory Pattern Table Lamp', 129, 'white-vase-decoration-pattern-ceramic-lamp.jpg', 'Homeware', 12 ],\\n\\t[ 'Blown Glass Carafe Set', 64, 'drinkware-liquid-tableware-dishware-bottle-fluid.jpg', 'Homeware', 26 ],\\n\\t[ 'Green Glass Pantry Jars', 42, 'green-glass-jars-on-stairs.jpg', 'Homeware', 40 ],\\n\\t[ 'Eucalyptus Bud Vase', 36, 'plant-white-leaf-flower-vase-green.jpg', 'Homeware', 52 ],\\n\\t[ 'Oak Bistro Stool', 184, 'Image-table-wood-chair-stool-interior-restaurant.jpg', 'Furniture', 9 ],\\n\\t[ 'Window Reading Chair', 420, 'table-wood-house-chair-floor-window.jpg', 'Furniture', 4 ],\\n\\t[ 'Walnut Record Player', 349, 'music-needle-turntable-black-and-white-white-photography.jpg', 'Music', 7 ],\\n\\t[ 'Midnight Sessions Vinyl', 32, 'music-black-and-white-white-photography-darkness-black.jpg', 'Music', 60 ],\\n\\t[ 'Steel Strap Watch', 240, 'watch-hand-brand-jewellery-strap-platinum.jpg', 'Accessories', 11 ],\\n\\t[ 'Vintage Typewriter Notebook', 18, 'writing-typing-keyboard-technology-white-vintage.jpg', 'Accessories', 85 ],\\n\\t[ 'Olive Branch Art Print', 55, 'tree-branch-plant-wood-leaf-flower.jpg', 'Homeware', 22 ],\\n];\\n$insert = new ReflectionMethod( DummyProductService::class, 'insert' );\\n$insert->setAccessible( true );\\n$importer = new DummyProductService();\\nforeach ( $catalog as $i => $p ) {\\n\\t$insert->invoke(\\n\\t\\t$importer,\\n\\t\\t[\\n\\t\\t\\t'categories'   => [ $p[3] ],\\n\\t\\t\\t'post_title'   => $p[0],\\n\\t\\t\\t'post_excerpt' => $p[0] . ', hand-picked for the Larch & Lane shop floor.',\\n\\t\\t\\t'post_content' => $p[0] . ' is part of this season\\\\'s collection, chosen by our buyers and kept on the shop floor in Portland.',\\n\\t\\t\\t'gallery'      => [ $img_base . $p[2] ],\\n\\t\\t\\t'detail'       => [\\n\\t\\t\\t\\t'fulfillment_type'   => 'physical',\\n\\t\\t\\t\\t'manage_stock'       => '1',\\n\\t\\t\\t\\t'variation_type'     => 'simple',\\n\\t\\t\\t\\t'stock_availability' => 'in-stock',\\n\\t\\t\\t\\t'min_price'          => (string) ( $p[1] * 100 ),\\n\\t\\t\\t\\t'max_price'          => (string) ( $p[1] * 100 ),\\n\\t\\t\\t],\\n\\t\\t\\t'variants'     => [\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t'variation_title' => $p[0],\\n\\t\\t\\t\\t\\t'sku'             => 'LL-' . ( 1001 + $i ),\\n\\t\\t\\t\\t\\t'stock_status'    => 'in-stock',\\n\\t\\t\\t\\t\\t'payment_type'    => 'onetime',\\n\\t\\t\\t\\t\\t'total_stock'     => (string) $p[4],\\n\\t\\t\\t\\t\\t'available'       => (string) $p[4],\\n\\t\\t\\t\\t\\t'item_price'      => (string) ( $p[1] * 100 ),\\n\\t\\t\\t\\t\\t'compare_price'   => '0',\\n\\t\\t\\t\\t\\t'fulfillment_type' => 'physical',\\n\\t\\t\\t\\t\\t'manage_stock'    => '1',\\n\\t\\t\\t\\t\\t'other_info'      => [ 'payment_type' => 'onetime' ],\\n\\t\\t\\t\\t],\\n\\t\\t\\t],\\n\\t\\t]\\n\\t);\\n}\\nglobal $wpdb;\\n$post_ids = [];\\nforeach ( $catalog as $p ) {\\n\\t$post_ids[] = (int) $wpdb->get_var( $wpdb->prepare( \\\"SELECT ID FROM {$wpdb->posts} WHERE post_type = 'fluent-products' AND post_title = %s ORDER BY ID DESC LIMIT 1\\\", $p[0] ) );\\n}\\n\\n\\\/\\\/ Cashiers, through the plugin's own helper.\\n$cashier_helper = new DDFCPOS_Cashier_Helper();\\n$cashiers       = [ 1 ];\\nforeach ( [ [ 'jordan', 'Jordan', 'Reyes', 'jordan.reyes@example.com' ], [ 'aisha', 'Aisha', 'Bello', 'aisha.bello@example.com' ] ] as $c ) {\\n\\t$id = $cashier_helper->ddfcpos_save_cashier( [ 'username' => $c[0], 'first_name' => $c[1], 'last_name' => $c[2], 'email' => $c[3], 'password' => 'password' ] );\\n\\tif ( ! is_wp_error( $id ) ) {\\n\\t\\t$cashiers[] = $id;\\n\\t}\\n}\\n\\n\\\/\\\/ Regular customers: a WordPress account and a FluentCart customer for each.\\n$people    = [\\n\\t[ 'Amara', 'Okafor', 'amara.okafor@example.com' ], [ 'Liam', 'Carter', 'liam.carter@example.com' ],\\n\\t[ 'Sofia', 'Romero', 'sofia.romero@example.com' ], [ 'Kenji', 'Watanabe', 'kenji.watanabe@example.com' ],\\n\\t[ 'Priya', 'Sharma', 'priya.sharma@example.com' ], [ 'Noah', 'Mueller', 'noah.mueller@example.com' ],\\n];\\n$customers = [];\\nforeach ( $people as $p ) {\\n\\t$uid         = wp_insert_user( [ 'user_login' => strtolower( $p[0] ), 'user_pass' => 'password', 'user_email' => $p[2], 'first_name' => $p[0], 'last_name' => $p[1], 'display_name' => $p[0] . ' ' . $p[1], 'role' => 'subscriber' ] );\\n\\t$customer    = Customer::query()->create( [ 'user_id' => $uid, 'email' => $p[2], 'first_name' => $p[0], 'last_name' => $p[1], 'status' => 'active', 'country' => 'US', 'state' => 'OR', 'city' => 'Portland', 'postcode' => '97209' ] );\\n\\t$customers[] = (int) $customer->id;\\n}\\n\\n\\\/\\\/ POS sales over the past weeks (busier lately), each through the plugin's own order endpoint.\\nglobal $ddfcpos_configuration;\\n$config                   = $ddfcpos_configuration;\\n$config['payment_method'] = get_option( '_ddfcpos_payment_method' );\\n$endpoint                 = new DDFCPOS_API_Create_Order( $config );\\n$table                    = $wpdb->prefix . 'ddfcpos_transactions';\\nmt_srand( 7 );\\n$sales = [];\\nfor ( $d = 55; $d >= 31; $d -= 4 ) {\\n\\t$sales[] = $d;\\n}\\n\\\/\\\/ Yesterday and today are the busiest, so the dashboard's sales by hour chart has a real shape.\\n$per_day = [ 0 => 14, 1 => 8 ];\\nfor ( $d = 27; $d >= 0; $d-- ) {\\n\\tfor ( $n = 0, $k = isset( $per_day[ $d ] ) ? $per_day[ $d ] : mt_rand( 1, 2 ); $n < $k; $n++ ) {\\n\\t\\t$sales[] = $d;\\n\\t}\\n}\\n$today_seen  = 0;\\n$yest_seen   = 0;\\n$now_hour    = (int) gmdate( 'G' );\\n$today_start = max( 0, $now_hour - 9 );\\nforeach ( $sales as $i => $days ) {\\n\\t$cashier = $cashiers[ $i % count( $cashiers ) ];\\n\\twp_set_current_user( $cashier );\\n\\t$lines = [];\\n\\t$total = 0;\\n\\tforeach ( (array) array_rand( $post_ids, mt_rand( 1, 3 ) ) as $pk ) {\\n\\t\\t$product = DDFCPOS_Product::get( $post_ids[ $pk ] );\\n\\t\\t$qty     = mt_rand( 1, 2 );\\n\\t\\t$total  += (float) $product->get_price() * $qty;\\n\\t\\t$lines[] = [ 'product_id' => $product->get_id(), 'name' => $product->get_name(), 'quantity' => $qty, 'unit_price' => $product->get_price() ];\\n\\t}\\n\\t$card   = 0 === $i % 3;\\n\\t$method = $card ? [ 'card', 'Card' ] : [ 'cash', 'Cash' ];\\n\\t$tender = $card ? $total : ceil( $total \\\/ 10 ) * 10;\\n\\t$order  = $endpoint->ddfcpos_get_data(\\n\\t\\t[\\n\\t\\t\\t'outlet_id'  => 1,\\n\\t\\t\\t'cashier_id' => $cashier,\\n\\t\\t\\t'order_data' => wp_json_encode(\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t'customer_id'     => ( $i % 5 < 3 ) ? $customers[ $i % count( $customers ) ] : 0,\\n\\t\\t\\t\\t\\t'products'        => $lines,\\n\\t\\t\\t\\t\\t'payment_methods' => [ [ 'slug' => $method[0], 'name' => $method[1], 'amount' => (string) $tender ] ],\\n\\t\\t\\t\\t\\t'table'           => '',\\n\\t\\t\\t\\t]\\n\\t\\t\\t),\\n\\t\\t]\\n\\t);\\n\\tif ( empty( $order['id'] ) ) {\\n\\t\\tcontinue;\\n\\t}\\n\\t\\\/\\\/ Back-date the sale to a believable time of day.\\n\\t\\\/\\\/ Shop hours: 9am to 6pm for earlier days.\\n\\t\\\/\\\/ Today's sales are spread over the last nine hours up to now, so the chart is full whenever the preview opens.\\n\\tif ( 0 === $days ) {\\n\\t\\t$hour = $today_start + (int) floor( $today_seen++ * ( $now_hour - $today_start + 1 ) \\\/ $per_day[0] );\\n\\t} elseif ( 1 === $days ) {\\n\\t\\t$hour = 9 + (int) floor( $yest_seen++ * 10 \\\/ $per_day[1] );\\n\\t} else {\\n\\t\\t$hour = mt_rand( 9, 18 );\\n\\t}\\n\\t$minute   = ( 0 === $days && $hour === $now_hour ) ? mt_rand( 0, (int) gmdate( 'i' ) ) : mt_rand( 0, 59 );\\n\\t$when     = gmdate( 'Y-m-d', time() - $days * DAY_IN_SECONDS ) . sprintf( ' %02d:%02d:00', $hour, $minute );\\n\\t$wpdb->update( $wpdb->prefix . 'fct_orders', [ 'created_at' => $when, 'updated_at' => $when, 'completed_at' => $when ], [ 'id' => $order['id'] ] );\\n\\t$wpdb->update( $wpdb->prefix . 'fct_order_transactions', [ 'created_at' => $when, 'updated_at' => $when ], [ 'order_id' => $order['id'] ] );\\n\\t$wpdb->update( $table, [ 'date' => $when ], [ 'order_id' => $order['id'] ] );\\n}\\nwp_set_current_user( 1 );\\n\\n\\\/\\\/ Sales reduced stock; put believable shelf levels back.\\nforeach ( $catalog as $i => $p ) {\\n\\t$wpdb->query( $wpdb->prepare( \\\"UPDATE {$wpdb->prefix}fct_product_variations SET total_stock = %d, available = %d, committed = 0, on_hold = 0, stock_status = 'in-stock' WHERE post_id = %d\\\", $p[4], $p[4], $post_ids[ $i ] ) );\\n}\\n\\n\\\/\\\/ Opening float for each register day this week.\\nfor ( $d = 6; $d >= 0; $d-- ) {\\n\\t$wpdb->insert( $table, [ 'cashier_id' => $cashiers[ $d % count( $cashiers ) ], 'outlet_id' => 1, 'order_id' => null, 'amount_in' => 200, 'amount_out' => 0, 'method' => 'opencash', 'reference' => 'Opening float', 'date' => gmdate( 'Y-m-d 09:00:00', time() - $d * DAY_IN_SECONDS ) ] );\\n}\\ndelete_transient( 'ddfcpos_dashboard_cache' );\\n\\n\\\/\\\/ ---- DevDiggers Live Preview demo kit (Apple design language on Kadence) ----\\n\\\/**\\n * Inserted by build.py where a seed says \\\/\\\/ @kit. Call, after products and users exist:\\n *   ddwc_demo_kit_style( [ 'accent' => '#0071e3', 'css' => '' ] )  Kadence + global CSS.\\n *   ddwc_demo_kit_home( [...] )                                     Home page, set as front page.\\n *   ddwc_demo_kit_menu( [ 'Shop' => url, ... ] )                    Primary menu.\\n *   ddwc_demo_kit_switcher( $views_php )                            \\\"View as\\\" switcher mu-plugin.\\n *   ddwc_demo_kit_icon( 'chat' )                                    SVG line icon (names in the list below).\\n * Widget classes for the hero showcase: dk-widget, dk-w-head, dk-w-app, dk-w-label, dk-w-title,\\n * dk-w-big, dk-w-row, dk-w-pill, dk-w-avatar, dk-w-bubble, dk-w-note.\\n *\\\/\\n\\nfunction ddwc_demo_kit_icon( $name, $size = 24 ) {\\n\\t$paths = [\\n\\t\\t'admin'    => '<rect x=\\\"3\\\" y=\\\"3\\\" width=\\\"7\\\" height=\\\"9\\\" rx=\\\"1.5\\\"\\\/><rect x=\\\"14\\\" y=\\\"3\\\" width=\\\"7\\\" height=\\\"5\\\" rx=\\\"1.5\\\"\\\/><rect x=\\\"14\\\" y=\\\"12\\\" width=\\\"7\\\" height=\\\"9\\\" rx=\\\"1.5\\\"\\\/><rect x=\\\"3\\\" y=\\\"16\\\" width=\\\"7\\\" height=\\\"5\\\" rx=\\\"1.5\\\"\\\/>',\\n\\t\\t'customer' => '<circle cx=\\\"12\\\" cy=\\\"8\\\" r=\\\"4\\\"\\\/><path d=\\\"M4 21c0-4 3.6-7 8-7s8 3 8 7\\\"\\\/>',\\n\\t\\t'store'    => '<path d=\\\"M3 9l1.5-5h15L21 9\\\"\\\/><path d=\\\"M3 9h18v2a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0z\\\"\\\/><path d=\\\"M5 13v8h14v-8\\\"\\\/><path d=\\\"M10 21v-5h4v5\\\"\\\/>',\\n\\t\\t'product'  => '<path d=\\\"M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z\\\"\\\/><circle cx=\\\"7.5\\\" cy=\\\"7.5\\\" r=\\\"1.5\\\"\\\/>',\\n\\t\\t'cart'     => '<circle cx=\\\"9\\\" cy=\\\"20\\\" r=\\\"1.5\\\"\\\/><circle cx=\\\"18\\\" cy=\\\"20\\\" r=\\\"1.5\\\"\\\/><path d=\\\"M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.5L22 7H6\\\"\\\/>',\\n\\t\\t'chat'     => '<path d=\\\"M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z\\\"\\\/>',\\n\\t\\t'wallet'   => '<path d=\\\"M3 7a2 2 0 0 1 2-2h13v4\\\"\\\/><rect x=\\\"3\\\" y=\\\"7\\\" width=\\\"18\\\" height=\\\"13\\\" rx=\\\"2\\\"\\\/><circle cx=\\\"16.5\\\" cy=\\\"13.5\\\" r=\\\"1.3\\\"\\\/>',\\n\\t\\t'star'     => '<path d=\\\"m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z\\\"\\\/>',\\n\\t\\t'register' => '<rect x=\\\"3\\\" y=\\\"4\\\" width=\\\"18\\\" height=\\\"12\\\" rx=\\\"2\\\"\\\/><path d=\\\"M7 20h10M12 16v4M7 8h4M7 11h2\\\"\\\/>',\\n\\t\\t'link'     => '<path d=\\\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1\\\"\\\/><path d=\\\"M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\\\"\\\/>',\\n\\t\\t'cube'     => '<path d=\\\"M12 2 21 7v10l-9 5-9-5V7z\\\"\\\/><path d=\\\"m3 7 9 5 9-5M12 12v10\\\"\\\/>',\\n\\t\\t'ar'       => '<path d=\\\"M3 7V4h3M21 7V4h-3M3 17v3h3M21 17v3h-3\\\"\\\/><rect x=\\\"8\\\" y=\\\"8\\\" width=\\\"8\\\" height=\\\"8\\\" rx=\\\"1.5\\\"\\\/>',\\n\\t\\t'rx'       => '<path d=\\\"M9 3h6v4H9z\\\"\\\/><path d=\\\"M7 5H5v16h14V5h-2\\\"\\\/><path d=\\\"M9 12h6M9 16h4\\\"\\\/>',\\n\\t\\t'phone'    => '<rect x=\\\"6\\\" y=\\\"2\\\" width=\\\"12\\\" height=\\\"20\\\" rx=\\\"3\\\"\\\/><path d=\\\"M11 18h2\\\"\\\/>',\\n\\t\\t'orders'   => '<path d=\\\"M4 7 12 3l8 4v10l-8 4-8-4z\\\"\\\/><path d=\\\"m4 7 8 4 8-4M12 11v10\\\"\\\/>',\\n\\t\\t'calendar' => '<rect x=\\\"3\\\" y=\\\"5\\\" width=\\\"18\\\" height=\\\"16\\\" rx=\\\"2\\\"\\\/><path d=\\\"M3 10h18M8 3v4M16 3v4\\\"\\\/>',\\n\\t\\t'clock'    => '<circle cx=\\\"12\\\" cy=\\\"13\\\" r=\\\"8\\\"\\\/><path d=\\\"M12 9v4l2.5 2.5M9 2h6\\\"\\\/>',\\n\\t\\t'mail'     => '<rect x=\\\"3\\\" y=\\\"5\\\" width=\\\"18\\\" height=\\\"14\\\" rx=\\\"2\\\"\\\/><path d=\\\"m3 7 9 6 9-6\\\"\\\/>',\\n\\t\\t'chart'    => '<path d=\\\"M3 3v18h18\\\"\\\/><path d=\\\"m7 15 4-4 3 3 5-6\\\"\\\/>',\\n\\t\\t'card'     => '<rect x=\\\"2\\\" y=\\\"5\\\" width=\\\"20\\\" height=\\\"14\\\" rx=\\\"2\\\"\\\/><path d=\\\"M2 10h20M6 15h4\\\"\\\/>',\\n\\t\\t'scan'     => '<path d=\\\"M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M7 8v8M11 8v8M14 8v8M17 8v8\\\"\\\/>',\\n\\t\\t'receipt'  => '<path d=\\\"M5 3h14v18l-3-2-2 2-2-2-2 2-2-2-3 2z\\\"\\\/><path d=\\\"M9 8h6M9 12h6\\\"\\\/>',\\n\\t\\t'heart'    => '<path d=\\\"M12 21s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.6-7 10-7 10z\\\"\\\/>',\\n\\t\\t'upload'   => '<path d=\\\"M12 16V4M7 9l5-5 5 5\\\"\\\/><path d=\\\"M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3\\\"\\\/>',\\n\\t\\t'lock'     => '<rect x=\\\"4\\\" y=\\\"11\\\" width=\\\"16\\\" height=\\\"10\\\" rx=\\\"2\\\"\\\/><path d=\\\"M8 11V7a4 4 0 0 1 8 0v4\\\"\\\/>',\\n\\t\\t'shield'   => '<path d=\\\"M12 3 4 6v6c0 4.5 3.4 8 8 9 4.6-1 8-4.5 8-9V6z\\\"\\\/><path d=\\\"m8.5 12 2.5 2.5 4.5-5\\\"\\\/>',\\n\\t\\t'wifi'     => '<path d=\\\"M2 8.8a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0\\\"\\\/><circle cx=\\\"12\\\" cy=\\\"19.5\\\" r=\\\"1\\\"\\\/>',\\n\\t\\t'bell'     => '<path d=\\\"M6 8a6 6 0 0 1 12 0c0 7 3 8 3 8H3s3-1 3-8\\\"\\\/><path d=\\\"M10.3 21a1.9 1.9 0 0 0 3.4 0\\\"\\\/>',\\n\\t\\t'gift'     => '<rect x=\\\"3\\\" y=\\\"8\\\" width=\\\"18\\\" height=\\\"13\\\" rx=\\\"2\\\"\\\/><path d=\\\"M3 12h18M12 8v13M12 8C10 5 7 5 7 7s3 1 5 1c2 0 5 1 5-1s-3-2-5 1\\\"\\\/>',\\n\\t\\t'bolt'     => '<path d=\\\"M13 2 4 14h7l-1 8 9-12h-7z\\\"\\\/>',\\n\\t\\t'ask'      => '<circle cx=\\\"12\\\" cy=\\\"12\\\" r=\\\"9\\\"\\\/><path d=\\\"M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7M12 17h.01\\\"\\\/>',\\n\\t\\t'check'    => '<path d=\\\"m5 12 5 5 9-10\\\"\\\/>',\\n\\t\\t'pay'      => '<rect x=\\\"3\\\" y=\\\"6\\\" width=\\\"18\\\" height=\\\"13\\\" rx=\\\"2\\\"\\\/><path d=\\\"M3 10h18M7 15h3\\\"\\\/>',\\n\\t];\\n\\treturn '<svg viewBox=\\\"0 0 24 24\\\" width=\\\"' . (int) $size . '\\\" height=\\\"' . (int) $size . '\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"1.7\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" aria-hidden=\\\"true\\\">' . ( $paths[ $name ] ?? $paths['store'] ) . '<\\\/svg>';\\n}\\n\\n\\\/** Product photo URL (for hero_img and tile img). *\\\/\\nfunction ddwc_demo_kit_img( $product_id, $size = 'large' ) {\\n\\treturn wp_get_attachment_image_url( get_post_thumbnail_id( $product_id ), $size );\\n}\\n\\n\\\/**\\n * Brand the store: Apple's neutral system (SF Pro via the system font stack, #1d1d1f \\\/ #6e6e73 \\\/ #f5f5f7)\\n * with one accent colour per brand. Global CSS goes in an mu-plugin so the seed may still use Additional CSS.\\n *\\n * @param array $a accent (hex), css (extra CSS appended after the kit CSS).\\n *\\\/\\nfunction ddwc_demo_kit_style( $a ) {\\n\\t$a      = array_merge( [ 'accent' => '#0071e3', 'css' => '' ], $a );\\n\\t$accent = $a['accent'];\\n\\t$rgb    = sscanf( $accent, '#%02x%02x%02x' );\\n\\t$dark   = vsprintf( '#%02x%02x%02x', array_map( function ( $c ) { return (int) round( $c * 0.84 ); }, $rgb ) );\\n\\t$tint   = vsprintf( 'rgba(%d,%d,%d,.1)', $rgb );\\n\\t$stack  = '-apple-system,BlinkMacSystemFont,\\\"SF Pro Text\\\",\\\"SF Pro Display\\\",\\\"Helvetica Neue\\\",Helvetica,Arial,sans-serif';\\n\\n\\t$colors  = [ $accent, $dark, '#1d1d1f', '#1d1d1f', '#6e6e73', '#86868b', '#d2d2d7', '#f5f5f7', '#ffffff', '#ffffff', '#248a3d', '#0071e3', '#d70015', '#bf4800', '#b25e09' ];\\n\\t$palette = [];\\n\\tforeach ( $colors as $i => $color ) {\\n\\t\\t$palette[] = [ 'color' => $color, 'slug' => 'palette' . ( $i + 1 ), 'name' => 'Palette Color ' . ( $i + 1 ) ];\\n\\t}\\n\\tupdate_option( 'kadence_global_palette', wp_json_encode( [ 'palette' => $palette, 'second-palette' => $palette, 'third-palette' => $palette, 'active' => 'palette' ] ) );\\n\\n\\tset_theme_mod( 'base_font', [ 'family' => $stack, 'google' => false, 'weight' => '400', 'variant' => 'regular', 'size' => [ 'desktop' => 17 ], 'lineHeight' => [ 'desktop' => 1.47 ], 'color' => 'palette4' ] );\\n\\tset_theme_mod( 'heading_font', [ 'family' => $stack, 'google' => false, 'weight' => '600', 'variant' => [ '600' ] ] );\\n\\tforeach ( [ 'h1_font' => [ 48, 1.08 ], 'h2_font' => [ 40, 1.1 ], 'h3_font' => [ 28, 1.14 ], 'h4_font' => [ 21, 1.2 ], 'h5_font' => [ 17, 1.3 ], 'h6_font' => [ 14, 1.4 ] ] as $mod => $size ) {\\n\\t\\tset_theme_mod( $mod, [ 'size' => [ 'desktop' => $size[0] ], 'lineHeight' => [ 'desktop' => $size[1] ], 'family' => 'inherit', 'google' => false, 'weight' => '600', 'variant' => '600', 'color' => 'palette3' ] );\\n\\t}\\n\\tset_theme_mod( 'load_fonts_local', false );\\n\\n\\tset_theme_mod( 'site_background', [ 'desktop' => [ 'color' => 'palette9' ] ] );\\n\\tset_theme_mod( 'content_background', [ 'desktop' => [ 'color' => 'palette9' ] ] );\\n\\tset_theme_mod( 'page_content_style', 'unboxed' );\\n\\tset_theme_mod( 'product_archive_content_style', 'unboxed' );\\n\\tset_theme_mod( 'product_content_style', 'unboxed' );\\n\\tset_theme_mod( 'product_archive_columns', '4' );\\n\\tset_theme_mod( 'buttons_border_radius', [ 'size' => [ 980, 980, 980, 980 ], 'unit' => 'px', 'locked' => true ] );\\n\\tset_theme_mod( 'buttons_typography', [ 'size' => [ 'desktop' => 15 ], 'family' => 'inherit', 'weight' => '400', 'variant' => 'regular', 'letterSpacing' => [ 'desktop' => -0.01 ], 'letterType' => 'em' ] );\\n\\tset_theme_mod( 'buttons_padding', [ 'size' => [ 'desktop' => [ 11, 22, 11, 22 ] ], 'unit' => [ 'desktop' => 'px' ], 'locked' => [ 'desktop' => false ] ] );\\n\\n\\t\\\/\\\/ Header: one slim frosted bar, logo left, menu and bag right.\\n\\tset_theme_mod(\\n\\t\\t'header_desktop_items',\\n\\t\\t[\\n\\t\\t\\t'top'    => [ 'top_left' => [], 'top_left_center' => [], 'top_center' => [], 'top_right_center' => [], 'top_right' => [] ],\\n\\t\\t\\t'main'   => [ 'main_left' => [ 'logo' ], 'main_left_center' => [], 'main_center' => [], 'main_right_center' => [], 'main_right' => [ 'navigation', 'cart' ] ],\\n\\t\\t\\t'bottom' => [ 'bottom_left' => [], 'bottom_left_center' => [], 'bottom_center' => [], 'bottom_right_center' => [], 'bottom_right' => [] ],\\n\\t\\t]\\n\\t);\\n\\tset_theme_mod( 'header_sticky', 'main' );\\n\\tset_theme_mod( 'header_main_height', [ 'size' => [ 'mobile' => 52, 'tablet' => 52, 'desktop' => 52 ], 'unit' => [ 'mobile' => 'px', 'tablet' => 'px', 'desktop' => 'px' ] ] );\\n\\tset_theme_mod( 'header_main_background', [ 'desktop' => [ 'color' => 'rgba(255,255,255,0.8)' ] ] );\\n\\tset_theme_mod( 'header_sticky_background', [ 'desktop' => [ 'color' => 'rgba(255,255,255,0.8)' ] ] );\\n\\tset_theme_mod( 'header_main_bottom_border', [ 'desktop' => [ 'width' => 1, 'unit' => 'px', 'style' => 'solid', 'color' => 'rgba(0,0,0,0.08)' ] ] );\\n\\tset_theme_mod( 'brand_typography', [ 'size' => [ 'desktop' => 19 ], 'family' => 'inherit', 'google' => false, 'weight' => '600', 'variant' => '600', 'letterSpacing' => [ 'desktop' => -0.02 ], 'letterType' => 'em', 'color' => 'palette3' ] );\\n\\tset_theme_mod( 'primary_navigation_typography', [ 'size' => [ 'desktop' => 13 ], 'family' => 'inherit', 'weight' => '400', 'variant' => 'regular' ] );\\n\\tset_theme_mod( 'primary_navigation_color', [ 'color' => 'palette4', 'hover' => 'palette1', 'active' => 'palette3' ] );\\n\\n\\tset_theme_mod( 'page_title_layout', 'above' );\\n\\tset_theme_mod( 'page_title_background', [ 'desktop' => [ 'color' => 'palette8' ] ] );\\n\\tset_theme_mod( 'product_archive_title_background', [ 'desktop' => [ 'color' => 'palette8' ] ] );\\n\\tset_theme_mod( 'footer_html_content', '{copyright} {year} {site-title}. A DevDiggers live demo store.' );\\n\\tset_theme_mod( 'footer_bottom_background', [ 'desktop' => [ 'color' => 'palette8' ] ] );\\n\\n\\t$css = <<<'DDWCCSS'\\n:root{--dk-accent:__A__;--dk-accent-dark:__D__;--dk-tint:__T__;--dk-ink:#1d1d1f;--dk-gray:#6e6e73;--dk-line:#d2d2d7;--dk-fog:#f5f5f7;--dk-ease:cubic-bezier(.25,.1,.25,1)}\\nbody{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.022em;color:var(--dk-ink)}\\nh1,h2,h3,h4{letter-spacing:-.015em}\\na{color:var(--dk-accent)}\\n#masthead .site-main-header-wrap,#masthead .item-is-fixed{-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}\\n.main-navigation .primary-menu-container>ul>li.menu-item>a{padding-left:.9em;padding-right:.9em;opacity:.85}\\n.main-navigation .primary-menu-container>ul>li.menu-item>a:hover{opacity:1}\\n.button,button.button,.wp-element-button,input[type=submit],.woocommerce a.button,.woocommerce button.button{background:var(--dk-accent);color:#fff;border:0;box-shadow:none!important;transition:background .2s var(--dk-ease)}\\n.button:hover,.wp-element-button:hover,input[type=submit]:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--dk-accent-dark);color:#fff}\\ninput[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],textarea,select{border:1px solid var(--dk-line)!important;border-radius:12px!important;padding:12px 14px!important;background:#fff!important;font-size:17px;transition:border-color .2s,box-shadow .2s}\\ninput:focus,textarea:focus,select:focus{border-color:var(--dk-accent)!important;box-shadow:0 0 0 4px var(--dk-tint)!important;outline:0}\\n.entry-hero .entry-header,.page-title{padding-top:56px;padding-bottom:40px}\\n.entry-hero h1,.page-title h1,.woocommerce-products-header__title{font-size:48px;letter-spacing:-.02em}\\n.woocommerce-store-notice{display:none!important}\\n.woocommerce-message,.woocommerce-info,.woocommerce-error{border:0!important;border-radius:14px;background:var(--dk-fog)!important;color:var(--dk-ink)}\\n\\\/* Product cards, Apple Store style. *\\\/\\nul.products li.product{background:#fff;border-radius:18px;padding:0 0 22px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.08);transition:box-shadow .3s var(--dk-ease),transform .3s var(--dk-ease)}\\nul.products li.product:hover{box-shadow:0 10px 34px rgba(0,0,0,.14);transform:translateY(-2px)}\\nul.products li.product img{border-radius:0!important;aspect-ratio:1\\\/1;object-fit:cover;margin:0!important}\\nul.products li.product .woocommerce-loop-product__title,ul.products li.product .product-details,ul.products li.product .entry-content-wrap{padding-left:20px;padding-right:20px}\\nul.products li.product .woocommerce-loop-product__title{font-size:17px;font-weight:600;margin-top:16px}\\nul.products li.product .price{color:var(--dk-gray);font-size:15px;font-weight:400}\\nul.products li.product .button{font-size:14px;padding:8px 16px}\\nul.products li.product .onsale{border-radius:980px;background:var(--dk-accent);font-weight:600;font-size:12px}\\n.single-product div.product .product_title{font-size:40px;letter-spacing:-.02em}\\n.single-product div.product .price{font-size:21px;color:var(--dk-ink)}\\n.single-product div.product .woocommerce-product-gallery img{border-radius:24px}\\n\\\/* My account, as a settings sidebar. *\\\/\\n.woocommerce-MyAccount-navigation ul{background:var(--dk-fog);border-radius:18px;padding:8px!important}\\n.woocommerce-MyAccount-navigation ul li{border:0!important}\\n.woocommerce-MyAccount-navigation ul li a{display:block;padding:10px 14px!important;border-radius:10px;color:var(--dk-ink)!important;font-size:15px}\\n.woocommerce-MyAccount-navigation ul li.is-active a{background:#fff;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}\\ntable.shop_table{border-radius:18px!important;border-color:var(--dk-line)!important;overflow:hidden}\\n.site-footer{font-size:12px;color:var(--dk-gray)}\\n\\\/* Home page building blocks. *\\\/\\n.dk-wrap{max-width:1180px;margin:0 auto;padding-left:22px;padding-right:22px}\\n.dk-hero{text-align:center;padding-top:72px}\\n.dk-eyebrow{display:inline-block;color:var(--dk-accent);font-size:17px;font-weight:600;letter-spacing:-.01em;margin-bottom:10px}\\n.dk-hero h1{font-size:clamp(44px,7vw,80px);line-height:1.05;letter-spacing:-.025em;margin:0 auto 14px!important;max-width:16ch;text-wrap:balance}\\n.dk-lead{font-size:clamp(19px,2.2vw,24px);line-height:1.38;color:var(--dk-gray);max-width:36em;margin:0 auto 28px!important;text-wrap:pretty;letter-spacing:-.015em}\\n.dk-ctas{display:flex;gap:28px;justify-content:center;align-items:center;flex-wrap:wrap}\\n.dk-btn{display:inline-flex;align-items:center;padding:12px 24px;border-radius:980px;background:var(--dk-accent);color:#fff!important;font-size:17px;text-decoration:none!important;transition:background .2s var(--dk-ease)}\\n.dk-btn:hover{background:var(--dk-accent-dark)}\\n.dk-btn.is-light{background:#fff;color:var(--dk-ink)!important}.dk-btn.is-light:hover{background:#e8e8ed}\\n.dk-more{font-size:17px;color:var(--dk-accent)!important;text-decoration:none!important}\\n.dk-more:after{content:\\\"\\\\203A\\\";display:inline-block;margin-left:6px;font-size:1.2em;line-height:0;transition:transform .2s var(--dk-ease)}\\n.dk-more:hover{text-decoration:underline!important}.dk-more:hover:after{transform:translateX(3px)}\\n.dk-stage{position:relative;margin:56px auto 0;max-width:1180px;border-radius:32px;overflow:hidden;background:var(--dk-fog);aspect-ratio:16\\\/9}\\n.dk-stage>img{width:100%;height:100%;object-fit:cover;display:block}\\n.dk-stage.is-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#fff}\\n.dk-stage.is-trio>img{min-width:0}\\n.dk-stage .dk-widget{position:absolute;right:32px;bottom:32px}\\n.dk-widget{width:330px;max-width:calc(100% - 32px);text-align:left;padding:18px;border-radius:22px;background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 22px 60px rgba(0,0,0,.18),inset 0 0 0 .5px rgba(255,255,255,.6);color:var(--dk-ink);font-size:15px;line-height:1.35}\\n.dk-w-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}\\n.dk-w-app{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--dk-accent);color:#fff}\\n.dk-w-app svg{width:19px;height:19px}\\n.dk-w-label{display:block;font-size:12px;font-weight:600;color:var(--dk-gray);letter-spacing:0;text-transform:uppercase}\\n.dk-w-title{display:block;font-size:16px;font-weight:600;letter-spacing:-.02em}\\n.dk-w-big{display:block;font-size:40px;font-weight:600;letter-spacing:-.03em;line-height:1.1;margin:4px 0}\\n.dk-w-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:.5px solid rgba(0,0,0,.12);font-size:14px}\\n.dk-w-row span:last-child{color:var(--dk-gray)}\\n.dk-w-row.is-total{font-weight:600}.dk-w-row.is-total span:last-child{color:var(--dk-ink)}\\n.dk-w-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:980px;background:var(--dk-tint);color:var(--dk-accent);font-size:13px;font-weight:600}\\n.dk-w-avatar{flex:none;width:34px;height:34px;border-radius:50%;object-fit:cover}\\n.dk-w-bubble{padding:10px 14px;border-radius:18px 18px 18px 6px;background:#e9e9eb;font-size:15px;margin-top:6px}\\n.dk-w-bubble.is-me{border-radius:18px 18px 6px 18px;background:var(--dk-accent);color:#fff;margin-left:30px}\\n.dk-w-note{display:block;font-size:12px;color:var(--dk-gray);margin-top:10px}\\n.dk-cd{display:flex;gap:8px;margin:10px 0 4px}.dk-cd span{flex:1;text-align:center;padding:10px 0 8px;border-radius:12px;background:var(--dk-ink);color:#fff;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em}\\n.dk-cd small{display:block;font-size:10px;font-weight:500;color:#a1a1a6;letter-spacing:.04em;text-transform:uppercase;margin-top:3px}\\n.dk-band{background:var(--dk-fog);margin-top:96px;padding:88px 0}\\n.dk-title{text-align:center!important;font-size:clamp(34px,4.6vw,56px);letter-spacing:-.025em;line-height:1.08;margin:0 auto 48px!important;max-width:20ch;text-wrap:balance}\\n.dk-shelf-title{font-size:clamp(28px,3.4vw,40px);letter-spacing:-.02em;line-height:1.1;margin:0 0 28px}\\n.dk-shelf-title span{color:var(--dk-gray)}\\n.dk-features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}\\n.dk-feature{background:#fff;border-radius:28px;padding:36px 32px 40px}\\n.dk-feature svg{color:var(--dk-accent);width:36px;height:36px}\\n.dk-feature h3{font-size:24px;letter-spacing:-.02em;margin:18px 0 8px}\\n.dk-feature p{margin:0;font-size:17px;color:var(--dk-gray)}\\n.dk-shelf{padding-top:96px}\\n.dk-shelf-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}\\n.dk-tile{margin:96px auto 104px;display:grid;grid-template-columns:1fr 1fr;align-items:center;border-radius:32px;overflow:hidden;background:#000;color:#f5f5f7}\\n.dk-tile-copy{padding:64px}\\n.dk-tile h2{color:#f5f5f7;font-size:clamp(32px,3.8vw,48px);letter-spacing:-.025em;line-height:1.08;margin:0 0 16px}\\n.dk-tile p{color:#a1a1a6;font-size:19px;line-height:1.42}\\n.dk-tile .dk-more{color:#2997ff!important}\\n.dk-tile img{width:100%;height:100%;min-height:440px;max-height:600px;object-fit:cover;display:block}\\n.dk-stats{display:flex;gap:36px;margin:28px 0}.dk-stats b{display:block;font-size:32px;font-weight:600;letter-spacing:-.02em;color:#f5f5f7}.dk-stats span{font-size:14px;color:#a1a1a6}\\n.dk-list{list-style:none;padding:0;margin:24px 0}.dk-list li{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:.5px solid rgba(255,255,255,.16);color:#f5f5f7;font-size:17px}\\n.dk-list li b{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#f5f5f7;color:#000;font-size:13px}\\n@media(max-width:900px){.dk-features,.dk-tile{grid-template-columns:1fr}.dk-stage{aspect-ratio:4\\\/5;border-radius:24px}.dk-stage .dk-widget{left:16px;right:16px;bottom:16px;width:auto}.dk-stage.is-trio{grid-template-columns:1fr 1fr}.dk-stage.is-trio>img:nth-child(3){display:none}.dk-tile-copy{padding:40px 28px}.dk-tile img{min-height:300px}.dk-band{padding:64px 0}}\\n@media(prefers-reduced-motion:reduce){*{transition:none!important}}\\nDDWCCSS;\\n\\t$css  = str_replace( [ '__A__', '__D__', '__T__' ], [ $accent, $dark, $tint ], $css ) . $a['css'];\\n\\t$code = \\\"<?php\\\\n\\\/\\\/ Live Preview only: the demo kit's global stylesheet.\\\\nadd_action( 'wp_head', function () { echo '<style id=\\\\\\\"ddwc-demo-kit\\\\\\\">' . \\\" . var_export( $css, true ) . \\\" . '<\\\/style>'; }, 99 );\\\\n\\\";\\n\\twp_mkdir_p( WPMU_PLUGIN_DIR );\\n\\tfile_put_contents( WPMU_PLUGIN_DIR . '\\\/demo-style.php', $code );\\n}\\n\\n\\\/**\\n * Build the home page and make it the front page.\\n *\\n * @param array $h eyebrow, title, lead, ctas [ [label, url], [label, url] ] (first is the filled button),\\n *                 hero_img (url, or three urls for a photo trio), hero_alt, widget (HTML on the hero stage), after_ctas (HTML, e.g. a shortcode),\\n *                 features_title, features [ [title, text, icon] ], shelf_title, shelf_sub, shelf (shortcode),\\n *                 shelf_more [label, url], tile [title, text, cta [label, url], img, alt, extra HTML], script.\\n * @return int Page ID.\\n *\\\/\\nfunction ddwc_demo_kit_home( $h ) {\\n\\t$ctas = '';\\n\\tforeach ( $h['ctas'] as $i => $cta ) {\\n\\t\\t$ctas .= '<a class=\\\"' . ( $i ? 'dk-more' : 'dk-btn' ) . '\\\" href=\\\"' . esc_url( $cta[1] ) . '\\\">' . esc_html( $cta[0] ) . '<\\\/a>';\\n\\t}\\n\\t$features = '';\\n\\tforeach ( $h['features'] as $f ) {\\n\\t\\t$features .= '<div class=\\\"dk-feature\\\">' . ddwc_demo_kit_icon( $f[2], 36 ) . '<h3>' . $f[0] . '<\\\/h3><p>' . $f[1] . '<\\\/p><\\\/div>';\\n\\t}\\n\\t\\\/\\\/ One wide photo, or three product photos side by side (works with portrait shots).\\n\\t$trio = is_array( $h['hero_img'] );\\n\\t$imgs = '';\\n\\tforeach ( (array) $h['hero_img'] as $src ) {\\n\\t\\t$imgs .= '<img src=\\\"' . esc_url( $src ) . '\\\" alt=\\\"' . esc_attr( $h['hero_alt'] ) . '\\\"\\\/>';\\n\\t}\\n\\t$t    = $h['tile'];\\n\\t$more = $h['shelf_more'] ?? [ 'View all products', wc_get_page_permalink( 'shop' ) ];\\n\\t$html = '<!-- wp:html --><section class=\\\"dk-hero dk-wrap\\\"><span class=\\\"dk-eyebrow\\\">' . $h['eyebrow'] . '<\\\/span><h1>' . $h['title'] . '<\\\/h1><p class=\\\"dk-lead\\\">' . $h['lead'] . '<\\\/p><div class=\\\"dk-ctas\\\">' . $ctas . ( $h['after_ctas'] ?? '' ) . '<\\\/div>'\\n\\t\\t. '<div class=\\\"dk-stage' . ( $trio ? ' is-trio' : '' ) . '\\\">' . $imgs . $h['widget'] . '<\\\/div><\\\/section><!-- \\\/wp:html -->'\\n\\t\\t. '<!-- wp:html --><section class=\\\"dk-band\\\"><div class=\\\"dk-wrap\\\"><h2 class=\\\"dk-title\\\">' . $h['features_title'] . '<\\\/h2><div class=\\\"dk-features\\\">' . $features . '<\\\/div><\\\/div><\\\/section><!-- \\\/wp:html -->'\\n\\t\\t. '<!-- wp:html --><section class=\\\"dk-shelf dk-wrap\\\"><div class=\\\"dk-shelf-head\\\"><h2 class=\\\"dk-shelf-title\\\">' . $h['shelf_title'] . ' <span>' . $h['shelf_sub'] . '<\\\/span><\\\/h2><a class=\\\"dk-more\\\" href=\\\"' . esc_url( $more[1] ) . '\\\">' . esc_html( $more[0] ) . '<\\\/a><\\\/div><!-- \\\/wp:html -->'\\n\\t\\t. '<!-- wp:shortcode -->' . $h['shelf'] . '<!-- \\\/wp:shortcode -->'\\n\\t\\t. '<!-- wp:html --><\\\/section><!-- \\\/wp:html -->'\\n\\t\\t. '<!-- wp:html --><section class=\\\"dk-wrap\\\"><div class=\\\"dk-tile\\\"><div class=\\\"dk-tile-copy\\\"><h2>' . $t['title'] . '<\\\/h2><p>' . $t['text'] . '<\\\/p>' . ( $t['extra'] ?? '' ) . '<p><a class=\\\"dk-btn is-light\\\" href=\\\"' . esc_url( $t['cta'][1] ) . '\\\">' . esc_html( $t['cta'][0] ) . '<\\\/a><\\\/p><\\\/div><img src=\\\"' . esc_url( $t['img'] ) . '\\\" alt=\\\"' . esc_attr( $t['alt'] ) . '\\\"\\\/><\\\/div><\\\/section>' . ( $h['script'] ?? '' ) . '<!-- \\\/wp:html -->';\\n\\n\\t$id = wp_insert_post( [ 'post_type' => 'page', 'post_status' => 'publish', 'post_title' => 'Home', 'post_content' => $html ] );\\n\\tforeach ( [ '_kad_post_title' => 'hide', '_kad_post_layout' => 'fullwidth', '_kad_post_content_style' => 'unboxed', '_kad_post_vertical_padding' => 'hide', '_kad_post_feature' => 'hide' ] as $k => $v ) {\\n\\t\\tupdate_post_meta( $id, $k, $v );\\n\\t}\\n\\tupdate_option( 'show_on_front', 'page' );\\n\\tupdate_option( 'page_on_front', $id );\\n\\twp_delete_post( 2, true ); \\\/\\\/ Sample Page.\\n\\twp_delete_post( 1, true ); \\\/\\\/ Hello world.\\n\\tupdate_option( 'permalink_structure', '\\\/%postname%\\\/' );\\n\\tflush_rewrite_rules();\\n\\treturn $id;\\n}\\n\\n\\\/**\\n * Primary menu.\\n *\\n * @param array $items label => url.\\n *\\\/\\nfunction ddwc_demo_kit_menu( $items ) {\\n\\t$menu_id = wp_create_nav_menu( 'Main menu' );\\n\\tif ( is_wp_error( $menu_id ) ) {\\n\\t\\t$menu_id = wp_get_nav_menu_object( 'Main menu' )->term_id;\\n\\t}\\n\\tforeach ( $items as $label => $url ) {\\n\\t\\twp_update_nav_menu_item( $menu_id, 0, [ 'menu-item-title' => $label, 'menu-item-url' => $url, 'menu-item-status' => 'publish', 'menu-item-type' => 'custom' ] );\\n\\t}\\n\\t$locations            = get_theme_mod( 'nav_menu_locations', [] );\\n\\t$locations['primary'] = $menu_id;\\n\\t$locations['mobile']  = $menu_id;\\n\\tset_theme_mod( 'nav_menu_locations', $locations );\\n}\\n\\n\\\/**\\n * Write the \\\"View as\\\" switcher mu-plugin.\\n *\\n * Pass a PHP expression string that returns the views array; each view:\\n *   [ 'label' => 'Store admin', 'hint' => 'Dashboard & settings', 'icon' => 'admin', 'user' => 'admin', 'url' => admin_url(...) ]\\n * user '' logs the visitor out. icon: any ddwc_demo_kit_icon() name.\\n *\\n * @param string $views_php PHP code (no <?php) that returns the array.\\n *\\\/\\nfunction ddwc_demo_kit_switcher( $views_php ) {\\n\\t$icons = [];\\n\\tforeach ( [ 'admin', 'customer', 'store', 'product', 'cart', 'chat', 'wallet', 'star', 'register', 'link', 'cube', 'rx', 'phone', 'orders', 'calendar' ] as $n ) {\\n\\t\\t$icons[ $n ] = ddwc_demo_kit_icon( $n, 18 );\\n\\t}\\n\\t$code = <<<'DDWCKIT'\\n<?php\\n\\\/**\\n * Live Preview only: \\\"View as\\\" switcher so visitors can jump between the store owner's\\n * admin and the shopper's side without any password.\\n *\\\/\\nfunction ddwc_demo_switcher_views() {\\n\\t__VIEWS__\\n}\\n\\nadd_action(\\n\\t'init',\\n\\tfunction () {\\n\\t\\tif ( ! isset( $_GET['ddwc_demo_view'] ) ) { \\\/\\\/ phpcs:ignore WordPress.Security.NonceVerification -- demo site only.\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\t$views = ddwc_demo_switcher_views();\\n\\t\\t$view  = $views[ absint( $_GET['ddwc_demo_view'] ) ] ?? null; \\\/\\\/ phpcs:ignore WordPress.Security.NonceVerification\\n\\t\\tif ( ! $view ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\twp_clear_auth_cookie();\\n\\t\\twp_set_current_user( 0 );\\n\\t\\t$user = $view['user'] ? get_user_by( 'login', $view['user'] ) : null;\\n\\t\\tif ( $user ) {\\n\\t\\t\\twp_set_current_user( $user->ID );\\n\\t\\t\\twp_set_auth_cookie( $user->ID, true );\\n\\t\\t}\\n\\t\\twp_safe_redirect( $view['url'] );\\n\\t\\texit;\\n\\t},\\n\\t1\\n);\\n\\n\\\/\\\/ Live Preview: keep the storefront clean, the admin bar only appears in wp-admin.\\nadd_filter( 'show_admin_bar', '__return_false' );\\n\\nfunction ddwc_demo_switcher_render() {\\n\\t$icons   = __ICONS__;\\n\\t$views   = ddwc_demo_switcher_views();\\n\\t$current = wp_get_current_user();\\n\\t$here    = untrailingslashit( set_url_scheme( 'http:\\\/\\\/' . ( $_SERVER['HTTP_HOST'] ?? '' ) . ( $_SERVER['REQUEST_URI'] ?? '' ) ) ); \\\/\\\/ phpcs:ignore\\n\\t$items   = '';\\n\\t$label   = '';\\n\\tforeach ( $views as $i => $view ) {\\n\\t\\t$active = untrailingslashit( set_url_scheme( $view['url'] ) ) === $here && ( ! $view['user'] || ( $current->exists() && $current->user_login === $view['user'] ) );\\n\\t\\tif ( $active ) {\\n\\t\\t\\t$label = $view['label'];\\n\\t\\t}\\n\\t\\t$items .= sprintf(\\n\\t\\t\\t'<a href=\\\"%s\\\" class=\\\"ddwc-ds-item%s\\\"><span class=\\\"ddwc-ds-ico\\\">%s<\\\/span><span class=\\\"ddwc-ds-text\\\"><strong>%s<\\\/strong><small>%s<\\\/small><\\\/span><\\\/a>',\\n\\t\\t\\tesc_url( add_query_arg( 'ddwc_demo_view', $i, home_url( '\\\/' ) ) ),\\n\\t\\t\\t$active ? ' is-active' : '',\\n\\t\\t\\t$icons[ $view['icon'] ?? 'store' ] ?? $icons['store'],\\n\\t\\t\\tesc_html( $view['label'] ),\\n\\t\\t\\tesc_html( $view['hint'] ?? '' )\\n\\t\\t);\\n\\t}\\n\\t?>\\n\\t<div id=\\\"ddwc-demo-switcher\\\">\\n\\t\\t<div class=\\\"ddwc-ds-panel\\\" role=\\\"menu\\\">\\n\\t\\t\\t<div class=\\\"ddwc-ds-head\\\">Explore this live demo<\\\/div>\\n\\t\\t\\t<?php echo $items; \\\/\\\/ phpcs:ignore WordPress.Security.EscapeOutput -- escaped above. ?>\\n\\t\\t<\\\/div>\\n\\t\\t<button type=\\\"button\\\" class=\\\"ddwc-ds-toggle\\\" aria-expanded=\\\"false\\\">\\n\\t\\t\\t<span class=\\\"ddwc-ds-dot\\\"><\\\/span>\\n\\t\\t\\t<span>View as<?php echo $label ? ' <b>' . esc_html( $label ) . '<\\\/b>' : ''; ?><\\\/span>\\n\\t\\t\\t<svg viewBox=\\\"0 0 24 24\\\" width=\\\"14\\\" height=\\\"14\\\" fill=\\\"none\\\" stroke=\\\"currentColor\\\" stroke-width=\\\"2.2\\\" stroke-linecap=\\\"round\\\" aria-hidden=\\\"true\\\"><path d=\\\"m6 15 6-6 6 6\\\"\\\/><\\\/svg>\\n\\t\\t<\\\/button>\\n\\t<\\\/div>\\n\\t<style>\\n\\t\\t#ddwc-demo-switcher{position:fixed;left:20px;bottom:20px;z-index:999999;font:400 14px\\\/1.3 -apple-system,BlinkMacSystemFont,\\\"SF Pro Text\\\",\\\"Helvetica Neue\\\",Arial,sans-serif;letter-spacing:-.01em;color:#1d1d1f;-webkit-font-smoothing:antialiased}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-toggle{display:flex;align-items:center;gap:9px;padding:10px 16px;border:0;border-radius:980px;background:rgba(29,29,31,.82);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);color:#f5f5f7;font:inherit;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.24)}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-toggle b{font-weight:600;color:#fff}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-toggle svg{transition:transform .25s cubic-bezier(.25,.1,.25,1);opacity:.7}\\n\\t\\t#ddwc-demo-switcher.is-open .ddwc-ds-toggle svg{transform:rotate(180deg)}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-dot{width:7px;height:7px;border-radius:50%;background:#30d158;box-shadow:0 0 0 3px rgba(48,209,88,.28)}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-panel{position:absolute;left:0;bottom:calc(100% + 10px);width:300px;max-width:calc(100vw - 40px);padding:6px;border-radius:18px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 24px 70px rgba(0,0,0,.22),inset 0 0 0 .5px rgba(0,0,0,.08);opacity:0;visibility:hidden;transform:translateY(6px) scale(.98);transform-origin:bottom left;transition:opacity .2s,transform .25s cubic-bezier(.25,.1,.25,1),visibility .2s}\\n\\t\\t#ddwc-demo-switcher.is-open .ddwc-ds-panel{opacity:1;visibility:visible;transform:none}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-head{padding:10px 12px 8px;font-size:12px;font-weight:600;color:#6e6e73}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-item{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;color:#1d1d1f;text-decoration:none}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-item:hover{background:rgba(0,0,0,.05)}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-item.is-active{background:rgba(0,113,227,.1)}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-ico{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e8e8ed;color:#1d1d1f}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-item.is-active .ddwc-ds-ico{background:#0071e3;color:#fff}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-text{display:flex;flex-direction:column;min-width:0}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-text strong{font-weight:600;font-size:14px}\\n\\t\\t#ddwc-demo-switcher .ddwc-ds-text small{font-size:12px;color:#6e6e73}\\n\\t\\t@media (max-width:782px){#ddwc-demo-switcher{left:12px;bottom:auto;top:58px}#ddwc-demo-switcher .ddwc-ds-panel{bottom:auto;top:calc(100% + 10px);transform-origin:top left}}\\n\\t<\\\/style>\\n\\t<script>\\n\\t\\t(function(){var w=document.getElementById('ddwc-demo-switcher');if(!w)return;var b=w.querySelector('.ddwc-ds-toggle');b.addEventListener('click',function(e){e.stopPropagation();var o=w.classList.toggle('is-open');b.setAttribute('aria-expanded',o)});document.addEventListener('click',function(e){if(!w.contains(e.target)){w.classList.remove('is-open');b.setAttribute('aria-expanded','false')}});try{if(!sessionStorage.getItem('ddwcDemoSeen')){w.classList.add('is-open');sessionStorage.setItem('ddwcDemoSeen','1');setTimeout(function(){w.classList.remove('is-open');b.setAttribute('aria-expanded','false')},5000)}}catch(e){}})();\\n\\t<\\\/script>\\n\\t<?php\\n}\\nadd_action( 'wp_footer', 'ddwc_demo_switcher_render' );\\nadd_action( 'admin_footer', 'ddwc_demo_switcher_render' );\\nDDWCKIT;\\n\\twp_mkdir_p( WPMU_PLUGIN_DIR );\\n\\tfile_put_contents( WPMU_PLUGIN_DIR . '\\\/demo-switcher.php', str_replace( [ '__VIEWS__', '__ICONS__' ], [ $views_php, var_export( $icons, true ) ], $code ) );\\n}\\n\\n\\nwp_set_current_user( 1 );\\nddwc_demo_kit_style( [ 'accent' => '#bf4800' ] );\\n\\n$shop    = get_permalink( $pages['shop_page_id'] );\\n$account = get_permalink( $pages['customer_profile_page_id'] );\\n$img     = function ( $i ) use ( $post_ids ) {\\n\\treturn ddwc_demo_kit_img( $post_ids[ $i ] );\\n};\\n$home_id = ddwc_demo_kit_home(\\n\\t[\\n\\t\\t'eyebrow'        => 'Open today 10am to 7pm, Pearl District',\\n\\t\\t'title'          => 'Design you can pick up today.',\\n\\t\\t'lead'           => 'Homeware, furniture and vinyl from independent makers. Visit 418 Larch Street: our counter rings you up in seconds, and every in-store purchase lands in your account.',\\n\\t\\t'ctas'           => [ [ 'Shop the collection', $shop ], [ 'See my in-store orders', $account ] ],\\n\\t\\t'hero_img'       => [ $img( 5 ), $img( 1 ), $img( 6 ) ],\\n\\t\\t'hero_alt'       => 'The Larch & Lane shop floor',\\n\\t\\t'widget'         => '<div class=\\\"dk-widget\\\"><div class=\\\"dk-w-head\\\"><span class=\\\"dk-w-app\\\">' . ddwc_demo_kit_icon( 'check' ) . '<\\\/span><span><span class=\\\"dk-w-label\\\">Register 1 &middot; Jordan<\\\/span><span class=\\\"dk-w-title\\\">Paid at the counter<\\\/span><\\\/span><\\\/div>'\\n\\t\\t\\t. '<div class=\\\"dk-w-row\\\"><span>Oak Bistro Stool<\\\/span><span>&times; 1<\\\/span><\\\/div><div class=\\\"dk-w-row\\\"><span>Card<\\\/span><span>Today, 11:08<\\\/span><\\\/div><div class=\\\"dk-w-row is-total\\\"><span>Total<\\\/span><span>$184.00<\\\/span><\\\/div><\\\/div>',\\n\\t\\t'features_title' => 'In store and online. One shop.',\\n\\t\\t'features'       => [\\n\\t\\t\\t[ 'Pay your way', 'Cash or card, with a printed receipt. Checkout takes seconds, even on a busy Saturday.', 'card' ],\\n\\t\\t\\t[ 'Scan, ring up, done', 'Every item carries a barcode, so our team finds the price and stock instantly.', 'scan' ],\\n\\t\\t\\t[ 'Every receipt, saved', 'Purchases made in the shop appear in your account next to your online orders.', 'receipt' ],\\n\\t\\t],\\n\\t\\t'shelf_title'    => 'On the shop floor.',\\n\\t\\t'shelf_sub'      => 'This week at Larch Street.',\\n\\t\\t'shelf'          => '[fluent_cart_products per_page=\\\"8\\\" product_grid_size=\\\"4\\\"]',\\n\\t\\t'shelf_more'     => [ 'View all products', $shop ],\\n\\t\\t'tile'           => [\\n\\t\\t\\t'title' => 'Bought it in store? It is already in your account.',\\n\\t\\t\\t'text'  => 'Give the cashier your email and the sale is saved as a real FluentCart order, with totals, payment and the receipt.',\\n\\t\\t\\t'cta'   => [ 'View my orders', $account ],\\n\\t\\t\\t'img'   => $img( 7 ),\\n\\t\\t\\t'alt'   => 'Walnut record player',\\n\\t\\t],\\n\\t]\\n);\\nddwc_demo_kit_menu( [ 'Shop' => $shop, 'My account' => $account ] );\\n\\nddwc_demo_kit_switcher(\\n\\t<<<'DDWCVIEWS'\\n\\t$pages = get_option( 'fluent_cart_store_settings' );\\n\\t$acct  = ! empty( $pages['customer_profile_page_id'] ) ? get_permalink( (int) $pages['customer_profile_page_id'] ) : home_url( '\\\/' );\\n\\treturn [\\n\\t\\t[ 'label' => 'Store admin', 'hint' => 'POS sales, cashiers and ledger', 'icon' => 'admin', 'user' => 'admin', 'url' => admin_url( 'admin.php?page=ddfcpos-dashboard' ) ],\\n\\t\\t[ 'label' => 'Cashier register', 'hint' => 'Jordan rings up a sale', 'icon' => 'register', 'user' => 'jordan', 'url' => home_url( '\\\/' . ( get_option( '_ddfcpos_endpoint' ) ?: 'pos' ) . '\\\/' ) ],\\n\\t\\t[ 'label' => 'Customer account', 'hint' => 'Amara sees her in-store purchases', 'icon' => 'customer', 'user' => 'amara', 'url' => $acct ],\\n\\t\\t[ 'label' => 'Storefront', 'hint' => 'The shop your customers see', 'icon' => 'store', 'user' => '', 'url' => home_url( '\\\/' ) ],\\n\\t];\\nDDWCVIEWS\\n);\\n\\\/\\\/ The POS register is its own document that only calls wp_head(), so show the switcher there too,\\n\\\/\\\/ moved right of the sidebar so it stays clear of the register's Logout button.\\nfile_put_contents(\\n\\tWPMU_PLUGIN_DIR . '\\\/demo-switcher.php',\\n\\t<<<'DDWCPOS'\\n\\nadd_action(\\n\\t'wp_head',\\n\\tfunction () {\\n\\t\\tglobal $wp;\\n\\t\\tif ( isset( $wp->query_vars[ get_option( '_ddfcpos_endpoint' ) ?: 'pos' ] ) ) {\\n\\t\\t\\tddwc_demo_switcher_render();\\n\\t\\t\\techo '<style>#ddwc-demo-switcher{left:96px;bottom:20px}<\\\/style>';\\n\\t\\t}\\n\\t},\\n\\t99\\n);\\nDDWCPOS\\n\\t,\\n\\tFILE_APPEND\\n);\\n\"},{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"}]}"}},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3815109,"resolution":"1","location":"assets","locale":"","width":1600,"height":1000},"screenshot-10.png":{"filename":"screenshot-10.png","revision":3815109,"resolution":"10","location":"assets","locale":"","width":1600,"height":1000},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3815109,"resolution":"2","location":"assets","locale":"","width":1600,"height":1000},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3815109,"resolution":"3","location":"assets","locale":"","width":1600,"height":1000},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3815109,"resolution":"4","location":"assets","locale":"","width":1600,"height":1000},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3815109,"resolution":"5","location":"assets","locale":"","width":1600,"height":1000},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3815109,"resolution":"6","location":"assets","locale":"","width":1600,"height":1000},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3815109,"resolution":"7","location":"assets","locale":"","width":1600,"height":1000},"screenshot-8.png":{"filename":"screenshot-8.png","revision":3815109,"resolution":"8","location":"assets","locale":"","width":1600,"height":1000},"screenshot-9.png":{"filename":"screenshot-9.png","revision":3815109,"resolution":"9","location":"assets","locale":"","width":1600,"height":1000}},"screenshots":{"1":"POS register with category tabs, product grid, and cart","2":"Customer search and the Add New Customer form at the till","3":"Payment screen with quick cash buttons, tendered amount, and change","4":"Printer settings for receipt size and barcode labels","5":"POS dashboard with sales, orders, average order, and sales by hour","6":"Outlet settings with payment methods and address","7":"Cashiers screen with role, outlet, and last 30 days of sales","8":"Assign Barcodes screen with per product label printing","9":"General configuration for the point of sale","10":"POS orders list with the cashier and payment method of each sale"}},"plugin_section":[],"plugin_tags":[273903,221348,250438,294343,26270],"plugin_category":[],"plugin_contributors":[220149],"plugin_business_model":[],"class_list":["post-404113","plugin","type-plugin","status-publish","hentry","plugin_tags-barcode-scanner","plugin_tags-cash-register","plugin_tags-fluentcart","plugin_tags-fluentcart-pos","plugin_tags-point-of-sale","plugin_contributors-devdiggers","plugin_committers-devdiggers"],"banners":{"banner":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/banner-772x250.png?rev=3815109","banner_2x":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/banner-1544x500.png?rev=3815109","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/icon-128x128.gif?rev=3815109","icon_2x":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/icon-256x256.gif?rev=3815109","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-1.png?rev=3815109","caption":"POS register with category tabs, product grid, and cart"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-2.png?rev=3815109","caption":"Customer search and the Add New Customer form at the till"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-3.png?rev=3815109","caption":"Payment screen with quick cash buttons, tendered amount, and change"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-4.png?rev=3815109","caption":"Printer settings for receipt size and barcode labels"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-5.png?rev=3815109","caption":"POS dashboard with sales, orders, average order, and sales by hour"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-6.png?rev=3815109","caption":"Outlet settings with payment methods and address"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-7.png?rev=3815109","caption":"Cashiers screen with role, outlet, and last 30 days of sales"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-8.png?rev=3815109","caption":"Assign Barcodes screen with per product label printing"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-9.png?rev=3815109","caption":"General configuration for the point of sale"},{"src":"https:\/\/ps.w.org\/devdiggers-multipos-for-fluentcart\/assets\/screenshot-10.png?rev=3815109","caption":"POS orders list with the cashier and payment method of each sale"}],"raw_content":"<!--section=description-->\n<p>MultiPOS is a free <strong><a href=\"https:\/\/devdiggers.com\/product\/fluentcart-pos\/\">FluentCart POS plugin<\/a><\/strong> for shops that sell online and in person. It turns any browser into a cash register at an address on your own site, such as <code>yoursite.com\/pos<\/code>, so the shop counter and the online store share one product list, one stock count, and one order history. There is no app to download and no separate POS account.<\/p>\n\n<p>A cashier opens the POS, logs in, and lands on the sales screen. They search a product or scan its barcode, pick the customer, apply a FluentCart coupon, take the payment, and print a receipt. The sale is saved as a paid FluentCart order, so it shows up in FluentCart's Orders screen, reports, the customer's order history, and every integration that listens to FluentCart order events.<\/p>\n\n<p>The free version runs one counter from start to finish: one outlet, unlimited cashiers, FluentCart stock and tax, barcode scanning and label printing, cash payments with change, receipts, customers, coupons, held carts, and a POS dashboard. It suits retail counters, grocery and corner shops, pickup desks, market stalls, pop-up shops, and cafes that want in-person sales inside FluentCart instead of a separate till.<\/p>\n\n<p>No monthly fee, no external POS account, and no store data leaving your site.<\/p>\n\n<p>MultiPOS is built and supported by DevDiggers. It is an independent plugin and is not affiliated with or endorsed by FluentCart.<\/p>\n\n<h4>Quick Links<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/devdiggers.com\/product\/fluentcart-pos\/\">View Product Page<\/a><\/li>\n<li><a href=\"https:\/\/demo.devdiggers.com\/multipos-for-fluentcart\/\">Pro Demo<\/a><\/li>\n<li><a href=\"https:\/\/docs.devdiggers.com\/multipos-for-fluentcart\/\">Full Documentation<\/a><\/li>\n<li><a href=\"https:\/\/devdiggers.com\/product\/fluentcart-pos\/#free-vs-pro\">Free vs Pro Comparison<\/a><\/li>\n<li><a href=\"https:\/\/devdiggers.com\/contact\/\">Contact Support<\/a><\/li>\n<li><a href=\"https:\/\/devdiggers.com\/product\/fluentcart-pos\/\">Upgrade to Pro<\/a><\/li>\n<\/ul>\n\n<h4>What you get in the free version<\/h4>\n\n<ul>\n<li>A point of sale screen on your own site, at a URL path you choose<\/li>\n<li>Setup wizard for the first configuration<\/li>\n<li>One outlet in grocery\/retail or restaurant\/cafe mode<\/li>\n<li>Unlimited cashiers with a dedicated POS Cashier role<\/li>\n<li>Product search by name, ID, SKU, or barcode, plus category filters<\/li>\n<li>Barcode scanning to add products to the cart<\/li>\n<li>FluentCart stock checked before every sale and booked when the sale is saved<\/li>\n<li>FluentCart tax for the outlet address, with prices including or excluding tax<\/li>\n<li>FluentCart coupon codes at the till, checked again on the server<\/li>\n<li>Cash payment with tendered amount and change, plus your own payment method labels<\/li>\n<li>Every sale saved as a paid FluentCart order with its outlet, cashier, and payment<\/li>\n<li>Customer search, add, edit, and delete from the POS, and a walk-in customer for quick sales<\/li>\n<li>Hold a cart and pick it up later<\/li>\n<li>Receipt printing with paper width, height, and margin settings<\/li>\n<li>Barcode label printing for one product or many at once<\/li>\n<li>POS dashboard with sales, orders, cashiers, payment methods, and recent POS orders<\/li>\n<li>POS orders and transactions screens in the admin<\/li>\n<li>Login screen text, logo, and colour settings<\/li>\n<li>POS colours, fonts, font size, corner radius, and product card layout<\/li>\n<li>Translation ready, <code>.pot<\/code> file included<\/li>\n<\/ul>\n\n<h4>How it works<\/h4>\n\n<p>After activation, <strong>MultiPOS for FluentCart<\/strong> appears under the DevDiggers menu in your WordPress admin.<\/p>\n\n<ol>\n<li>Run the setup wizard, or open <strong>Configuration<\/strong><\/li>\n<li>Enable the Point of Sale and choose the POS URL path, for example <code>pos<\/code><\/li>\n<li>Fill in your outlet name and address under <strong>Outlet<\/strong><\/li>\n<li>Add a cashier under <strong>Cashiers<\/strong><\/li>\n<li>Open the POS from <strong>Visit POS<\/strong> and take your first in-person sale<\/li>\n<\/ol>\n\n<p>Cashiers never need WordPress admin access. They log in on the POS screen itself.<\/p>\n\n<h3>FluentCart POS features in detail<\/h3>\n\n<h3>Point of sale screen for your FluentCart store<\/h3>\n\n<p>The POS is one sales screen built for a busy counter.<\/p>\n\n<ul>\n<li>Open the register at a custom URL such as <code>\/pos<\/code><\/li>\n<li>Administrators, FluentCart managers, and POS cashiers can sign in<\/li>\n<li>Browse products by category or search by name, ID, SKU, or barcode<\/li>\n<li>Add a product by tapping its card or scanning its barcode<\/li>\n<li>Change quantities or remove lines in the cart<\/li>\n<li>Hold an unfinished cart and come back to it later<\/li>\n<li>Keyboard shortcuts for the main screens<\/li>\n<li>Responsive layout for tablets, laptops, and desktop screens<\/li>\n<\/ul>\n\n<p>Products come straight from FluentCart with their images, prices, sale prices, and categories. The free POS sells simple products. Subscription plans stay with FluentCart checkout.<\/p>\n\n<h3>Every POS sale is a real FluentCart order<\/h3>\n\n<p>In-person sales land in FluentCart, not in a separate ledger.<\/p>\n\n<ul>\n<li>Each sale creates a paid FluentCart order with the status you choose (Completed by default)<\/li>\n<li>Physical items are marked Delivered, since the customer leaves with them<\/li>\n<li>Tax is worked out by FluentCart's own tax engine for the outlet address, with the per-rate breakdown saved on the order<\/li>\n<li>Coupons are saved as FluentCart applied coupons and their use count goes up<\/li>\n<li>The outlet, cashier, payment method, and tendered amount are saved with the order<\/li>\n<li>FluentCart's usual order events run, so receipts, admin emails, FluentCRM, and other integrations work for POS sales too<\/li>\n<li>A sale sent twice after a dropped connection does not create a second order<\/li>\n<\/ul>\n\n<h3>FluentCart stock at the till<\/h3>\n\n<ul>\n<li>The POS checks FluentCart stock before the order is created<\/li>\n<li>When FluentCart's Stock Management module is on, units move from available to committed, the same way FluentCart books a delivered order<\/li>\n<li>Out of stock products are not offered at the till, and items that allow backorders can still be sold<\/li>\n<li>Optional stock count on each product card<\/li>\n<\/ul>\n\n<h3>Barcode scanner and barcode label printing<\/h3>\n\n<ul>\n<li>Use the product ID or the SKU as the barcode<\/li>\n<li>Scan a barcode at the POS to drop the product into the cart, with a sound on each add<\/li>\n<li>Print barcode labels from <strong>Assign Barcodes<\/strong>, one product or many at once, with a quantity per product<\/li>\n<li>Set label page size, barcode height, margins, and orientation<\/li>\n<\/ul>\n\n<p>Any keyboard-wedge USB or Bluetooth scanner works, because the scanner types the code into the POS search box. There is nothing extra to install.<\/p>\n\n<h3>Cash payments and payment method labels<\/h3>\n\n<ul>\n<li>Cash with tendered amount and automatic change<\/li>\n<li>Add your own payment method labels such as Card, UPI, or Bank Transfer to record how the customer paid<\/li>\n<li>Turn each method on or off and choose which ones the outlet offers<\/li>\n<\/ul>\n\n<h3>Customers and coupons at the counter<\/h3>\n\n<ul>\n<li>Search FluentCart customers and pick one for the sale<\/li>\n<li>Add or edit a customer in the middle of a sale<\/li>\n<li>A walk-in customer is used for quick sales, or choose your own default customer<\/li>\n<li>Store staff accounts can not be edited or deleted from the POS<\/li>\n<li>Apply FluentCart coupons. The server checks each one again (status, dates, usage limits, minimum spend), so a coupon can not be used after it was switched off<\/li>\n<\/ul>\n\n<h3>Receipt printing for thermal printers<\/h3>\n\n<ul>\n<li>A clean receipt with store header, order details, items, tax, and total<\/li>\n<li>Preview the receipt at real size on 58 mm, 80 mm, or A4 paper and print a test page<\/li>\n<li>Set receipt width, height, and margin to match your printer<\/li>\n<li>Reprint the receipt of any POS order from the Orders tab<\/li>\n<\/ul>\n\n<h3>Outlet setup for a shop counter or cafe<\/h3>\n\n<ul>\n<li>Outlet name, address, phone, and email (the address drives FluentCart tax)<\/li>\n<li>Grocery\/retail or restaurant\/cafe mode<\/li>\n<li>Restaurant mode adds a Tables tab, so an order can be attached to one of your dining tables<\/li>\n<li>Mark the outlet active or inactive to open or close the register<\/li>\n<\/ul>\n\n<h3>POS dashboard, orders, and transactions<\/h3>\n\n<ul>\n<li>Dashboard with sales, orders, cashiers, and top payment method<\/li>\n<li>Revenue chart and payment method breakdown, next to the latest POS orders<\/li>\n<li>POS Orders screen filtered by cashier and date, each linked to the order in FluentCart<\/li>\n<li>Transactions log with cashier, method, amount, and date<\/li>\n<li>Cashiers can see today's sales and recent orders inside the POS<\/li>\n<\/ul>\n\n<h3>Branding the POS<\/h3>\n\n<ul>\n<li>Change the login heading, subtitle, footer, and button text<\/li>\n<li>Upload your logo for the POS and receipts<\/li>\n<li>Set login, POS, and button colours, font family, font size, and corner radius<\/li>\n<li>Pick a ready made colour palette and see a live preview<\/li>\n<\/ul>\n\n<h3>Free vs Pro<\/h3>\n\n<p>The free version runs one counter from the first sale to the printed receipt. <a href=\"https:\/\/devdiggers.com\/product\/fluentcart-pos\/\">MultiPOS Pro for FluentCart<\/a> is for stores that outgrow a single counter: more branches, more ways to pay, cash control at the end of the day, or a kitchen to feed.<\/p>\n\n<h3>More outlets and staff control (Pro)<\/h3>\n\n<ul>\n<li>Unlimited outlets, each with its own payment methods, receipt, and tables<\/li>\n<li>Assign cashiers to outlets, with shift supervisors<\/li>\n<li>Cashier permissions for refunds, price changes, cash in and out, closing the register, and editing customers<\/li>\n<li>Manager approval with a PIN at the till, and a maximum discount per cashier<\/li>\n<li>Separate stock count per outlet, and stock at other outlets on every product card<\/li>\n<\/ul>\n\n<h3>Cash control and refunds (Pro)<\/h3>\n\n<ul>\n<li>Close the register with blind close, X-reports, and Z-reports<\/li>\n<li>Registers screen with every closed shift, and the Z-report emailed to the owner<\/li>\n<li>Cash in and cash out with reasons<\/li>\n<li>Refunds at the till through FluentCart's refund service, with or without restocking<\/li>\n<\/ul>\n\n<h3>Advanced checkout (Pro)<\/h3>\n\n<ul>\n<li>Products with variations, as options or as their own cards<\/li>\n<li>Split one order across several payment methods<\/li>\n<li>Product and cart discounts, fees and surcharges, and order notes<\/li>\n<li>Custom items that are not in the catalog, and sell by weight<\/li>\n<li>Quick Keys for best sellers, and a customer profile with spend and visits<\/li>\n<li>Offline selling that syncs when the connection is back<\/li>\n<li>Receipt editor with a live preview and a receipt per outlet<\/li>\n<li>Barcode labels with store name, product name, barcode number, SKU, and price<\/li>\n<\/ul>\n\n<h3>Reports, kitchen, and app (Pro)<\/h3>\n\n<ul>\n<li>Full POS reports by period, outlet, and cashier, with CSV export<\/li>\n<li>Kitchen screen for restaurant outlets<\/li>\n<li>Install the POS as a Progressive Web App<\/li>\n<\/ul>\n\n<p>Everything you set up in the free version carries over when you upgrade. Your outlet, cashiers, orders, and transactions stay as they are.<\/p>\n\n<p><a href=\"https:\/\/devdiggers.com\/product\/fluentcart-pos\/\">Upgrade to MultiPOS Pro<\/a><\/p>\n\n<h3>External services<\/h3>\n\n<p>The plugin does not send customer, order, or store data to any outside service. It has no licence checks, no update checks, and no tracking. The bundled DevDiggers Framework, which builds the admin screens, connects to the DevDiggers services below, and WordPress core may load Gravatar images. These are the only outside connections.<\/p>\n\n<p><strong>1. DevDiggers plugin catalog (Extensions page)<\/strong><\/p>\n\n<ul>\n<li>What it is: A public endpoint on devdiggers.com that lists DevDiggers plugins.<\/li>\n<li>What it is used for: Showing other DevDiggers plugins on the Extensions admin page.<\/li>\n<li>When data is sent: Only when an administrator opens the Extensions page. The response is cached for 24 hours, so the request runs at most once a day. No other screen makes this request.<\/li>\n<li>What data is sent: A standard outbound HTTP request only, meaning your server's IP address and a user agent string. No personal data and no store data are sent. The page also loads each listed extension's image from devdiggers.com in the administrator's browser.<\/li>\n<li>Endpoint: https:\/\/devdiggers.com\/wp-json\/ddwcs\/v1\/plugins<\/li>\n<\/ul>\n\n<p><strong>2. Newsletter subscription (optional)<\/strong><\/p>\n\n<ul>\n<li>What it is: A contact and newsletter endpoint on devdiggers.com.<\/li>\n<li>What it is used for: Adding your email address to the DevDiggers newsletter, only if you choose to subscribe.<\/li>\n<li>When data is sent: Only when an administrator submits the optional newsletter form on the DevDiggers Plugins dashboard. Nothing is sent automatically.<\/li>\n<li>What data is sent: The email address you enter and your site URL.<\/li>\n<li>Endpoint: https:\/\/devdiggers.com\/?fluentcrm=1&amp;route=contact<\/li>\n<\/ul>\n\n<p>The services above are provided by DevDiggers: Terms and Conditions https:\/\/devdiggers.com\/terms-and-conditions\/ and Privacy Policy https:\/\/devdiggers.com\/privacy-policy\/.<\/p>\n\n<p><strong>3. Gravatar (avatar images)<\/strong><\/p>\n\n<ul>\n<li>What it is: Gravatar, the avatar service operated by Automattic, used through WordPress core's avatar functions (<code>get_avatar()<\/code> and <code>get_avatar_url()<\/code>).<\/li>\n<li>What it is used for: Showing avatars in the admin and on the POS screen: the administrator in the plugin dashboard header, cashiers on the Cashiers, Orders and Transactions screens and the dashboard's top cashiers, and customers in the POS customer list and cart. This is standard WordPress behaviour.<\/li>\n<li>When data is sent: When those screens are viewed and \"Show Avatars\" is turned on under Settings &gt; Discussion. Turning avatars off there stops the requests.<\/li>\n<li>What data is sent: A hash of the user's or customer's email address inside the image URL, plus the usual request data such as IP address and user agent, sent by the browser of the person viewing the screen.<\/li>\n<li>Endpoint: https:\/\/secure.gravatar.com\/avatar\/<\/li>\n<li>Terms of Service: https:\/\/automattic.com\/tos\/ \u2013 Privacy Policy: https:\/\/automattic.com\/privacy\/<\/li>\n<\/ul>\n\n<h3>Source code and build tools<\/h3>\n\n<p>The POS app, admin and login JavaScript and CSS are compiled from the <code>src\/<\/code> folder with webpack and Babel. The complete, human readable source code, including all build configuration, is published in our public GitHub repository:<\/p>\n\n<p>https:\/\/github.com\/DevDiggers-Technologies\/multipos-for-fluentcart<\/p>\n\n<p>To build the assets from source:<\/p>\n\n<ol>\n<li>Run <code>npm install<\/code> to install the build dependencies listed in <code>package.json<\/code>.<\/li>\n<li>Run <code>npm run build<\/code> to compile the production assets into <code>assets\/js<\/code> and <code>assets\/css<\/code>.<\/li>\n<\/ol>\n\n<p>The build configuration is in <code>webpack.config.js<\/code> and <code>babel.config.js<\/code>.<\/p>\n\n<p>The admin screens share the bundled DevDiggers Framework. The human readable source of its compiled files in <code>devdiggers-framework\/assets\/js<\/code> and <code>devdiggers-framework\/assets\/css<\/code> (framework, dashboard, dashboard analytics, setup wizard and review notice) is in the same GitHub repository under <code>devdiggers-framework\/src<\/code>, with its own <code>package.json<\/code>, <code>webpack.config.js<\/code> and <code>babel.config.js<\/code>. To rebuild them, run <code>npm install<\/code> and then <code>npm run build<\/code> inside the <code>devdiggers-framework<\/code> folder.<\/p>\n\n<p>Two third party libraries used by the admin screens ship unmodified under the MIT license inside <code>devdiggers-framework\/assets\/js\/<\/code>: Chart.js (https:\/\/www.chartjs.org) and Select2 (https:\/\/select2.org).<\/p>\n\n<!--section=installation-->\n<p><strong>Automatic installation<\/strong><\/p>\n\n<ol>\n<li>Make sure FluentCart is installed and active.<\/li>\n<li>Go to <strong>Plugins &gt; Add New<\/strong>, search for <strong>MultiPOS for FluentCart<\/strong>, then click <strong>Install Now<\/strong> and <strong>Activate<\/strong>.<\/li>\n<\/ol>\n\n<p><strong>Manual installation<\/strong><\/p>\n\n<ol>\n<li>Download the plugin zip file.<\/li>\n<li>Go to <strong>Plugins &gt; Add New &gt; Upload Plugin<\/strong>, upload the zip, then click <strong>Install Now<\/strong> and <strong>Activate<\/strong>.<\/li>\n<\/ol>\n\n<p>You can also upload the <code>devdiggers-multipos-for-fluentcart<\/code> folder to <code>\/wp-content\/plugins\/<\/code> over FTP and activate it from the Plugins menu.<\/p>\n\n<p><strong>After activation<\/strong><\/p>\n\n<ol>\n<li>Follow the setup wizard, or open <strong>MultiPOS for FluentCart &gt; Configuration &gt; General<\/strong>.<\/li>\n<li>Enable the Point of Sale and set the POS URL path.<\/li>\n<li>Fill in your outlet under <strong>Outlet<\/strong>.<\/li>\n<li>Add a cashier under <strong>Cashiers<\/strong>.<\/li>\n<li>Open the register with the <strong>Visit POS<\/strong> link.<\/li>\n<\/ol>\n\n<p>If the POS address shows a \"page not found\" error after changing the path, save your permalinks once under <strong>Settings &gt; Permalinks<\/strong>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"is%20multipos%20for%20fluentcart%20really%20free%3F\"><h3>Is MultiPOS for FluentCart really free?<\/h3><\/dt>\n<dd><p>Yes. The free version runs a full counter: one outlet, unlimited cashiers, barcode scanning and labels, cash payments, receipts, customers, coupons, held carts, and the POS dashboard. There is no trial period and nothing stops working after a while.<\/p><\/dd>\n<dt id=\"do%20pos%20sales%20show%20up%20as%20normal%20fluentcart%20orders%3F\"><h3>Do POS sales show up as normal FluentCart orders?<\/h3><\/dt>\n<dd><p>Yes. Each sale is a paid FluentCart order. MultiPOS adds the outlet, cashier, payment method, and tendered amount, but the order lives in FluentCart and behaves like any other order, in its reports and integrations too.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20fluentcart%20free%2C%20or%20do%20i%20need%20fluentcart%20pro%3F\"><h3>Does it work with FluentCart free, or do I need FluentCart Pro?<\/h3><\/dt>\n<dd><p>It works with FluentCart free. With FluentCart Pro active, Pro features that act on paid orders, such as software licenses, run for POS sales too.<\/p><\/dd>\n<dt id=\"do%20i%20need%20woocommerce%3F\"><h3>Do I need WooCommerce?<\/h3><\/dt>\n<dd><p>No. MultiPOS for FluentCart needs only WordPress and FluentCart. If you run WooCommerce, see MultiPOS for WooCommerce instead.<\/p><\/dd>\n<dt id=\"do%20i%20need%20a%20square%2C%20stripe%2C%20or%20paypal%20account%3F\"><h3>Do I need a Square, Stripe, or PayPal account?<\/h3><\/dt>\n<dd><p>No. MultiPOS runs on your WordPress site and records sales straight into FluentCart. There is no third-party POS account and no per-sale fee from the plugin. The free version does not connect to card readers. If you take cards on a separate terminal, add a payment method label such as Card so the order records how the customer paid.<\/p><\/dd>\n<dt id=\"does%20it%20use%20my%20fluentcart%20stock%3F\"><h3>Does it use my FluentCart stock?<\/h3><\/dt>\n<dd><p>Yes. The POS checks FluentCart stock before the sale and books the sold units the way FluentCart books a delivered order. A separate stock count per outlet is a Pro feature.<\/p><\/dd>\n<dt id=\"does%20it%20use%20fluentcart%20tax%20settings%3F\"><h3>Does it use FluentCart tax settings?<\/h3><\/dt>\n<dd><p>Yes. Tax is worked out by FluentCart's tax engine for the outlet address, for prices that include or exclude tax.<\/p><\/dd>\n<dt id=\"do%20i%20need%20a%20barcode%20scanner%3F\"><h3>Do I need a barcode scanner?<\/h3><\/dt>\n<dd><p>No, but it speeds things up. Any keyboard-wedge USB or Bluetooth scanner works. You can also type the barcode, product name, or SKU into the search box.<\/p><\/dd>\n<dt id=\"can%20i%20print%20barcode%20labels%20for%20my%20products%3F\"><h3>Can I print barcode labels for my products?<\/h3><\/dt>\n<dd><p>Yes. <strong>Assign Barcodes<\/strong> prints labels for one product or many at once. The barcode is the product ID or SKU. Printing the store name, product name, SKU, and price on the label, and setting your own barcode value, are Pro features.<\/p><\/dd>\n<dt id=\"can%20i%20print%20receipts%20on%20a%20thermal%20printer%3F\"><h3>Can I print receipts on a thermal printer?<\/h3><\/dt>\n<dd><p>Yes. Receipts print from the browser after each sale, and you can set the paper width, height, and margin to match a 58 mm or 80 mm roll. Designing your own receipt layouts is a Pro feature.<\/p><\/dd>\n<dt id=\"which%20payment%20methods%20can%20i%20take%20at%20the%20counter%3F\"><h3>Which payment methods can I take at the counter?<\/h3><\/dt>\n<dd><p>Cash is included, with tendered amount and change. You can add your own labels such as Card or Bank Transfer under <strong>Configuration &gt; Payments<\/strong>. Each sale is paid with one method. Splitting one order across several methods is a Pro feature.<\/p><\/dd>\n<dt id=\"how%20many%20cashiers%20can%20i%20add%3F\"><h3>How many cashiers can I add?<\/h3><\/dt>\n<dd><p>As many as you like. Cashiers are WordPress users with the POS Cashier role, and administrators and FluentCart managers can use the POS too.<\/p><\/dd>\n<dt id=\"can%20i%20run%20more%20than%20one%20shop%3F\"><h3>Can I run more than one shop?<\/h3><\/dt>\n<dd><p>The free version runs one outlet. MultiPOS Pro adds unlimited outlets with their own stock, payment methods, receipts, and cashiers.<\/p><\/dd>\n<dt id=\"which%20products%20can%20i%20sell%20at%20the%20pos%3F\"><h3>Which products can I sell at the POS?<\/h3><\/dt>\n<dd><p>The free version sells simple FluentCart products. Products with variations, custom items, and selling by weight are Pro features.<\/p><\/dd>\n<dt id=\"can%20i%20refund%20a%20pos%20sale%3F\"><h3>Can I refund a POS sale?<\/h3><\/dt>\n<dd><p>Refunds made in FluentCart's own order screen work as usual. Refunding at the till, line by line, is a Pro feature.<\/p><\/dd>\n<dt id=\"does%20the%20pos%20work%20offline%3F\"><h3>Does the POS work offline?<\/h3><\/dt>\n<dd><p>No. The free version needs a connection to your site. Offline selling with later sync is a Pro feature.<\/p><\/dd>\n<dt id=\"can%20i%20run%20multipos%20for%20fluentcart%20and%20multipos%20for%20woocommerce%20on%20the%20same%20site%3F\"><h3>Can I run MultiPOS for FluentCart and MultiPOS for WooCommerce on the same site?<\/h3><\/dt>\n<dd><p>Yes. They keep separate settings and tables. Both open the POS at <code>\/pos<\/code> by default, so give one of them another address under <strong>Configuration &gt; General<\/strong>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release: a free point of sale for FluentCart. One outlet, unlimited cashiers, FluentCart stock, tax and coupons, barcode scanning and labels, cash payments, receipts, customers, held carts, and a POS dashboard.<\/li>\n<\/ul>","raw_excerpt":"Free FluentCart POS with barcode scanner and cash register. Sell in person from any browser and save every sale as a FluentCart order.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/404113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=404113"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/devdiggers"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=404113"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=404113"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=404113"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=404113"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=404113"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=404113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}