You've already forked wc-tier-and-package-prices
Added comprehensive WooCommerce Blocks support for quantity restrictions and improved "View Options" button styling to match standard WooCommerce Add to Cart buttons. Features: - WooCommerce Blocks cart/mini-cart quantity restriction support - Store API integration for block-based carts - Improved "View Options" button styling with WooCommerce standards - Enhanced hover effects and transitions Technical Changes: - Added woocommerce_store_api_product_quantity_editable filter - Added block_quantity_editable() method in WC_TPP_Cart class - Enhanced CSS for .wc-block-components-quantity-selector targeting - Updated button styling: padding (0.618em × 1em), font-weight (700) - Added transition effects for smooth hover states Fixed: - WooCommerce blocks cart quantity selector now properly hidden - WooCommerce blocks mini-cart quantity selector visibility - "View Options" button now matches Add to Cart button appearance Updated Files: - includes/class-wc-tpp-cart.php (WooCommerce Blocks support) - assets/css/frontend.css (enhanced button styling) - wc-tier-and-package-prices.php (version 1.1.4) - composer.json (version 1.1.4) - CHANGELOG.md (v1.1.4 section) - All translation files (.pot, .po, .mo) updated to version 1.1.4 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
233 lines
5.7 KiB
Plaintext
233 lines
5.7 KiB
Plaintext
# Copyright (C) 2025 Marco Graetsch
|
|
# This file is distributed under the GPL v2 or later.
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: WooCommerce Tier and Package Prices 1.1.4\n"
|
|
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/wc-tier-package-prices\n"
|
|
"POT-Creation-Date: 2025-12-21 00:00+0000\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
"PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
"X-Generator: Poedit 3.0\n"
|
|
"X-Domain: wc-tier-package-prices\n"
|
|
|
|
#: wc-tier-and-package-prices.php:44
|
|
msgid "WooCommerce Tier and Package Prices requires WooCommerce to be installed and active."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:28
|
|
#: includes/class-wc-tpp-settings.php:58
|
|
msgid "Tier & Package Prices"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:40
|
|
msgid "General"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:58
|
|
msgid "Tier & Package Prices Settings"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:60
|
|
msgid "Configure tier pricing and package pricing options for your WooCommerce products."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:65
|
|
msgid "Enable Tier Pricing"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:66
|
|
msgid "Enable tier pricing for products"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:70
|
|
msgid "Allow quantity-based pricing tiers. Customers get discounted prices when buying in larger quantities."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:74
|
|
msgid "Enable Package Pricing"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:75
|
|
msgid "Enable fixed-price packages for products"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:79
|
|
msgid "Allow fixed-price packages with specific quantities. For example: 10 pieces for $50, 25 pieces for $100."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:83
|
|
msgid "Display Pricing Table"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:84
|
|
msgid "Show tier and package pricing table on product pages"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:88
|
|
msgid "Display the pricing table to customers on product pages."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:92
|
|
msgid "Display Position"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:93
|
|
msgid "Choose where to display the pricing table on product pages."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:101
|
|
msgid "Before Add to Cart Button"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:102
|
|
msgid "After Add to Cart Button"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:103
|
|
msgid "After Price"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:108
|
|
#: includes/class-wc-tpp-product-meta.php:76
|
|
msgid "Restrict to Package Quantities"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:109
|
|
msgid "Limit quantities to defined package sizes only"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-settings.php:113
|
|
msgid "When enabled, customers can only purchase products in the exact quantities defined in packages. The quantity input field will be hidden and replaced with package selection buttons."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:23
|
|
msgid "Tier Pricing"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:24
|
|
msgid "Set quantity-based pricing tiers. Customers get discounted prices when buying in larger quantities."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:41
|
|
msgid "Add Tier"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:52
|
|
msgid "Package Pricing"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:53
|
|
msgid "Set fixed-price packages with specific quantities. For example: 10 pieces for $50, 25 pieces for $100."
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:70
|
|
msgid "Add Package"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-product-meta.php:77
|
|
msgid "Only allow quantities defined in packages above"
|
|
msgstr ""
|
|
|
|
#: templates/admin/tier-row.twig:9
|
|
msgid "Minimum Quantity"
|
|
msgstr ""
|
|
|
|
#: templates/admin/tier-row.twig:13
|
|
#: templates/admin/package-row.twig:13
|
|
msgid "e.g., 10"
|
|
msgstr ""
|
|
|
|
#: templates/admin/tier-row.twig:16
|
|
msgid "Price per Unit"
|
|
msgstr ""
|
|
|
|
#: templates/admin/tier-row.twig:21
|
|
msgid "e.g., 9.99"
|
|
msgstr ""
|
|
|
|
#: templates/admin/tier-row.twig:25
|
|
#: templates/admin/package-row.twig:30
|
|
msgid "Remove"
|
|
msgstr ""
|
|
|
|
#: templates/admin/package-row.twig:9
|
|
#: templates/frontend/tier-pricing-table.twig:13
|
|
msgid "Quantity"
|
|
msgstr ""
|
|
|
|
#: templates/admin/package-row.twig:20
|
|
msgid "Fixed Price"
|
|
msgstr ""
|
|
|
|
#: templates/admin/package-row.twig:18
|
|
msgid "e.g., 99.99"
|
|
msgstr ""
|
|
|
|
#: templates/admin/package-row.twig:24
|
|
msgid "Label (Optional)"
|
|
msgstr ""
|
|
|
|
#: templates/admin/package-row.twig:29
|
|
msgid "e.g., Starter Pack"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/tier-pricing-table.twig:9
|
|
msgid "Volume Discounts"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/tier-pricing-table.twig:14
|
|
msgid "Price per Unit"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/tier-pricing-table.twig:15
|
|
msgid "You Save"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/package-pricing-display.twig:8
|
|
msgid "Package Deals"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/package-pricing-display.twig:11
|
|
msgid "Choose a package size below"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/package-pricing-display.twig:20
|
|
msgid "pieces"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/package-pricing-display.twig:24
|
|
msgid "per unit"
|
|
msgstr ""
|
|
|
|
#: templates/frontend/package-pricing-display.twig:28
|
|
msgid "Select Package"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-cart.php:76
|
|
msgid "Package price"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-cart.php:79
|
|
msgid "Volume discount"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-cart.php:124
|
|
msgid "this product"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-cart.php:128
|
|
msgid "The quantity %1$d is not available for %2$s. Please choose from the available package sizes: %3$s"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-frontend.php:173
|
|
msgid "View Options"
|
|
msgstr ""
|
|
|
|
#: includes/class-wc-tpp-frontend.php:178
|
|
msgid "View options for %s"
|
|
msgstr ""
|