WP Shipping Calculator
A flexible and user-friendly shipping calculator plugin for WordPress and WooCommerce. Instantly calculate shipping costs based on weight, destination, or custom rules using a simple shortcode or integrated WooCommerce method.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/skaslam1407/weight-based-shipping-calculation-plugin/archive/refs/heads/main.zipA simple and flexible shipping cost calculator for WordPress. Configure rules and display a calculator on any page using a shortcode.
Description
WP Shipping Calculator allows you to easily add a shipping cost estimator to your website. It's perfect for e-commerce sites, businesses that ship products, or anyone who needs to provide shipping quotes to their customers.
Key Features:
- Easy to Use: Add the calculator to any post or page with the simple
[shipping_calculator]shortcode. - Admin Settings: Configure your default shipping origin and create custom shipping rules directly from the WordPress dashboard.
- Rule-Based Calculation: Set up shipping costs based on package weight. For example, "Up to 5kg costs $10, 5-10kg costs $15".
- AJAX Powered: Provides a smooth user experience with instant calculations without page reloads.
- Responsive Design: The calculator form looks great on all devices, from desktops to mobile phones.
- Translatable: Ready for translation into any language.
Installation
- Upload the
wp-shipping-calculatorfolder to the/wp-content/plugins/directory on your server. - Activate the plugin through the 'Plugins' menu in WordPress.
- Configure your settings by navigating to Settings -> Shipping Calculator.
- Add the shortcode
[shipping_calculator]to any page, post, or widget where you want the calculator to appear.
Frequently Asked Questions
How do I set up shipping rules?
Go to Settings -> Shipping Calculator. In the "Shipping Rules" section, you can add rules based on weight. For each rule, specify a maximum weight and the corresponding cost. The plugin will find the first rule that matches the package weight.
Can I change the currency?
Currently, the currency symbol ($) is hardcoded. This feature is planned for a future version.
Does this plugin connect to carriers like UPS or FedEx?
Not in this version. It uses a simple, rule-based system you define in the settings. API integration is a potential future enhancement.
Changelog
1.0.0
- Initial release.