diff --git a/includes/Admin/views/settings/export-import.php b/templates/admin/settings/export-import.php
similarity index 100%
rename from includes/Admin/views/settings/export-import.php
rename to templates/admin/settings/export-import.php
diff --git a/includes/Admin/views/showcase/fonts-settings.php b/templates/admin/showcase/fonts-settings.php
similarity index 100%
rename from includes/Admin/views/showcase/fonts-settings.php
rename to templates/admin/showcase/fonts-settings.php
diff --git a/includes/Admin/views/showcase/general-settings.php b/templates/admin/showcase/general-settings.php
similarity index 99%
rename from includes/Admin/views/showcase/general-settings.php
rename to templates/admin/showcase/general-settings.php
index 0ccf3f57..d2c279f2 100644
--- a/includes/Admin/views/showcase/general-settings.php
+++ b/templates/admin/showcase/general-settings.php
@@ -8,7 +8,7 @@
* @var int $post_id Post ID.
*/
-use WooCommerceCategoryShowcase\Controllers\Helpers;
+use PluginEver\CategoryShowcase\Controllers\Helpers;
defined( 'ABSPATH' ) || exit;
diff --git a/includes/Admin/views/showcase/image-settings.php b/templates/admin/showcase/image-settings.php
similarity index 100%
rename from includes/Admin/views/showcase/image-settings.php
rename to templates/admin/showcase/image-settings.php
diff --git a/includes/Admin/views/showcase/showcase-settings.php b/templates/admin/showcase/showcase-settings.php
similarity index 100%
rename from includes/Admin/views/showcase/showcase-settings.php
rename to templates/admin/showcase/showcase-settings.php
diff --git a/includes/Admin/views/showcase/slider-settings.php b/templates/admin/showcase/slider-settings.php
similarity index 100%
rename from includes/Admin/views/showcase/slider-settings.php
rename to templates/admin/showcase/slider-settings.php
diff --git a/templates/load-slider.php b/templates/load-slider.php
index 4a9338a9..d33b4b73 100644
--- a/templates/load-slider.php
+++ b/templates/load-slider.php
@@ -16,7 +16,7 @@
* @var string $content_position The content position.
*/
-use WooCommerceCategoryShowcase\Controllers\Helpers;
+use PluginEver\CategoryShowcase\Controllers\Helpers;
?>
, "columns": , "laptop":, "tablet":, "mobile":, "gap": }' aria-label="">
diff --git a/uninstall.php b/uninstall.php
new file mode 100644
index 00000000..c9be9339
--- /dev/null
+++ b/uninstall.php
@@ -0,0 +1,16 @@
+
* @copyright 2026 ByteEver
* @license GPL-2.0+
- * @package WooCommerceCategoryShowcase
+ * @package PluginEver\CategoryShowcase
*/
+use PluginEver\CategoryShowcase\Installer;
+use PluginEver\CategoryShowcase\Plugin;
+
defined( 'ABSPATH' ) || exit;
-// Autoloader.
require_once __DIR__ . '/vendor/autoload.php';
+require_once __DIR__ . '/includes/functions.php';
+
+$data = array(
+ 'version' => '2.3.2',
+ 'name' => 'Category Showcase',
+ 'settings_url' => admin_url( 'admin.php?page=wc-category-showcase' ),
+ 'support_url' => 'https://pluginever.com/support/',
+ 'docs_url' => 'https://pluginever.com/docs/wc-category-showcase/',
+ 'review_url' => 'https://wordpress.org/support/plugin/wc-category-showcase/reviews/#new-post',
+ 'pro_basename' => 'woocommerce-category-showcase-pro/wc-category-showcase-pro.php',
+ 'upgrade_url' => 'https://pluginever.com/plugins/woocommerce-category-showcase-pro/',
+);
-// Instantiate the plugin.
-WooCommerceCategoryShowcase\Plugin::create(
- array(
- 'file' => __FILE__,
- 'settings_url' => admin_url( 'admin.php?page=wc-category-showcase' ),
- )
+Plugin::create( __FILE__, $data );
+
+wc_category_showcase()->on_activation( array( Installer::class, 'install' ) );
+wc_category_showcase()->on_deactivation( array( Installer::class, 'deactivate' ) );
+
+add_action(
+ 'before_woocommerce_init',
+ function () {
+ if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
+ \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
+ \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, true );
+ }
+ }
);
+
+wc_category_showcase()->bootstrap();
From c7aaa731e9a0218c8fcb647ef1af78c99d1f5b27 Mon Sep 17 00:00:00 2001
From: Towfiqul Islam <43319312+towfiq1997@users.noreply.github.com>
Date: Sun, 26 Jul 2026 11:27:57 +0600
Subject: [PATCH 2/3] Component issue fixed
---
languages/wc-category-showcase.pot | 2 +-
package-lock.json | 30 +++++++++-----
templates/admin/add-category-showcase.php | 46 +++++++++++-----------
templates/admin/admin-page.php | 4 +-
templates/admin/list-category-showcase.php | 2 +-
templates/admin/settings/export-import.php | 20 +++++-----
6 files changed, 57 insertions(+), 47 deletions(-)
diff --git a/languages/wc-category-showcase.pot b/languages/wc-category-showcase.pot
index b4824ab5..f8832e22 100644
--- a/languages/wc-category-showcase.pot
+++ b/languages/wc-category-showcase.pot
@@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2026-07-23T08:26:49+00:00\n"
+"POT-Creation-Date: 2026-07-23T11:49:01+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.12.0\n"
"X-Domain: wc-category-showcase\n"
diff --git a/package-lock.json b/package-lock.json
index 21043c7e..c7abdbb6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6877,6 +6877,16 @@
"node": ">=10"
}
},
+ "node_modules/@wordpress/eslint-plugin/node_modules/yaml": {
+ "version": "1.10.3",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz",
+ "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/@wordpress/hooks": {
"version": "4.51.0",
"resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.51.0.tgz",
@@ -17933,6 +17943,16 @@
"node": ">=10"
}
},
+ "node_modules/postcss-loader/node_modules/yaml": {
+ "version": "1.10.3",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz",
+ "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/postcss-media-query-parser": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz",
@@ -23530,16 +23550,6 @@
"dev": true,
"license": "ISC"
},
- "node_modules/yaml": {
- "version": "1.10.3",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz",
- "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==",
- "devOptional": true,
- "license": "ISC",
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/yargs": {
"version": "17.7.3",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",
diff --git a/templates/admin/add-category-showcase.php b/templates/admin/add-category-showcase.php
index b794b060..3b6627f5 100644
--- a/templates/admin/add-category-showcase.php
+++ b/templates/admin/add-category-showcase.php
@@ -13,7 +13,7 @@
$current_tab = isset( $showcase_details['current_tab'] ) ? $showcase_details['current_tab'] : 'first';
?>
-