You've already forked wc-tier-and-package-prices
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b2efb89d59 | |||
| 0f5779dc56 | |||
| d71f2c01dc | |||
| 82c8008fed | |||
| 4871b7957d | |||
| f7508a3d9c | |||
| 23f81ce58c | |||
| 9e96ff3321 | |||
| cf11cb5bd1 | |||
| f26574aa4b | |||
| 348158050e | |||
| d7a61f29b4 | |||
| 10a1f94a31 | |||
| ae946683b3 |
@@ -39,7 +39,10 @@
|
||||
"Bash('wc-tier-and-package-prices/logs/*' )",
|
||||
"Bash('wc-tier-and-package-prices/templates/cache/*' )",
|
||||
"Bash('wc-tier-and-package-prices/composer.lock' )",
|
||||
"Bash('*/wordpress/*')"
|
||||
"Bash('*/wordpress/*')",
|
||||
"Bash(echo:*)",
|
||||
"Skill(fix-session)",
|
||||
"Skill(fix-session:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,3 +32,4 @@ notes.*
|
||||
|
||||
# local code
|
||||
wordpress
|
||||
core
|
||||
111
CHANGELOG.md
111
CHANGELOG.md
@@ -5,6 +5,117 @@ 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/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.2.9] - 2025-12-30
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Price Header Not Translated**: The "Price (%s)" header in admin tables was not being properly translated because the translation function was placed incorrectly within the printf statement. Changed from `printf(__('Price (%s)', ...), ...)` to `printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), ...)` to ensure proper translation while maintaining the currency placeholder functionality.
|
||||
|
||||
- **Placeholder HTML Entity Encoding Issue**: Currency symbols in price input placeholders were being displayed as HTML entities (e.g., "€" instead of "€") because the concatenated string was being passed through the translation filter which was encoding special characters. Removed the unnecessary translation filter from concatenated placeholder strings since they are example values that should not be translated.
|
||||
|
||||
- **Variation Pricing Still Not Deletable (Regression from v1.2.8)**: Despite the fix in v1.2.8, variation pricing data was still not being properly deleted in all scenarios. The issue was with the conditional logic structure - the code had separate `if/else` branches that could fail in edge cases. Restructured the save logic to be more defensive: initialize arrays at the start, populate only if valid POST data exists, then unconditionally perform either update (if not empty) or delete (if empty). This guarantees proper cleanup regardless of POST data structure.
|
||||
|
||||
### Technical Details
|
||||
|
||||
**Translation Fix**:
|
||||
|
||||
- Changed all 6 instances of `printf(__('Price (%s)', 'wc-tier-package-prices'), ...)`
|
||||
- To: `printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), ...)`
|
||||
- The `__()` function now receives the text domain parameter correctly
|
||||
- Added `esc_html` for proper output escaping
|
||||
|
||||
**Placeholder Encoding Fix**:
|
||||
|
||||
- Changed tier-row.twig placeholder from: `{{ ('e.g., 9.99 ' ~ currency_symbol)|__('wc-tier-package-prices') }}`
|
||||
- To: `{{ 'e.g., 9.99 ' ~ currency_symbol }}`
|
||||
- Changed package-row.twig placeholder from: `{{ ('e.g., 99.99 ' ~ currency_symbol)|__('wc-tier-package-prices') }}`
|
||||
- To: `{{ 'e.g., 99.99 ' ~ currency_symbol }}`
|
||||
- Removed translation filter from concatenated example values to prevent HTML entity encoding
|
||||
|
||||
**Variation Save Logic Refactor**:
|
||||
|
||||
```php
|
||||
// Old pattern (v1.2.8):
|
||||
if (isset($_POST['wc_tpp_tiers'][$loop])) {
|
||||
$tiers = array();
|
||||
// ... populate tiers ...
|
||||
if (!empty($tiers)) {
|
||||
update_post_meta(...);
|
||||
} else {
|
||||
delete_post_meta(...);
|
||||
}
|
||||
} else {
|
||||
delete_post_meta(...);
|
||||
}
|
||||
|
||||
// New pattern (v1.2.9):
|
||||
$tiers = array();
|
||||
if (isset($_POST['wc_tpp_tiers'][$loop]) && is_array($_POST['wc_tpp_tiers'][$loop])) {
|
||||
// ... populate tiers ...
|
||||
}
|
||||
// Always perform update or delete based on final state
|
||||
if (!empty($tiers)) {
|
||||
update_post_meta(...);
|
||||
} else {
|
||||
delete_post_meta(...);
|
||||
}
|
||||
```
|
||||
|
||||
- Eliminated conditional branching that could miss edge cases
|
||||
- Added explicit `is_array()` check for extra safety
|
||||
- Guaranteed that one of update_post_meta() or delete_post_meta() is always called
|
||||
- Applied to both `save_variation_pricing_fields()` for tier and package pricing
|
||||
|
||||
**User Impact**:
|
||||
|
||||
- Price headers now display in the administrator's configured language
|
||||
- Currency symbols display correctly without HTML encoding in placeholders
|
||||
- Variation pricing deletion now works reliably in all scenarios
|
||||
- Database remains clean with no orphaned empty arrays
|
||||
|
||||
### Changed Files
|
||||
|
||||
- `includes/class-wc-tpp-product-meta.php` - Fixed translation function calls in 6 table headers; refactored save_variation_pricing_fields() logic for tiers and packages
|
||||
- `templates/admin/tier-row.twig` - Removed translation filter from placeholder concatenation
|
||||
- `templates/admin/package-row.twig` - Removed translation filter from placeholder concatenation
|
||||
|
||||
## [1.2.8] - 2025-12-30
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Currency Symbol Missing in Admin Headers and Placeholders**: Table headers in the admin pricing configuration now display "Price (CURRENCY)" instead of just "Price", making it immediately clear which currency is being used. Price input placeholders now show currency symbol (e.g., "e.g., 9.99 $" instead of "e.g., 9.99"), providing better UX for administrators configuring pricing in different currencies.
|
||||
|
||||
- **Variation Pricing Data Not Deleted Properly (Critical)**: When administrators deleted all tier or package pricing entries from a variation (or simple/parent product) and saved, the empty pricing data was still stored in the database instead of being deleted. This caused variations to retain deleted pricing rules. The save logic now properly detects when the filtered pricing arrays are empty after removing invalid entries and deletes the post meta instead of saving empty arrays.
|
||||
|
||||
### Technical Details
|
||||
|
||||
**Currency Symbol Enhancement**:
|
||||
- Updated all table headers to use `printf(__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol())`
|
||||
- Modified `render_tier_row()` and `render_package_row()` methods to pass `currency_symbol` to Twig templates
|
||||
- Updated `render_variation_tier_row()` and `render_variation_package_row()` with same currency symbol parameter
|
||||
- Changed Twig template placeholders from `'e.g., 9.99'` to `('e.g., 9.99 ' ~ currency_symbol)`
|
||||
- Affects all pricing contexts: simple products, variable product parents, and variations
|
||||
|
||||
**Pricing Deletion Fix**:
|
||||
- Modified `save_tier_package_fields()` method (simple/parent products) to check `if (!empty($tiers))` before saving
|
||||
- Modified `save_variation_pricing_fields()` method (variations) with same empty check logic
|
||||
- Changed logic from "save on isset, delete otherwise" to "filter entries, then save if not empty, delete if empty"
|
||||
- Applies to both tier pricing and package pricing for all product types
|
||||
- Root cause was filtering out empty entries but still calling `update_post_meta()` with an empty array
|
||||
|
||||
**User Impact**:
|
||||
- Administrators see currency symbol in all pricing configuration interfaces
|
||||
- Clear indication of which currency prices should be entered in
|
||||
- Deleting all pricing rules now properly removes them from the database
|
||||
- No orphaned pricing data remains after deletion
|
||||
- Works correctly for simple products, variable product parents, and variations
|
||||
|
||||
### Changed Files
|
||||
|
||||
- `includes/class-wc-tpp-product-meta.php` - Added currency symbol to all table headers; updated all render methods to pass currency symbol; fixed empty array deletion logic in both save methods
|
||||
- `templates/admin/tier-row.twig` - Updated placeholder to include currency symbol
|
||||
- `templates/admin/package-row.twig` - Updated placeholder to include currency symbol
|
||||
|
||||
## [1.2.7] - 2025-12-30
|
||||
|
||||
### Fixed
|
||||
|
||||
144
CLAUDE.md
144
CLAUDE.md
@@ -1,7 +1,7 @@
|
||||
# WooCommerce Tier and Package Prices - AI Context Document
|
||||
|
||||
**Last Updated:** 2025-12-30
|
||||
**Current Version:** 1.2.5
|
||||
**Current Version:** 1.2.9
|
||||
**Author:** Marco Graetsch
|
||||
**Project Status:** Production-ready WordPress plugin
|
||||
|
||||
@@ -355,8 +355,8 @@ Update version in 3 places:
|
||||
**CRITICAL:** The zip command must be run from the **parent directory** of the plugin folder to create proper archive structure.
|
||||
|
||||
```bash
|
||||
# From parent directory (/home/magdev/workspaces/node)
|
||||
cd /home/magdev/workspaces/node
|
||||
# From parent directory (/home/magdev/workspaces/php)
|
||||
cd /home/magdev/workspaces/php
|
||||
|
||||
# Create zip excluding dev files - note the correct path structure
|
||||
zip -r wc-tier-and-package-prices/releases/wc-tier-and-package-prices-X.X.X.zip wc-tier-and-package-prices/ \
|
||||
@@ -546,11 +546,13 @@ When modifying admin input fields in Twig templates, use WooCommerce's standard
|
||||
**CRITICAL LESSON from v1.2.4:** WooCommerce's core admin CSS uses high-specificity selectors that require `!important` to override.
|
||||
|
||||
**Problem Symptoms:**
|
||||
|
||||
- CSS rules not applying despite correct selectors
|
||||
- Styles work in simple cases but fail with WooCommerce elements
|
||||
- Browser DevTools shows rule crossed out or overridden
|
||||
|
||||
**Diagnostic Steps:**
|
||||
|
||||
1. Inspect element in browser DevTools
|
||||
2. Check "Computed" tab to see which styles are actually applied
|
||||
3. Look for crossed-out rules in "Styles" tab (indicates override)
|
||||
@@ -559,6 +561,7 @@ When modifying admin input fields in Twig templates, use WooCommerce's standard
|
||||
**Solution Patterns:**
|
||||
|
||||
**For Table Styling:**
|
||||
|
||||
```css
|
||||
/* ❌ This will likely be overridden */
|
||||
.wc-tpp-tiers-table {
|
||||
@@ -582,6 +585,7 @@ When modifying admin input fields in Twig templates, use WooCommerce's standard
|
||||
```
|
||||
|
||||
**For Float-Based Layouts:**
|
||||
|
||||
```css
|
||||
/* ❌ Float positioning is hard to control precisely */
|
||||
.woocommerce-help-tip {
|
||||
@@ -606,6 +610,7 @@ label[for="_wc_tpp_restrict_to_packages"] {
|
||||
```
|
||||
|
||||
**General Rules:**
|
||||
|
||||
1. **Always test in actual WordPress admin** - browser preview may not show WooCommerce's CSS
|
||||
2. **Target all related elements** - tables require styling on `table`, `thead`, `tbody`, `tr`, `th`, `td`
|
||||
3. **Use `!important` sparingly but don't fear it** - sometimes it's the only way to override WooCommerce core
|
||||
@@ -613,6 +618,7 @@ label[for="_wc_tpp_restrict_to_packages"] {
|
||||
5. **Check across browsers** - table rendering can vary between Chrome/Firefox/Safari
|
||||
|
||||
**When Styles Don't Apply:**
|
||||
|
||||
- First verify selector is correct (DevTools should show rule, even if crossed out)
|
||||
- If selector is correct but crossed out, increase specificity or add `!important`
|
||||
- If selector doesn't appear at all, check file is enqueued and cache is cleared
|
||||
@@ -692,7 +698,7 @@ zip -r wc-tier-and-package-prices/releases/wc-tier-and-package-prices-X.X.X.zip
|
||||
|
||||
**Critical Exclusions:**
|
||||
|
||||
- `*/wordpress/*` - MUST be excluded! The project has a symlink to WordPress installation that zip will follow, creating 129MB+ packages instead of ~430KB
|
||||
- `*/wordpress/*` and `*/core/*` - 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
|
||||
@@ -765,13 +771,29 @@ Roadmap for the upcoming development.
|
||||
|
||||
2. ~~Make it possible to define tier or package prices on variable products in the parent product as a default for that product and all variants of it unless a variant has its own tier or package prices.~~ ✅ **COMPLETED in v1.2.5** - Implemented parent product default pricing with automatic fallback. Variable products can define tier/package pricing once at parent level; variations inherit these defaults unless they have their own specific pricing. Added helper methods in cart class and updated all pricing/restriction checks to support parent fallback.
|
||||
|
||||
##### Fixes for v1.2.5
|
||||
##### Bugfixes (Completed in v1.2.6 and v1.2.7)
|
||||
|
||||
1. The table headers in admin are still visible.
|
||||
1. ~~Table headers in admin are still visible when empty.~~ ✅ **FIXED in v1.2.7** - The CSS `:has()` pseudo-class approach from v1.2.5/v1.2.6 wasn't working reliably across all browsers. Implemented JavaScript-based solution that adds/removes `has-rows` class on tables. Headers now hide by default (CSS) and show only when table has rows (JavaScript toggles class). Function `updateTableHeaders()` is called on page load and after all add/remove row operations.
|
||||
|
||||
2. The parent product fallback on variable product is also not visible.
|
||||
2. ~~Parent product pricing forms not visible in admin.~~ ✅ **FIXED in v1.2.6 and v1.2.7** - The backend fallback logic from v1.2.5 was implemented but the admin UI to configure it was missing. Added `add_variable_parent_pricing_fields()` method that displays pricing forms for variable product parents. Fixed hook issue in v1.2.7: changed from `woocommerce_product_options_pricing` (only fires for simple products) to `woocommerce_product_options_general_product_data` (fires for all product types). Variable product parents now have a "Default Tier & Package Pricing for All Variations" section where defaults can be configured.
|
||||
|
||||
##### Planned Enhancements for v1.2.6+
|
||||
##### Translation Updates (Completed in v1.2.7)
|
||||
|
||||
1. ✅ **COMPLETED** - Updated all translation files (.pot, .po, .mo) with new strings from v1.2.6 and v1.2.7 for variable product parent pricing features. All 7 language variants updated with translations for "Default Tier & Package Pricing for All Variations" and related strings.
|
||||
|
||||
##### Bugfixes (Completed in v1.2.8)
|
||||
|
||||
1. ~~Add a Suffix with the current configured default currency to the table-header and form placeholder. Use the common currency notation in placeholder~~ ✅ **FIXED in v1.2.8** - Updated all table headers in admin to display "Price (€)" format using `printf(__('Price (%s)'), get_woocommerce_currency_symbol())`. Modified all template render methods (tier_row, package_row, variation_tier_row, variation_package_row) to pass currency_symbol to Twig templates. Updated admin/tier-row.twig and admin/package-row.twig to concatenate currency symbol in price input placeholders (e.g., "e.g., 9.99 €"). Applied to simple products, variable parent products, and all variations.
|
||||
|
||||
2. ~~Already stored tier and package prices on the children of a variable product are still available after deletion. Looks like the storage mechanism has an error. This occurs only on the child product, not on the parent product.~~ ✅ **FIXED in v1.2.8** - Fixed save logic in both `save_tier_package_fields()` and `save_variation_pricing_fields()` methods. Root cause: Empty arrays were being saved via `update_post_meta()` instead of being deleted. Changed logic from "save on isset, delete otherwise" to "filter entries, then save if not empty, delete if empty". Added `if (!empty($tiers))` and `if (!empty($packages))` checks before calling `update_post_meta()`. Now properly calls `delete_post_meta()` when all pricing entries are removed, preventing empty arrays from persisting in database.
|
||||
|
||||
##### Bugfixes (Completed in v1.2.9)
|
||||
|
||||
1. ~~The Price header in admin tables while configuring tier and package prices is not translated. Also the placeholder on the form elements for prices has the wrong encoding, the special characters on the placeholder are show in html-entity encoding.~~ ✅ **FIXED in v1.2.9** - Fixed translation function placement in printf statements by changing from `printf(__('Price (%s)', ...), ...)` to `printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), ...)`. This ensures the text domain is passed correctly to the translation function while maintaining the currency placeholder functionality. Also removed the translation filter from concatenated placeholder strings in Twig templates (changed from `{{ ('e.g., 9.99 ' ~ currency_symbol)|__('wc-tier-package-prices') }}` to `{{ 'e.g., 9.99 ' ~ currency_symbol }}`) because example values should not be translated and the filter was causing HTML entity encoding of special characters.
|
||||
|
||||
2. ~~The tier and package prices for children of a variable product are still not deletable. After storing the product, the previously deleted rows are back again.~~ ✅ **FIXED in v1.2.9** - Despite the fix in v1.2.8, edge cases remained due to conditional branching structure. Refactored `save_variation_pricing_fields()` with more defensive logic: initialize arrays at the start ($tiers = array()), populate only if valid POST data exists (with added is_array() check), then unconditionally perform either update_post_meta() (if !empty) or delete_post_meta() (if empty). This guarantees proper cleanup regardless of POST data structure and eliminates the if/else branching that could miss edge cases.
|
||||
|
||||
##### Planned Enhancements for v1.2.10+
|
||||
|
||||
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.
|
||||
|
||||
@@ -789,6 +811,112 @@ Roadmap for the upcoming development.
|
||||
- Always check filter/action documentation for parameter types
|
||||
- Don't assume cart item arrays everywhere - sometimes it's product objects!
|
||||
|
||||
#### CRITICAL: Product Type-Specific Hooks (Learned in v1.2.6/v1.2.7)
|
||||
|
||||
WooCommerce has different hooks for different product types in the admin product edit page:
|
||||
|
||||
- `woocommerce_product_options_pricing` - **ONLY fires for simple products**, NOT variable products
|
||||
- `woocommerce_product_options_general_product_data` - Fires for ALL product types after the general tab
|
||||
- `woocommerce_variation_options_pricing` - Fires for individual variations within variable products
|
||||
|
||||
**Lesson:** When adding admin UI for variable product parents, use `woocommerce_product_options_general_product_data` and check `$product->is_type('variable')` to conditionally display. Using `woocommerce_product_options_pricing` will cause forms to never appear for variable products (as discovered in v1.2.6 → v1.2.7 fix).
|
||||
|
||||
#### CRITICAL: Currency Symbol Display (Learned in v1.2.8)
|
||||
|
||||
When displaying currency symbols in admin interface table headers and input placeholders:
|
||||
|
||||
**Table Headers:**
|
||||
|
||||
```php
|
||||
// ✅ Correct - Use printf with translation and WooCommerce currency function
|
||||
<th><?php printf(__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
|
||||
// ❌ Wrong - Hard-coded or missing currency
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price (€)', 'wc-tier-package-prices'); ?></th>
|
||||
```
|
||||
|
||||
**Twig Template Placeholders:**
|
||||
|
||||
```twig
|
||||
{# ✅ Correct - Pass currency_symbol from PHP and concatenate in template #}
|
||||
placeholder="{{ ('e.g., 9.99 ' ~ currency_symbol)|__('wc-tier-package-prices') }}"
|
||||
|
||||
{# ❌ Wrong - Hard-coded or missing currency #}
|
||||
placeholder="{{ 'e.g., 9.99'|__('wc-tier-package-prices') }}"
|
||||
placeholder="{{ 'e.g., 9.99 €'|__('wc-tier-package-prices') }}"
|
||||
```
|
||||
|
||||
**Implementation Pattern:**
|
||||
|
||||
1. In PHP render methods, pass currency symbol to Twig: `'currency_symbol' => get_woocommerce_currency_symbol()`
|
||||
2. In Twig templates, concatenate using `~` operator: `'text ' ~ currency_symbol`
|
||||
3. Always use WooCommerce's `get_woocommerce_currency_symbol()` - never hard-code currency symbols
|
||||
|
||||
**Affected Methods:** All template render methods must pass `currency_symbol`:
|
||||
|
||||
- `render_tier_row()`
|
||||
- `render_package_row()`
|
||||
- `render_variation_tier_row()`
|
||||
- `render_variation_package_row()`
|
||||
|
||||
#### CRITICAL: Post Meta Deletion vs. Empty Arrays (Learned in v1.2.8)
|
||||
|
||||
When saving product meta data, WordPress distinguishes between "no data" (deleted meta) and "empty data" (empty array saved as meta):
|
||||
|
||||
**Problem Pattern:**
|
||||
|
||||
```php
|
||||
// ❌ WRONG - Saves empty array when all entries removed
|
||||
if (isset($_POST['_wc_tpp_tiers'])) {
|
||||
$tiers = array();
|
||||
foreach ($_POST['_wc_tpp_tiers'] as $tier) {
|
||||
if (!empty($tier['min_qty']) && !empty($tier['price'])) {
|
||||
$tiers[] = array(...);
|
||||
}
|
||||
}
|
||||
update_post_meta($post_id, '_wc_tpp_tiers', $tiers); // Saves [] if no valid entries
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_tiers');
|
||||
}
|
||||
```
|
||||
|
||||
**Correct Pattern:**
|
||||
|
||||
```php
|
||||
// ✅ CORRECT - Deletes meta when no valid entries exist
|
||||
if (isset($_POST['_wc_tpp_tiers'])) {
|
||||
$tiers = array();
|
||||
foreach ($_POST['_wc_tpp_tiers'] as $tier) {
|
||||
if (!empty($tier['min_qty']) && !empty($tier['price'])) {
|
||||
$tiers[] = array(...);
|
||||
}
|
||||
}
|
||||
// Only save if we have valid entries, otherwise delete
|
||||
if (!empty($tiers)) {
|
||||
update_post_meta($post_id, '_wc_tpp_tiers', $tiers);
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_tiers');
|
||||
}
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_tiers');
|
||||
}
|
||||
```
|
||||
|
||||
**Why This Matters:**
|
||||
|
||||
- Empty arrays `[]` saved via `update_post_meta()` persist in database as serialized empty arrays
|
||||
- Frontend/cart code checking `if ($tiers)` will evaluate `[]` as falsy, but meta still exists in database
|
||||
- Database queries like `get_post_meta()` return `[]` instead of `false`, causing subtle bugs
|
||||
- Properly deleting meta keeps database clean and prevents "ghost" configurations
|
||||
|
||||
**Affected Methods in v1.2.8:**
|
||||
|
||||
- `save_tier_package_fields()` - Simple and variable parent products
|
||||
- `save_variation_pricing_fields()` - Individual variations
|
||||
|
||||
**Rule:** Always check `if (!empty($array))` before calling `update_post_meta()` for array data. If empty, call `delete_post_meta()` instead.
|
||||
|
||||
### When Adding Features
|
||||
|
||||
- Follow the existing pattern: add setting → add UI → add logic → add template
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "magdev/wc-tier-package-prices",
|
||||
"description": "WooCommerce plugin for tier pricing and package prices with Twig templates",
|
||||
"version": "1.2.7",
|
||||
"version": "1.2.9",
|
||||
"type": "wordpress-plugin",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"authors": [
|
||||
|
||||
@@ -55,7 +55,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Min Quantity', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
<th><?php _e('Label (optional)', 'wc-tier-package-prices'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -85,7 +85,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Quantity', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
<th><?php _e('Label (optional)', 'wc-tier-package-prices'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -149,7 +149,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Min Quantity', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
<th><?php _e('Label (optional)', 'wc-tier-package-prices'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -195,7 +195,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Quantity', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
<th><?php _e('Label (optional)', 'wc-tier-package-prices'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -241,14 +241,16 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
private function render_tier_row($index, $tier) {
|
||||
WC_TPP_Template_Loader::get_instance()->display('admin/tier-row.twig', array(
|
||||
'index' => $index,
|
||||
'tier' => $tier
|
||||
'tier' => $tier,
|
||||
'currency_symbol' => get_woocommerce_currency_symbol()
|
||||
));
|
||||
}
|
||||
|
||||
private function render_package_row($index, $package) {
|
||||
WC_TPP_Template_Loader::get_instance()->display('admin/package-row.twig', array(
|
||||
'index' => $index,
|
||||
'package' => $package
|
||||
'package' => $package,
|
||||
'currency_symbol' => get_woocommerce_currency_symbol()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -285,7 +287,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Min Quantity', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
<th><?php _e('Label (optional)', 'wc-tier-package-prices'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -308,7 +310,7 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Quantity', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php _e('Price', 'wc-tier-package-prices'); ?></th>
|
||||
<th><?php printf(esc_html__('Price (%s)', 'wc-tier-package-prices'), get_woocommerce_currency_symbol()); ?></th>
|
||||
<th><?php _e('Label (optional)', 'wc-tier-package-prices'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -363,7 +365,8 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
WC_TPP_Template_Loader::get_instance()->display('admin/tier-row.twig', array(
|
||||
'index' => $index,
|
||||
'tier' => $tier,
|
||||
'field_prefix' => 'wc_tpp_tiers[' . $loop . ']'
|
||||
'field_prefix' => 'wc_tpp_tiers[' . $loop . ']',
|
||||
'currency_symbol' => get_woocommerce_currency_symbol()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -378,7 +381,8 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
WC_TPP_Template_Loader::get_instance()->display('admin/package-row.twig', array(
|
||||
'index' => $index,
|
||||
'package' => $package,
|
||||
'field_prefix' => 'wc_tpp_packages[' . $loop . ']'
|
||||
'field_prefix' => 'wc_tpp_packages[' . $loop . ']',
|
||||
'currency_symbol' => get_woocommerce_currency_symbol()
|
||||
));
|
||||
}
|
||||
|
||||
@@ -414,7 +418,12 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
usort($tiers, function($a, $b) {
|
||||
return $a['min_qty'] - $b['min_qty'];
|
||||
});
|
||||
update_post_meta($post_id, '_wc_tpp_tiers', $tiers);
|
||||
// Only save if we have valid tiers, otherwise delete
|
||||
if (!empty($tiers)) {
|
||||
update_post_meta($post_id, '_wc_tpp_tiers', $tiers);
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_tiers');
|
||||
}
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_tiers');
|
||||
}
|
||||
@@ -435,7 +444,12 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
usort($packages, function($a, $b) {
|
||||
return $a['qty'] - $b['qty'];
|
||||
});
|
||||
update_post_meta($post_id, '_wc_tpp_packages', $packages);
|
||||
// Only save if we have valid packages, otherwise delete
|
||||
if (!empty($packages)) {
|
||||
update_post_meta($post_id, '_wc_tpp_packages', $packages);
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_packages');
|
||||
}
|
||||
} else {
|
||||
delete_post_meta($post_id, '_wc_tpp_packages');
|
||||
}
|
||||
@@ -458,8 +472,8 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
}
|
||||
|
||||
// Save tier pricing for this variation
|
||||
if (isset($_POST['wc_tpp_tiers'][$loop])) {
|
||||
$tiers = array();
|
||||
$tiers = array();
|
||||
if (isset($_POST['wc_tpp_tiers'][$loop]) && is_array($_POST['wc_tpp_tiers'][$loop])) {
|
||||
foreach ($_POST['wc_tpp_tiers'][$loop] as $tier) {
|
||||
if (!empty($tier['min_qty']) && !empty($tier['price'])) {
|
||||
$tiers[] = array(
|
||||
@@ -473,14 +487,17 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
usort($tiers, function($a, $b) {
|
||||
return $a['min_qty'] - $b['min_qty'];
|
||||
});
|
||||
}
|
||||
// Always update or delete based on whether we have valid tiers
|
||||
if (!empty($tiers)) {
|
||||
update_post_meta($variation_id, '_wc_tpp_tiers', $tiers);
|
||||
} else {
|
||||
delete_post_meta($variation_id, '_wc_tpp_tiers');
|
||||
}
|
||||
|
||||
// Save package pricing for this variation
|
||||
if (isset($_POST['wc_tpp_packages'][$loop])) {
|
||||
$packages = array();
|
||||
$packages = array();
|
||||
if (isset($_POST['wc_tpp_packages'][$loop]) && is_array($_POST['wc_tpp_packages'][$loop])) {
|
||||
foreach ($_POST['wc_tpp_packages'][$loop] as $package) {
|
||||
if (!empty($package['qty']) && !empty($package['price'])) {
|
||||
$packages[] = array(
|
||||
@@ -494,6 +511,9 @@ if (!class_exists('WC_TPP_Product_Meta')) {
|
||||
usort($packages, function($a, $b) {
|
||||
return $a['qty'] - $b['qty'];
|
||||
});
|
||||
}
|
||||
// Always update or delete based on whether we have valid packages
|
||||
if (!empty($packages)) {
|
||||
update_post_meta($variation_id, '_wc_tpp_packages', $packages);
|
||||
} else {
|
||||
delete_post_meta($variation_id, '_wc_tpp_packages');
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.21\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-23 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-23 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: German (Switzerland)\n"
|
||||
"Language: de_CH\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Paket hinzufügen"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Nur oben definierte Paketmengen zulassen"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Standard Staffel- & Paketpreise für alle Varianten"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Legen Sie Standardpreise für alle Varianten fest. Einzelne Varianten können diese Standardwerte mit ihren eigenen spezifischen Preisen überschreiben."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Konfigurieren Sie hier Standard-Staffel- und Paketpreise. Alle Varianten übernehmen diese Einstellungen, es sei denn, sie definieren ihre eigenen spezifischen Preise."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Auf Paketmengen beschränken (Standard)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Standard-Beschränkungseinstellung für alle Varianten. Nur oben definierte Paketmengen zulassen."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Mindestmenge"
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.6\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-21 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-21 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: German (Switzerland)\n"
|
||||
"Language: de_CH_informal\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Paket hinzufügen"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Nur oben definierte Paketmengen zulassen"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Standard Staffel- & Paketpreise für alle Varianten"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Lege Standardpreise für alle Varianten fest. Einzelne Varianten können diese Standardwerte mit ihren eigenen spezifischen Preisen überschreiben."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Konfiguriere hier Standard-Staffel- und Paketpreise. Alle Varianten übernehmen diese Einstellungen, es sei denn, sie definieren ihre eigenen spezifischen Preise."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Auf Paketmengen beschränken (Standard)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Standard-Beschränkungseinstellung für alle Varianten. Nur oben definierte Paketmengen zulassen."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Mindestmenge"
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.6\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-21 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-21 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: German\n"
|
||||
"Language: de_DE\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Paket hinzufügen"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Nur oben definierte Paketmengen zulassen"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Standard Staffel- & Paketpreise für alle Varianten"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Legen Sie Standardpreise für alle Varianten fest. Einzelne Varianten können diese Standardwerte mit ihren eigenen spezifischen Preisen überschreiben."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Konfigurieren Sie hier Standard-Staffel- und Paketpreise. Alle Varianten übernehmen diese Einstellungen, es sei denn, sie definieren ihre eigenen spezifischen Preise."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Auf Paketmengen beschränken (Standard)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Standard-Beschränkungseinstellung für alle Varianten. Nur oben definierte Paketmengen zulassen."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Mindestmenge"
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.21\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-23 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-23 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: German (Germany)\n"
|
||||
"Language: de_DE_informal\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Paket hinzufügen"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Nur oben definierte Paketmengen zulassen"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Standard Staffel- & Paketpreise für alle Varianten"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Lege Standardpreise für alle Varianten fest. Einzelne Varianten können diese Standardwerte mit ihren eigenen spezifischen Preisen überschreiben."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Konfiguriere hier Standard-Staffel- und Paketpreise. Alle Varianten übernehmen diese Einstellungen, es sei denn, sie definieren ihre eigenen spezifischen Preise."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Auf Paketmengen beschränken (Standard)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Standard-Beschränkungseinstellung für alle Varianten. Nur oben definierte Paketmengen zulassen."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Mindestmenge"
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.6\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-21 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-21 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: English\n"
|
||||
"Language: en_US\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Add Package"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Only allow quantities defined in packages above"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Default Tier & Package Pricing for All Variations"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Restrict to Package Quantities (Default)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Minimum Quantity"
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.21\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-23 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-23 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: French (Switzerland)\n"
|
||||
"Language: fr_CH\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Ajouter un forfait"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Autoriser uniquement les quantités définies dans les forfaits ci-dessus"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Tarification par paliers et forfaits par défaut pour toutes les variations"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Définir la tarification par défaut pour toutes les variations. Les variations individuelles peuvent remplacer ces valeurs par défaut par leur propre tarification spécifique."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Configurez ici la tarification par paliers et forfaits par défaut. Toutes les variations hériteront de ces paramètres sauf si elles définissent leur propre tarification spécifique."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Limiter aux quantités de forfaits (par défaut)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Paramètre de restriction par défaut pour toutes les variations. Autoriser uniquement les quantités définies dans les forfaits ci-dessus."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Quantité minimale"
|
||||
|
||||
Binary file not shown.
@@ -3,10 +3,10 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.21\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-23 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-23 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"PO-Revision-Date: 2025-12-30 00:00+0000\n"
|
||||
"Last-Translator: Marco Graetsch\n"
|
||||
"Language-Team: Italian (Switzerland)\n"
|
||||
"Language: it_CH\n"
|
||||
@@ -152,6 +152,26 @@ msgstr "Aggiungi pacchetto"
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr "Consenti solo le quantità definite nei pacchetti sopra"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr "Prezzi a scaglioni e pacchetti predefiniti per tutte le variazioni"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr "Imposta i prezzi predefiniti per tutte le variazioni. Le singole variazioni possono sovrascrivere questi valori predefiniti con i propri prezzi specifici."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr "Configura qui i prezzi a scaglioni e pacchetti predefiniti. Tutte le variazioni erediteranno queste impostazioni a meno che non definiscano i propri prezzi specifici."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr "Limita alle quantità dei pacchetti (predefinito)"
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr "Impostazione di restrizione predefinita per tutte le variazioni. Consenti solo le quantità definite nei pacchetti sopra."
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:90
|
||||
msgid "Minimum Quantity"
|
||||
msgstr "Quantità minima"
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# This file is distributed under the GPL v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.6\n"
|
||||
"Project-Id-Version: WooCommerce Tier and Package Prices 1.2.7\n"
|
||||
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
||||
"POT-Creation-Date: 2025-12-21 00:00+0000\n"
|
||||
"POT-Creation-Date: 2025-12-30 00:00+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
@@ -132,6 +132,26 @@ msgstr ""
|
||||
msgid "Only allow quantities defined in packages above"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:42
|
||||
msgid "Default Tier & Package Pricing for All Variations"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:43
|
||||
msgid "Set default pricing for all variations. Individual variations can override these defaults with their own specific pricing."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:44
|
||||
msgid "Configure default tier and package pricing here. All variations will inherit these settings unless they define their own specific pricing."
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:87
|
||||
msgid "Restrict to Package Quantities (Default)"
|
||||
msgstr ""
|
||||
|
||||
#: includes/class-wc-tpp-product-meta.php:88
|
||||
msgid "Default restriction setting for all variations. Only allow quantities defined in packages above."
|
||||
msgstr ""
|
||||
|
||||
#: templates/admin/tier-row.twig:9
|
||||
msgid "Minimum Quantity"
|
||||
msgstr ""
|
||||
|
||||
BIN
releases/wc-tier-and-package-prices-1.2.8.zip
Normal file
BIN
releases/wc-tier-and-package-prices-1.2.8.zip
Normal file
Binary file not shown.
1
releases/wc-tier-and-package-prices-1.2.8.zip.md5
Normal file
1
releases/wc-tier-and-package-prices-1.2.8.zip.md5
Normal file
@@ -0,0 +1 @@
|
||||
d412c85ef32b2e79e17227749265919f wc-tier-and-package-prices-1.2.8.zip
|
||||
1
releases/wc-tier-and-package-prices-1.2.8.zip.sha256
Normal file
1
releases/wc-tier-and-package-prices-1.2.8.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
0c47e2a966c485b377beaffb56703a130158a15e7ffe9d95b43dea84f9229e9c wc-tier-and-package-prices-1.2.8.zip
|
||||
BIN
releases/wc-tier-and-package-prices-1.2.9.zip
Normal file
BIN
releases/wc-tier-and-package-prices-1.2.9.zip
Normal file
Binary file not shown.
1
releases/wc-tier-and-package-prices-1.2.9.zip.md5
Normal file
1
releases/wc-tier-and-package-prices-1.2.9.zip.md5
Normal file
@@ -0,0 +1 @@
|
||||
073fbf114a32d99cd8ced683a1efa19c wc-tier-and-package-prices-1.2.9.zip
|
||||
1
releases/wc-tier-and-package-prices-1.2.9.zip.sha256
Normal file
1
releases/wc-tier-and-package-prices-1.2.9.zip.sha256
Normal file
@@ -0,0 +1 @@
|
||||
00d2568e9acfd7fc05c88b9048a6a281d007b55dec9c4c7a4a55cb515e013e97 wc-tier-and-package-prices-1.2.9.zip
|
||||
@@ -21,7 +21,7 @@
|
||||
<input type="text"
|
||||
name="{{ name_prefix }}[{{ index|esc_attr }}][price]"
|
||||
value="{{ package.price|default('')|esc_attr }}"
|
||||
placeholder="{{ 'e.g., 99.99'|__('wc-tier-package-prices') }}"
|
||||
placeholder="{{ 'e.g., 99.99 ' ~ currency_symbol }}"
|
||||
class="short wc_input_price">
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<input type="text"
|
||||
name="{{ name_prefix }}[{{ index|esc_attr }}][price]"
|
||||
value="{{ tier.price|default('')|esc_attr }}"
|
||||
placeholder="{{ 'e.g., 9.99'|__('wc-tier-package-prices') }}"
|
||||
placeholder="{{ 'e.g., 9.99 ' ~ currency_symbol }}"
|
||||
class="short wc_input_price">
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Plugin Name: WooCommerce Tier and 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
|
||||
* Version: 1.2.7
|
||||
* Version: 1.2.9
|
||||
* Author: Marco Graetsch
|
||||
* Author URI: https://src.bundespruefstelle.ch/magdev
|
||||
* Text Domain: wc-tier-package-prices
|
||||
@@ -23,7 +23,7 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
// Define plugin constants
|
||||
if (!defined('WC_TPP_VERSION')) {
|
||||
define('WC_TPP_VERSION', '1.2.7');
|
||||
define('WC_TPP_VERSION', '1.2.9');
|
||||
}
|
||||
if (!defined('WC_TPP_PLUGIN_DIR')) {
|
||||
define('WC_TPP_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
||||
|
||||
Reference in New Issue
Block a user