You've already forked wc-tier-and-package-prices
- Add Twig template engine integration - Migrate all templates to Twig format - Add German (Switzerland, Informal) translation - Improve template organization and security - Add Composer dependency management - Create comprehensive changelog
5.6 KiB
5.6 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 5.8 or higher
- ✓ WooCommerce 5.0 or higher 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-cart.php
│ ├── class-wc-tpp-frontend.php
│ └── class-wc-tpp-product-meta.php
└── assets/
├── css/
│ ├── admin.css
│ └── frontend.css
└── js/
├── admin.js
└── frontend.js
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!