You've already forked wc-tier-and-package-prices
Added comprehensive package quantity restriction functionality that allows limiting product purchases to predefined package sizes only. Features: - Global setting to enable package quantity restrictions - Per-product override for quantity restrictions - Automatic hiding of quantity input field when restricted - Frontend validation with package selection UI - Server-side cart validation - User-friendly error messages - Complete translations for all supported languages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
18 lines
653 B
Twig
18 lines
653 B
Twig
{#
|
|
# Frontend Pricing Table Template
|
|
#
|
|
# @package WC_Tier_Package_Prices
|
|
# @var object product
|
|
# @var array tiers
|
|
# @var array packages
|
|
#}
|
|
<div class="wc-tpp-pricing-container">
|
|
{% if tiers is not empty and get_option('wc_tpp_enable_tier_pricing') == 'yes' %}
|
|
{% 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' %}
|
|
{% include 'frontend/package-pricing-display.twig' with {'packages': packages, 'restrict_to_packages': restrict_to_packages|default(false)} %}
|
|
{% endif %}
|
|
</div>
|