You've already forked wc-tier-and-package-prices
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef314e36bc | |||
| 415f39e826 | |||
| 6733ca5f98 | |||
| 00c5b87aac |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -29,3 +29,6 @@ notes.*
|
|||||||
# OS
|
# OS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
._*
|
._*
|
||||||
|
|
||||||
|
# local code
|
||||||
|
wordpress
|
||||||
|
|||||||
36
CHANGELOG.md
36
CHANGELOG.md
@@ -5,6 +5,42 @@ All notable changes to WooCommerce Tier and Package Prices will be documented in
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.2.2] - 2025-12-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Variation UI Styling**: Removed table borders for variation pricing tables to match WooCommerce's borderless variation UI style. Added CSS rules specifically targeting `.wc-tpp-variation-pricing` tables to remove borders while keeping them for simple product tables.
|
||||||
|
|
||||||
|
- **Missing Translations**: Added missing admin template translations for "Min Quantity", "Price", and "Label (optional)" to all language files (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH, en_US). These strings were used in the variation admin UI added in v1.2.0 but weren't included in translation files.
|
||||||
|
|
||||||
|
- **Checkbox Rendering**: Fixed variation restriction checkbox rendering issue. The `wc_tpp_restrict_to_packages[]` checkbox in variation pricing fields was using a ternary expression that prevented proper checked state handling. Simplified to direct value assignment for WooCommerce's checkbox function to work correctly.
|
||||||
|
|
||||||
|
### Changed Files
|
||||||
|
|
||||||
|
- `assets/css/admin.css` - Added border removal for variation pricing tables
|
||||||
|
- `includes/class-wc-tpp-product-meta.php` - Fixed checkbox value parameter (line 213)
|
||||||
|
- `languages/*.po` - Added missing translation entries
|
||||||
|
- `languages/*.mo` - Recompiled from updated .po files
|
||||||
|
|
||||||
|
## [1.2.1] - 2025-12-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Admin UI Display**: Fixed table layout in admin product edit screens. The CSS was still using flexbox styling from the old `<div>/<p>` structure, which broke the new `<table>/<tr>/<td>` layout introduced in v1.2.0. Updated `assets/css/admin.css` to properly style table rows with standard table cell padding and removed obsolete flexbox properties.
|
||||||
|
|
||||||
|
- **Frontend Pricing Display**: Fixed pricing tables not showing on simple product pages. Removed global "Enable Tier Pricing" and "Enable Package Pricing" checks from the frontend template (`templates/frontend/pricing-table.twig`). Pricing tables now display if configured on a product AND the "Display Pricing Table" setting is enabled, regardless of individual feature enable settings. Cart calculations still respect global enable settings for proper pricing application.
|
||||||
|
|
||||||
|
### Technical Details
|
||||||
|
|
||||||
|
**Root Cause - Admin UI Bug**: In v1.2.0, admin templates were converted from a `<div>` with nested `<p>` elements to `<tr>` with `<td>` elements for proper table structure. However, the CSS file (`assets/css/admin.css`) was not updated accordingly, leaving flexbox styling (`.wc-tpp-tier-row { display: flex; gap: 15px; ... }`) that conflicted with table display. This caused columns to not align with table headers.
|
||||||
|
|
||||||
|
**Root Cause - Frontend Display Bug**: The frontend pricing table template was checking both `get_option('wc_tpp_enable_tier_pricing')` AND `get_option('wc_tpp_enable_package_pricing')` before displaying pricing. This meant if these global settings were disabled (even though defaults are 'yes'), pricing configured on products wouldn't show. The better UX is: if pricing is configured AND display is enabled, show it. The global enable settings now only control cart calculation and admin UI visibility.
|
||||||
|
|
||||||
|
### Changed Files
|
||||||
|
|
||||||
|
- `assets/css/admin.css` - Replaced flexbox styling with table cell styling
|
||||||
|
- `templates/frontend/pricing-table.twig` - Removed global enable setting checks from display conditions
|
||||||
|
|
||||||
## [1.2.0] - 2025-12-29
|
## [1.2.0] - 2025-12-29
|
||||||
|
|
||||||
### Added - Variable Product Support
|
### Added - Variable Product Support
|
||||||
|
|||||||
20
CLAUDE.md
20
CLAUDE.md
@@ -1,7 +1,7 @@
|
|||||||
# WooCommerce Tier and Package Prices - AI Context Document
|
# WooCommerce Tier and Package Prices - AI Context Document
|
||||||
|
|
||||||
**Last Updated:** 2025-12-29
|
**Last Updated:** 2025-12-29
|
||||||
**Current Version:** 1.2.0
|
**Current Version:** 1.2.2
|
||||||
**Author:** Marco Graetsch
|
**Author:** Marco Graetsch
|
||||||
**Project Status:** Production-ready WordPress plugin
|
**Project Status:** Production-ready WordPress plugin
|
||||||
|
|
||||||
@@ -558,7 +558,23 @@ Roadmap for the upcoming development.
|
|||||||
|
|
||||||
#### Version 1.2.x
|
#### Version 1.2.x
|
||||||
|
|
||||||
1. New Feature: Create different, selectable templates for tierprices and packages to use in the frontend. Make the new templates selectable globally on the settings-page, not per product.
|
##### Bugfixes (Completed in v1.2.1)
|
||||||
|
|
||||||
|
1. ~~The admin templates are not show right. The row templates didn't match the new table structure. The table-body columns didn't fit the table-head columns.~~ ✅ **FIXED in v1.2.1** - Updated admin.css to remove flexbox styling that was breaking the new `<table>/<tr>/<td>` structure introduced in v1.2.0. The CSS was still using flexbox layout from the old `<div>/<p>` structure.
|
||||||
|
|
||||||
|
2. ~~The tier and package prices are not shown on simple product pages~~ ✅ **FIXED in v1.2.1** - Removed global enable/disable checks from frontend template. Pricing tables now display if configured on a product AND the "Display Pricing Table" setting is enabled, regardless of "Enable Tier Pricing" or "Enable Package Pricing" global settings. Cart calculations still respect global enable settings.
|
||||||
|
|
||||||
|
##### Bugfixes (Completed in v1.2.2)
|
||||||
|
|
||||||
|
3. ~~Remove the table borders in admin on variable product to better fit the surrounding element styles.~~ ✅ **FIXED in v1.2.2** - Added CSS rules to remove table borders specifically for variation pricing tables (`.wc-tpp-variation-pricing`), matching WooCommerce's borderless variation UI style.
|
||||||
|
|
||||||
|
4. ~~Add missing translations in admin templates ("Price", "Tier & Package Pricing", "Min Quantity") for all languages used in this project.~~ ✅ **FIXED in v1.2.2** - Added missing translation entries for "Min Quantity", "Price", and "Label (optional)" to all .po files (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH, en_US) and recompiled .mo files.
|
||||||
|
|
||||||
|
5. ~~Check the template for wc_tpp_restrict_to_packages[] checkbox elements in admin on variable products and fix the rendering.~~ ✅ **FIXED in v1.2.2** - Fixed checkbox value parameter in variation pricing fields. Changed from ternary expression to direct value assignment, allowing WooCommerce's `woocommerce_wp_checkbox()` to properly handle the checked state.
|
||||||
|
|
||||||
|
##### New Features
|
||||||
|
|
||||||
|
1. Create different, selectable templates for tierprices and packages to use in the frontend. Make the new templates selectable globally on the settings-page, not per product.
|
||||||
|
|
||||||
### When Debugging Cart Issues
|
### When Debugging Cart Issues
|
||||||
|
|
||||||
|
|||||||
@@ -23,42 +23,54 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Table styling */
|
||||||
|
.wc-tpp-tiers-table,
|
||||||
|
.wc-tpp-packages-table {
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wc-tpp-tiers-table th,
|
||||||
|
.wc-tpp-packages-table th {
|
||||||
|
font-weight: 600;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove borders for variation pricing tables to match WooCommerce variation UI style */
|
||||||
|
.wc-tpp-variation-pricing .wc-tpp-tiers-table,
|
||||||
|
.wc-tpp-variation-pricing .wc-tpp-packages-table {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wc-tpp-variation-pricing .wc-tpp-tiers-table th,
|
||||||
|
.wc-tpp-variation-pricing .wc-tpp-packages-table th,
|
||||||
|
.wc-tpp-variation-pricing .wc-tpp-tiers-table td,
|
||||||
|
.wc-tpp-variation-pricing .wc-tpp-packages-table td {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table row styling - rows are now <tr> elements in a table */
|
||||||
.wc-tpp-tier-row,
|
.wc-tpp-tier-row,
|
||||||
.wc-tpp-package-row {
|
.wc-tpp-package-row {
|
||||||
display: flex;
|
/* No special styling needed - standard table row */
|
||||||
gap: 15px;
|
|
||||||
align-items: flex-end;
|
|
||||||
padding: 15px;
|
|
||||||
background: #f9f9f9;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-tpp-tier-row .form-field,
|
.wc-tpp-tier-row td,
|
||||||
.wc-tpp-package-row .form-field {
|
.wc-tpp-package-row td {
|
||||||
margin: 0;
|
padding: 8px;
|
||||||
flex: 1;
|
vertical-align: middle;
|
||||||
}
|
|
||||||
|
|
||||||
.wc-tpp-tier-row label,
|
|
||||||
.wc-tpp-package-row label {
|
|
||||||
display: block;
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure WooCommerce input classes work properly in table cells */
|
||||||
.wc-tpp-tier-row input,
|
.wc-tpp-tier-row input,
|
||||||
.wc-tpp-package-row input {
|
.wc-tpp-package-row input {
|
||||||
width: 100%;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-tpp-remove-tier,
|
.wc-tpp-remove-tier,
|
||||||
.wc-tpp-remove-package {
|
.wc-tpp-remove-package {
|
||||||
flex-shrink: 0;
|
|
||||||
color: #b32d2e;
|
color: #b32d2e;
|
||||||
border-color: #b32d2e;
|
border-color: #b32d2e;
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-tpp-remove-tier:hover,
|
.wc-tpp-remove-tier:hover,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "magdev/wc-tier-package-prices",
|
"name": "magdev/wc-tier-package-prices",
|
||||||
"description": "WooCommerce plugin for tier pricing and package prices with Twig templates",
|
"description": "WooCommerce plugin for tier pricing and package prices with Twig templates",
|
||||||
"version": "1.2.0",
|
"version": "1.2.2",
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
|||||||
'name' => 'wc_tpp_restrict_to_packages[' . $loop . ']',
|
'name' => 'wc_tpp_restrict_to_packages[' . $loop . ']',
|
||||||
'label' => __('Restrict to Package Quantities', 'wc-tier-package-prices'),
|
'label' => __('Restrict to Package Quantities', 'wc-tier-package-prices'),
|
||||||
'description' => __('Only allow quantities defined in packages above', 'wc-tier-package-prices'),
|
'description' => __('Only allow quantities defined in packages above', 'wc-tier-package-prices'),
|
||||||
'value' => $restrict === 'yes' ? 'yes' : 'no',
|
'value' => $restrict,
|
||||||
'cbvalue' => 'yes',
|
'cbvalue' => 'yes',
|
||||||
'wrapper_class' => 'form-row form-row-full'
|
'wrapper_class' => 'form-row form-row-full'
|
||||||
));
|
));
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "Die Menge %1$d ist für %2$s nicht verfügbar. Bitte wählen Sie aus den
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "Optionen ansehen"
|
msgstr "Optionen ansehen"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "Optionen für %s ansehen"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Mindestmenge"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Preis"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Beschriftung (optional)"
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "Die Menge %1$d ist für %2$s nicht verfügbar. Bitte wähle aus den verf
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "Optionen ansehen"
|
msgstr "Optionen ansehen"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "Optionen für %s ansehen"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Mindestmenge"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Preis"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Beschriftung (optional)"
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "Die Menge %1$d ist für %2$s nicht verfügbar. Bitte wählen Sie aus den
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "Optionen ansehen"
|
msgstr "Optionen ansehen"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "Optionen für %s ansehen"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Mindestmenge"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Preis"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Beschriftung (optional)"
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "Die Menge %1$d ist für %2$s nicht verfügbar. Bitte wähle aus den verf
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "Optionen ansehen"
|
msgstr "Optionen ansehen"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "Optionen für %s ansehen"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Mindestmenge"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Preis"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Beschriftung (optional)"
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "The quantity %1$d is not available for %2$s. Please choose from the avai
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "View Options"
|
msgstr "View Options"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Min Quantity"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Price"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Label (optional)"
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "La quantité %1$d n'est pas disponible pour %2$s. Veuillez choisir parmi
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "Voir les options"
|
msgstr "Voir les options"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "Voir les options pour %s"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Quantité minimale"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Prix"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Étiquette (optionnel)"
|
||||||
|
|||||||
Binary file not shown.
@@ -240,6 +240,20 @@ msgstr "La quantità %1$d non è disponibile per %2$s. Si prega di scegliere tra
|
|||||||
msgid "View Options"
|
msgid "View Options"
|
||||||
msgstr "Visualizza opzioni"
|
msgstr "Visualizza opzioni"
|
||||||
|
|
||||||
#: includes/class-wc-tpp-frontend.php:178
|
|
||||||
msgid "View options for %s"
|
#: includes/class-wc-tpp-product-meta.php:36
|
||||||
msgstr "Visualizza opzioni per %s"
|
#: includes/class-wc-tpp-product-meta.php:140
|
||||||
|
msgid "Min Quantity"
|
||||||
|
msgstr "Quantità minima"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:37
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:141
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:164
|
||||||
|
msgid "Price"
|
||||||
|
msgstr "Prezzo"
|
||||||
|
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:38
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:142
|
||||||
|
#: includes/class-wc-tpp-product-meta.php:165
|
||||||
|
msgid "Label (optional)"
|
||||||
|
msgstr "Etichetta (facoltativo)"
|
||||||
|
|||||||
@@ -5,13 +5,14 @@
|
|||||||
# @var object product
|
# @var object product
|
||||||
# @var array tiers
|
# @var array tiers
|
||||||
# @var array packages
|
# @var array packages
|
||||||
|
# @var bool restrict_to_packages
|
||||||
#}
|
#}
|
||||||
<div class="wc-tpp-pricing-container">
|
<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} %}
|
{% include 'frontend/tier-pricing-table.twig' with {'product': product, 'tiers': tiers} %}
|
||||||
{% endif %}
|
{% 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)} %}
|
{% include 'frontend/package-pricing-display.twig' with {'packages': packages, 'restrict_to_packages': restrict_to_packages|default(false)} %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* Plugin Name: WooCommerce Tier and Package Prices
|
* Plugin Name: WooCommerce Tier and Package Prices
|
||||||
* Plugin URI: https://src.bundespruefstelle.ch/magdev/wc-tier-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
|
* Description: Add tier pricing and package prices to WooCommerce products with configurable quantities at fixed prices
|
||||||
* Version: 1.2.0
|
* Version: 1.2.2
|
||||||
* Author: Marco Graetsch
|
* Author: Marco Graetsch
|
||||||
* Author URI: https://src.bundespruefstelle.ch/magdev
|
* Author URI: https://src.bundespruefstelle.ch/magdev
|
||||||
* Text Domain: wc-tier-package-prices
|
* Text Domain: wc-tier-package-prices
|
||||||
@@ -23,7 +23,7 @@ if (!defined('ABSPATH')) {
|
|||||||
|
|
||||||
// Define plugin constants
|
// Define plugin constants
|
||||||
if (!defined('WC_TPP_VERSION')) {
|
if (!defined('WC_TPP_VERSION')) {
|
||||||
define('WC_TPP_VERSION', '1.2.0');
|
define('WC_TPP_VERSION', '1.2.2');
|
||||||
}
|
}
|
||||||
if (!defined('WC_TPP_PLUGIN_DIR')) {
|
if (!defined('WC_TPP_PLUGIN_DIR')) {
|
||||||
define('WC_TPP_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
define('WC_TPP_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
||||||
|
|||||||
Reference in New Issue
Block a user