You've already forked wc-tier-and-package-prices
- Updated all version references to 1.1.20 - Updated WordPress requirement to 6.0+ (tested up to 6.9.x) - Updated WooCommerce requirement to 8.0+ (tested up to 10.x) - Added comprehensive file structure showing Twig templates - Added WooCommerce Blocks compatibility documentation - Added tier labels feature documentation (v1.1.7) - Added quantity restrictions feature documentation (v1.1.0) - Added new usage examples for tier labels and quantity restrictions - Updated INSTALLATION.md with complete directory structure - Updated README.md with current version changelog - Updated QUICKSTART.md with 8 pro tips including new features - Updated USAGE_EXAMPLES.md with 6 complete examples - Documented WooCommerce Blocks support and v1.1.20 critical fix 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
6.4 KiB
6.4 KiB
Installation Guide
Quick Installation
Method 1: WordPress Admin Upload (Recommended)
- Download
wc-tier-and-package-prices.zipfrom the releases - Log in to your WordPress admin dashboard
- Navigate to Plugins > Add New
- Click Upload Plugin button at the top
- Click Choose File and select
wc-tier-and-package-prices.zip - Click Install Now
- After installation, click Activate Plugin
- You're done! The plugin is now active.
Method 2: Manual FTP Upload
- Download
wc-tier-and-package-prices.zip - Extract the ZIP file to get the
wc-tier-and-package-pricesfolder - Connect to your server via FTP
- Upload the entire
wc-tier-and-package-pricesfolder to/wp-content/plugins/ - Go to your WordPress admin dashboard
- Navigate to Plugins
- Find "WooCommerce Tier and Package Prices" and click Activate
Method 3: WP-CLI
If you have WP-CLI installed:
wp plugin install wc-tier-and-package-prices.zip --activate
Post-Installation Setup
1. Verify Installation
After activation, you should see:
- A new menu item: WooCommerce > Tier & Package Prices
- No error messages
- Plugin listed in Plugins page
2. Configure Global Settings
- Go to WooCommerce > Tier & Package Prices
- Configure the following options:
- Enable Tier Pricing: ✓ (checked)
- Enable Package Pricing: ✓ (checked)
- Display Pricing Table: ✓ (checked)
- Display Position: Choose where to show pricing tables
- Before Add to Cart (recommended)
- After Add to Cart
- After Price
- Click Save Changes
3. Configure Your First Product
- Go to Products and edit any product (or create new one)
- Scroll to Product data panel
- Click the General tab
- Scroll down to find the pricing sections
Add Tier Pricing (Volume Discounts)
- Click Add Tier button
- Example configuration:
- Min Quantity:
10, Price:9.50 - Min Quantity:
25, Price:8.50 - Min Quantity:
50, Price:7.50
- Min Quantity:
- Click Update to save
Add Package Pricing (Fixed Packages)
- Click Add Package button
- Example configuration:
- Quantity:
12, Price:99.00, Label: "Dozen Pack" - Quantity:
24, Price:180.00, Label: "Double Pack"
- Quantity:
- Click Update to save
4. Test on Frontend
- Visit your product page on the frontend
- You should see:
- Pricing table showing tiers and/or packages
- Price updates when changing quantity
- Package selection buttons (if packages configured)
- Add to cart and verify correct pricing
Requirements Check
Before installation, verify:
- ✓ WordPress 6.0 or higher (tested up to 6.9.x)
- ✓ WooCommerce 8.0 or higher (tested up to 10.x) installed and activated
- ✓ PHP 7.4 or higher
- ✓ Write permissions in
/wp-content/plugins/directory
Troubleshooting
Plugin Won't Activate
Error: "WooCommerce is required"
- Solution: Install and activate WooCommerce first
Error: "Parse error" or "Syntax error"
- Solution: Your PHP version is too old. Upgrade to PHP 7.4 or higher
Pricing Tables Not Showing
- Check global settings are enabled (WooCommerce > Tier & Package Prices)
- Verify you added tiers/packages to the specific product
- Clear browser cache and reload the page
- Check theme compatibility (try default WordPress theme)
Prices Not Calculating Correctly
- Make sure tiers are sorted by minimum quantity (plugin does this automatically)
- Verify package quantities exactly match what customer selects
- Clear WooCommerce caches (WooCommerce > Status > Tools > Clear template cache)
Styling Issues
- Clear browser cache
- Check if theme has conflicting CSS
- Try adding custom CSS in Appearance > Customize > Additional CSS
Uninstallation
To completely remove the plugin:
- Go to Plugins page
- Deactivate "WooCommerce Tier and Package Prices"
- Click Delete
- Confirm deletion
Note: Product meta data (tiers and packages) will be preserved in database even after uninstallation. If you reinstall, your configurations will still be there.
To completely remove all data:
- Before uninstalling, remove all tiers and packages from products
- Then proceed with uninstallation
File Structure After Installation
Your WordPress installation should have:
wp-content/
└── plugins/
└── wc-tier-and-package-prices/
├── wc-tier-and-package-prices.php (main file)
├── README.md
├── INSTALLATION.md
├── USAGE_EXAMPLES.md
├── includes/
│ ├── class-wc-tpp-admin.php
│ ├── class-wc-tpp-settings.php
│ ├── class-wc-tpp-cart.php
│ ├── class-wc-tpp-frontend.php
│ ├── class-wc-tpp-product-meta.php
│ └── class-wc-tpp-template-loader.php
├── templates/
│ ├── admin/
│ │ ├── tier-row.twig
│ │ └── package-row.twig
│ └── frontend/
│ ├── pricing-table.twig
│ ├── tier-pricing-table.twig
│ └── package-pricing-display.twig
├── assets/
│ ├── css/
│ │ ├── admin.css
│ │ └── frontend.css
│ └── js/
│ ├── admin.js
│ └── frontend.js
├── languages/
│ ├── wc-tier-package-prices.pot
│ ├── wc-tier-package-prices-de_DE.po
│ ├── wc-tier-package-prices-de_DE.mo
│ ├── wc-tier-package-prices-de_CH_informal.po
│ └── wc-tier-package-prices-de_CH_informal.mo
└── vendor/
└── (Twig and dependencies)
Getting Help
If you encounter issues:
- Check this installation guide
- Review the README.md for feature documentation
- Review USAGE_EXAMPLES.md for configuration examples
- Check WordPress error logs
- Enable WP_DEBUG to see detailed errors
Next Steps
After successful installation:
- Read USAGE_EXAMPLES.md for practical examples
- Configure tier pricing on your products
- Test the complete checkout flow
- Customize display settings to match your theme
- Consider creating package deals for popular quantities
Enjoy your new tier and package pricing capabilities!