Version 1.4.1 - Localhost license bypass and auto-updates
All checks were successful
Create Release Package / build-release (push) Successful in 1m3s

Added localhost/self-licensing license bypass and WordPress auto-update
integration from license server.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 11:55:41 +01:00
parent a4b84f7e41
commit fa26247d1b
21 changed files with 1940 additions and 38 deletions

View File

@@ -4,7 +4,7 @@
* Plugin Name: WooCommerce Tier and Package Prices
* Plugin URI: https://src.bundespruefstelle.ch/magdev/wc-tier-package-prices
* Description: Add tier pricing and package prices to WooCommerce products with configurable quantities at fixed prices
* Version: 1.4.0
* Version: 1.4.1
* Author: Marco Graetsch
* Author URI: https://src.bundespruefstelle.ch/magdev
* Text Domain: wc-tier-package-prices
@@ -46,7 +46,7 @@ if (!function_exists('wc_tpp_php_version_notice')) {
// Define plugin constants
if (!defined('WC_TPP_VERSION')) {
define('WC_TPP_VERSION', '1.4.0');
define('WC_TPP_VERSION', '1.4.1');
}
if (!defined('WC_TPP_PLUGIN_DIR')) {
define('WC_TPP_PLUGIN_DIR', plugin_dir_path(__FILE__));
@@ -111,10 +111,18 @@ if (!class_exists('WC_Tier_Package_Prices')) {
private function includes() {
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-template-loader.php';
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-license-checker.php';
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-update-checker.php';
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-admin.php';
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-product-meta.php';
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-frontend.php';
require_once WC_TPP_PLUGIN_DIR . 'includes/class-wc-tpp-cart.php';
// Initialize license checker (singleton)
WC_TPP_License_Checker::get_instance();
// Initialize update checker (singleton)
WC_TPP_Update_Checker::get_instance();
}
public function declare_hpos_compatibility() {
@@ -132,6 +140,12 @@ if (!class_exists('WC_Tier_Package_Prices')) {
add_option('wc_tpp_enable_tier_pricing', 'yes');
add_option('wc_tpp_enable_package_pricing', 'yes');
add_option('wc_tpp_display_table', 'yes');
// Add default auto-update options
add_option('wc_tpp_update_notification_enabled', 'yes');
add_option('wc_tpp_auto_install_enabled', 'no');
add_option('wc_tpp_update_check_frequency', '12');
flush_rewrite_rules();
}