You've already forked wc-tier-and-package-prices
Release version 1.2.1 - Critical bugfixes for v1.2.0
Fixed two critical bugs introduced in v1.2.0: 1. Admin UI table structure mismatch - CSS still had flexbox styling from old template structure, breaking new table layout. Updated admin.css to properly style table rows with standard table cell padding. 2. Frontend pricing display not showing - Template was checking global enable settings before display. Removed those checks so pricing shows if configured on product AND display setting is enabled. Files changed: - wc-tier-and-package-prices.php - Version bump to 1.2.1 - composer.json - Version bump to 1.2.1 - CLAUDE.md - Updated version and documented fixes - CHANGELOG.md - Added detailed v1.2.1 entry with root cause analysis - assets/css/admin.css - Fixed table styling (removed flexbox) - templates/frontend/pricing-table.twig - Removed global enable checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,13 +5,14 @@
|
||||
# @var object product
|
||||
# @var array tiers
|
||||
# @var array packages
|
||||
# @var bool restrict_to_packages
|
||||
#}
|
||||
<div class="wc-tpp-pricing-container">
|
||||
{% if tiers is not empty and get_option('wc_tpp_enable_tier_pricing') == 'yes' %}
|
||||
{% if tiers is not empty %}
|
||||
{% include 'frontend/tier-pricing-table.twig' with {'product': product, 'tiers': tiers} %}
|
||||
{% endif %}
|
||||
|
||||
{% if packages is not empty and get_option('wc_tpp_enable_package_pricing') == 'yes' %}
|
||||
{% if packages is not empty %}
|
||||
{% include 'frontend/package-pricing-display.twig' with {'packages': packages, 'restrict_to_packages': restrict_to_packages|default(false)} %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user