Compare commits
2
Commits
v1.2.2
..
3d47ee63d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d47ee63d8 | ||
|
|
04eba21521 |
No files matched your search
@@ -5,6 +5,19 @@ 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.3] - 2025-12-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Admin Table Styling**: Applied borderless table styling to all tier/package tables (both simple and variable products). Previously only variation tables had borders removed in v1.2.2. Now all pricing tables in the admin have a consistent borderless appearance matching WooCommerce's clean admin UI style.
|
||||||
|
|
||||||
|
- **Checkbox Styling and Tooltip**: Fixed checkbox styling issues where the help text was displayed inline instead of as a tooltip, and the margin between checkbox and label was too small. Added `desc_tip => true` to the variation restriction checkbox to enable tooltip display. Added CSS rules to increase checkbox-label margin to 8px and hide inline description text when tooltips are used.
|
||||||
|
|
||||||
|
### Changed Files
|
||||||
|
|
||||||
|
- `assets/css/admin.css` - Applied `border: none` to all tier/package table elements; added checkbox margin and description hiding rules
|
||||||
|
- `includes/class-wc-tpp-product-meta.php` - Added `desc_tip => true` parameter to variation checkbox (line 213)
|
||||||
|
|
||||||
## [1.2.2] - 2025-12-29
|
## [1.2.2] - 2025-12-29
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -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.2
|
**Current Version:** 1.2.3
|
||||||
**Author:** Marco Graetsch
|
**Author:** Marco Graetsch
|
||||||
**Project Status:** Production-ready WordPress plugin
|
**Project Status:** Production-ready WordPress plugin
|
||||||
|
|
||||||
@@ -519,7 +519,7 @@ The plugin uses Twig 3.0 for templating. Key files:
|
|||||||
|
|
||||||
### Complete Release Workflow Summary
|
### Complete Release Workflow Summary
|
||||||
|
|
||||||
Based on v1.1.22 release experience, here's the complete workflow:
|
Based on v1.1.22, v1.2.2, and v1.2.3 release experience, here's the complete workflow:
|
||||||
|
|
||||||
1. **Fix bugs/add features** on `dev` branch
|
1. **Fix bugs/add features** on `dev` branch
|
||||||
2. **Update version numbers** (3 files: main plugin file header, constant, composer.json)
|
2. **Update version numbers** (3 files: main plugin file header, constant, composer.json)
|
||||||
@@ -544,6 +544,52 @@ Based on v1.1.22 release experience, here's the complete workflow:
|
|||||||
- `releases/wc-tier-and-package-prices-X.X.X.zip*` - Package and checksums
|
- `releases/wc-tier-and-package-prices-X.X.X.zip*` - Package and checksums
|
||||||
- Feature-specific files (templates, PHP classes, etc.)
|
- Feature-specific files (templates, PHP classes, etc.)
|
||||||
|
|
||||||
|
### Release Package Creation - Critical Notes
|
||||||
|
|
||||||
|
**IMPORTANT:** The zip command must be run from the **parent directory** to create proper archive structure.
|
||||||
|
|
||||||
|
**Correct command (from `/home/magdev/workspaces/php`):**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /home/magdev/workspaces/php
|
||||||
|
zip -r wc-tier-and-package-prices/releases/wc-tier-and-package-prices-X.X.X.zip wc-tier-and-package-prices/ \
|
||||||
|
-x '*/\.git/*' '*/.git/*' 'wc-tier-and-package-prices/.git/*' \
|
||||||
|
'*.gitignore' '*.log' '*/.claude/*' '*/CLAUDE.md' \
|
||||||
|
'*/releases/*' '*/wordpress/*' '*/node_modules/*' \
|
||||||
|
'*/.DS_Store' '*/Thumbs.db' '*/.vscode/*' '*/.idea/*' \
|
||||||
|
'*.sublime-*' '*/notes.*' '*/logs/*' '*/templates/cache/*' \
|
||||||
|
'*/composer.lock'
|
||||||
|
```
|
||||||
|
|
||||||
|
**Critical Exclusions:**
|
||||||
|
|
||||||
|
- `*/wordpress/*` - MUST be excluded! The project has a symlink to WordPress installation that zip will follow, creating 129MB+ packages instead of ~430KB
|
||||||
|
- `.git/*` - All git metadata (multiple patterns needed for reliability)
|
||||||
|
- `.claude/*` and `CLAUDE.md` - Development documentation
|
||||||
|
- `releases/*` - Prevents including previous releases in new ones
|
||||||
|
- `composer.lock` - Not needed in production (vendor/ is included)
|
||||||
|
|
||||||
|
**Expected Package Size:** ~430-431KB (383 files)
|
||||||
|
|
||||||
|
**Package Size Alert:** If >1MB, exclusions failed (likely wordpress symlink included)
|
||||||
|
|
||||||
|
**Verification Steps:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Check size (should be ~430KB)
|
||||||
|
ls -lh releases/wc-tier-and-package-prices-X.X.X.zip
|
||||||
|
|
||||||
|
# 2. Verify file count (should be 383 files)
|
||||||
|
unzip -l releases/wc-tier-and-package-prices-X.X.X.zip | tail -1
|
||||||
|
|
||||||
|
# 3. Check for excluded files
|
||||||
|
unzip -l releases/wc-tier-and-package-prices-X.X.X.zip | grep -E "CLAUDE\.md|\.claude/|\.git/|wordpress/"
|
||||||
|
# Should return nothing (exit code 1)
|
||||||
|
|
||||||
|
# 4. Verify version in package
|
||||||
|
unzip -p releases/wc-tier-and-package-prices-X.X.X.zip wc-tier-and-package-prices/wc-tier-and-package-prices.php | head -30 | grep -E "Version:|WC_TPP_VERSION"
|
||||||
|
```
|
||||||
|
|
||||||
### Future Features and Roadmap
|
### Future Features and Roadmap
|
||||||
|
|
||||||
The is a hierarchical list for upcoming features and can be considered as a
|
The is a hierarchical list for upcoming features and can be considered as a
|
||||||
@@ -566,11 +612,17 @@ Roadmap for the upcoming development.
|
|||||||
|
|
||||||
##### Bugfixes (Completed in v1.2.2)
|
##### 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.
|
1. ~~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.
|
2. ~~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.
|
3. ~~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.
|
||||||
|
|
||||||
|
##### Bugfixes (Completed in v1.2.3)
|
||||||
|
|
||||||
|
1. ~~Style the tier and packages tables in admin on simple products according to the styles on variable products.~~ ✅ **FIXED in v1.2.3** - Applied borderless table styling to all tier/package tables (both simple and variable products). Removed borders from table, th, and td elements to match WooCommerce's clean admin UI style.
|
||||||
|
|
||||||
|
2. ~~The checkbox styles from 1.2.2 bug 3 are still not looking correct. The helptext is written instead of hidden after the help icon and the margin between checkbox and label are to small.~~ ✅ **FIXED in v1.2.3** - Added `desc_tip => true` to variation checkbox to show tooltip instead of inline text. Added CSS rules to increase checkbox-label margin (8px) and hide inline description text when tooltip is used.
|
||||||
|
|
||||||
##### New Features
|
##### New Features
|
||||||
|
|
||||||
|
|||||||
+23
-10
@@ -23,29 +23,23 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Table styling */
|
/* Table styling - borderless design for all tier/package tables */
|
||||||
.wc-tpp-tiers-table,
|
.wc-tpp-tiers-table,
|
||||||
.wc-tpp-packages-table {
|
.wc-tpp-packages-table {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-tpp-tiers-table th,
|
.wc-tpp-tiers-table th,
|
||||||
.wc-tpp-packages-table th {
|
.wc-tpp-packages-table th {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: left;
|
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;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-tpp-variation-pricing .wc-tpp-tiers-table th,
|
.wc-tpp-tiers-table td,
|
||||||
.wc-tpp-variation-pricing .wc-tpp-packages-table th,
|
.wc-tpp-packages-table td {
|
||||||
.wc-tpp-variation-pricing .wc-tpp-tiers-table td,
|
|
||||||
.wc-tpp-variation-pricing .wc-tpp-packages-table td {
|
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,3 +95,22 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Checkbox styling improvements */
|
||||||
|
#_wc_tpp_restrict_to_packages,
|
||||||
|
input[id^="wc_tpp_restrict_to_packages_"] {
|
||||||
|
margin-right: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure description is properly hidden when desc_tip is used */
|
||||||
|
.wc-tpp-tier-pricing .woocommerce-help-tip,
|
||||||
|
.wc-tpp-package-pricing .woocommerce-help-tip,
|
||||||
|
.wc-tpp-variation-pricing .woocommerce-help-tip {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide inline description text when tooltip is shown */
|
||||||
|
#_wc_tpp_restrict_to_packages + .description,
|
||||||
|
input[id^="wc_tpp_restrict_to_packages_"] + .description {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
+1
-1
@@ -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.2",
|
"version": "1.2.3",
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|||||||
@@ -210,6 +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'),
|
||||||
|
'desc_tip' => true,
|
||||||
'value' => $restrict,
|
'value' => $restrict,
|
||||||
'cbvalue' => 'yes',
|
'cbvalue' => 'yes',
|
||||||
'wrapper_class' => 'form-row form-row-full'
|
'wrapper_class' => 'form-row form-row-full'
|
||||||
|
|||||||
@@ -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.2
|
* Version: 1.2.3
|
||||||
* 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.2');
|
define('WC_TPP_VERSION', '1.2.3');
|
||||||
}
|
}
|
||||||
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