You've already forked wc-tier-and-package-prices
Release version 1.1.14 - Restore plugin functionality
**CRITICAL FIX:** Restored plugin to working state after v1.1.8-1.1.13 were completely non-functional. **Root Cause:** - v1.1.8 moved class instantiation from individual files to init_classes() method - v1.1.13 wrapped classes in class_exists() guards - Combination prevented any classes from being instantiated - Result: No settings, no frontend, no backend functionality **Solution:** - Reverted to v1.1.2 pattern (last working version) - Each class file now instantiates itself with `new ClassName();` - Removed init_classes() method and woocommerce_loaded hook - All class_exists() guards remain for redeclaration protection **What Now Works:** ✅ WooCommerce Settings → Tier & Package Prices tab ✅ Product edit pages show tier/package pricing meta boxes ✅ Frontend displays pricing tables on product pages ✅ Cart applies tier/package pricing correctly ✅ All plugin functionality fully operational **Files Modified:** - includes/class-wc-tpp-admin.php - includes/class-wc-tpp-product-meta.php - includes/class-wc-tpp-frontend.php - includes/class-wc-tpp-cart.php - wc-tier-and-package-prices.php (removed init_classes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "magdev/wc-tier-package-prices",
|
||||
"description": "WooCommerce plugin for tier pricing and package prices with Twig templates",
|
||||
"version": "1.1.13",
|
||||
"version": "1.1.14",
|
||||
"type": "wordpress-plugin",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user