HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wordpress/wp-content/plugins/ninja-tables/config/fluent-cart-headers.php
<?php

if (!defined('ABSPATH')) {
    die(__FILE__);
}

return [
    [
        'name'                            => 'Image',
        'key'                             => 'fct_product_image',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => 'center',
        'textAlign'                       => 'center',
        'permalinked'                     => "yes",
        'source_type'                     => "custom",
        'wp_post_custom_data_source_type' => 'featured_image',
        'wp_post_custom_data_key'         => 'thumbnail' // use 'thumbnail' unless you have a custom size
    ],
    [
        'name'                            => 'Name',
        'key'                             => 'fct_post_title',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => 'left',
        'textAlign'                       => 'left',
        'permalinked'                     => "yes",
        'source_type'                     => "post_data",
        'wp_post_custom_data_source_type' => 'post_data',
        'wp_post_custom_data_key'         => 'post_title'
    ],
    [
        'name'                            => 'Category',
        'key'                             => 'fct_product_category',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => 'left',
        'textAlign'                       => 'left',
        'permalinked'                     => "yes",
        'filter_permalinked'              => "yes",
        'source_type'                     => "tax_data",
        'wp_post_custom_data_source_type' => "tax_data",
        'taxonomy_separator'              => ", ",
        'wp_post_custom_data_key'         => 'product-categories'
    ],
    [
        'name'                            => 'Price',
        'key'                             => 'fct_product_price',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'permalinked'                     => "no",
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => 'right',
        'textAlign'                       => 'right',
        'source_type'                     => "product_data",
        'wp_post_custom_data_source_type' => "product_data",
        'wp_post_custom_data_key'         => 'product_price' // check meta key in DB
    ],
    [
        'name'                            => 'Total Stock',
        'key'                             => 'fct_product_stock',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'permalinked'                     => "no",
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => 'center',
        'textAlign'                       => 'center',
        'source_type'                     => "product_data",
        'wp_post_custom_data_source_type' => "product_data",
        'wp_post_custom_data_key'         => 'product-stock'
    ],
    [
        'name'                            => 'Variations',
        'key'                             => 'fct_product_variations',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'permalinked'                     => "no",
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => null,
        'textAlign'                       => null,
        'source_type'                     => "product_data",
        'wp_post_custom_data_source_type' => "product_data",
        'wp_post_custom_data_key'         => 'product_variations'
    ],
    [
        'name'                            => 'Quantity',
        'key'                             => 'fct_product_quantity',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'permalinked'                     => "no",
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => null,
        'textAlign'                       => null,
        'source_type'                     => "product_data",
        'wp_post_custom_data_source_type' => "product_data",
        'wp_post_custom_data_key'         => 'product_quantity'
    ],
    [
        'name'                            => 'Buy',
        'key'                             => 'fct_product_buy',
        'breakpoints'                     => '',
        'data_type'                       => 'html',
        'width'                           => '',
        'permalinked'                     => "no",
        'header_html_content'             => null,
        'enable_html_content'             => false,
        'contentAlign'                    => null,
        'textAlign'                       => null,
        'source_type'                     => "product_data",
        'wp_post_custom_data_source_type' => "product_data",
        'wp_post_custom_data_key'         => 'buy_now_button',
        'wp_post_custom_data_value'       => 'Add To Cart',
        'show_quantity'                   => 'yes',
        'quantity_type'                   => 'normal',
        'quantity_max_value'              => ''
    ]
];