PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.1
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.1
1.7.1 1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 All 51 releases
← All changes | app/Hooks/Handlers/MenuHandler.php +19 -0 1.6.6 → 1.7.1 View file →
@@ -31,8 +31,9 @@
31 31 use FluentCart\App\Services\Filter\CustomerFilter;
32 32 use FluentCart\App\Services\Filter\CouponFilter;
33 33 use FluentCart\App\Services\Filter\LogFilter;
34 34 use FluentCart\App\Services\Filter\OrderBumpFilter;
35 +use FluentCart\App\Services\Filter\ReviewFilter;
35 36 use FluentCart\App\Modules\Shipping\Services\Filter\ShippingClassFilter;
36 37 use FluentCart\App\Modules\Shipping\Services\Filter\ShippingZoneFilter;
37 38 use FluentCart\App\Modules\Integrations\AddOnModule;
38 39 use FluentCart\App\Services\DateTime\DayjsFormatter;
@@ -88,8 +89,9 @@
88 89 $targetKeys = [
89 90 'checkout_page_id' => __('Checkout Page', 'fluent-cart'),
90 91 'cart_page_id' => __('Cart Page', 'fluent-cart'),
91 92 'receipt_page_id' => __('Receipt Page', 'fluent-cart'),
93 + 'order_review_page_id' => __('Order Review Page', 'fluent-cart'),
92 94 'shop_page_id' => __('Shop Page', 'fluent-cart'),
93 95 'customer_profile_page_id' => __('Customer Profile Page', 'fluent-cart'),
94 96 ];
95 97
@@ -186,8 +188,22 @@
186 188 {
187 189
188 190 add_action('admin_menu', array($this, 'addAdminMenu'));
189 191
192 + // The "↳" children under Products stay visible on every page so the
193 + // sidebar never changes shape. Pro's "↳ Inventory" still hides itself
194 + // with inline CSS (it relied on the admin app to reveal it), so keep
195 + // that row visible whichever Pro version is installed.
196 + add_action('admin_enqueue_scripts', function () {
197 + wp_register_style('fluent-cart-admin-submenu', false);
198 + wp_enqueue_style('fluent-cart-admin-submenu');
199 + wp_add_inline_style('fluent-cart-admin-submenu', '
200 + #adminmenu .toplevel_page_fluent-cart li.fluent_cart_inventory {
201 + display: list-item;
202 + }
203 + ');
204 + });
205 +
190 206 /*
191 207 * Disable Gutenberg for Products
192 208 */
193 209 add_filter('parent_file', function ($parent_file) {
@@ -480,8 +496,9 @@
480 496 'product_filter_options' => ProductFilter::getTableFilterOptions(),
481 497 'license_filter_options' => LicenseFilter::getTableFilterOptions(),
482 498 'license_site_filter_options' => LicenseSiteFilter::getTableFilterOptions(),
483 499 'tax_filter_options' => TaxFilter::getTableFilterOptions(),
500 + 'review_filter_options' => ReviewFilter::getTableFilterOptions(),
484 501 ];
485 502 $filterOptions = apply_filters('fluent_cart/admin_filter_options', $filterOptions, []);
486 503
487 504 // Structured table config keyed by table name (used by Table.js base class)
@@ -493,8 +510,9 @@
493 510 'license_sites' => ['filters' => Arr::get($filterOptions, 'license_site_filter_options', [])],
494 511 'taxes_table' => ['filters' => Arr::get($filterOptions, 'tax_filter_options', [])],
495 512 'subscriptions' => ['filters' => Arr::get($filterOptions, 'subscription_filter_options', [])],
496 513 'shipping_zone_table' => ['filters' => Arr::get($filterOptions, 'shipping_zone_filter_options', [])],
514 + 'review_table' => ['filters' => Arr::get($filterOptions, 'review_filter_options', [])],
497 515 // The Order Sources report filters orders, so its advanced-filter UI
498 516 // reuses the Orders filter vocabulary rather than defining its own.
499 517 'source_report' => ['filters' => Arr::get($filterOptions, 'order_filter_options', [])],
500 518 ];
@@ -592,8 +610,9 @@
592 610 'is_tax_enabled' => TaxModule::isTaxEnabled(),
593 611 'eu_vat_county_options' => TaxModule::euVatCountyOptions(),
594 612 'country_tax_titles' => TaxModule::taxTitleLists(),
595 613 'site_url' => site_url(),
614 + 'store_logo' => (new \FluentCart\Api\StoreSettings())->get('store_logo.url', ''),
596 615 'modules_settings' => ModuleSettings::getAllSettings(),
597 616 'purchase_fluent_cart_link' => 'https://fluentcart.com/',
598 617 'admin_notices' => apply_filters('fluent_cart/admin_notices', []),
599 618 // POSTs data-backfills/run until done; endpoint requires manage_options