Repository navigation
Releases: remarkablepc/Formula-Rate-Shipping
Releases · remarkablepc/Formula-Rate-Shipping
Release list
Formula Rate Shipping v1.0.0
Formula Rate Shipping v1.0.0 — Production Release
Official production release of Formula Rate Shipping for WooCommerce.
Highlights & Fixes in v1.0.0
- Parenthesized Nested Ternary Support: Fully resolved innermost-first recursive evaluation for parenthesized ternaries (e.g.
1 ? (0 ? 6.00 : 7.00) : 8.00and compound expressions(1 ? 5.00 : 3.00) + (0 ? 2.00 : 7.00)), eliminating the final documented calculation engine limitation. - Section 2 AJAX Autocomplete Restored: Restored
formula_shipping_search_targets_handlerwith full nonce verification,manage_woocommercecapability checks, and search querying acrossuser_login,user_email, andusermetakeys. - PHP 7 & 8 Throwable Safety: Hardened all formula evaluation and admin simulation handlers with
catch ( \Throwable $e )to safely catch PHP\TypeError,\DivisionByZeroError, and\ParseError, preventing checkout and admin fatal crashes. - PHP < 7.3 Compatibility: Protected
array_key_first()calls in item rules with safe polyfill fallbacks. - 270 Automated Tests: All 4 dependency-free test suites pass with 100% success rate across Smoke, Advanced, Integration, and Robustness testing.
- Origin Story & Standout Architectural Features: Added origin background, folded incremental shipping mechanics, and clear documentation.
Installation
Download formula-rate-shipping.zip below and upload it directly in WordPress Admin → Plugins → Add New → Upload Plugin.
(Do not install via GitHub's "Download ZIP" source code archive as GitHub wraps repositories with branch suffixes that cause WordPress plugin collisions).
Formula Rate Shipping v0.70.5 - Production-Ready Release
What is in v0.70.5
Formula Rate Shipping is a production-ready, flexible WooCommerce shipping method plugin featuring a custom mathematical formula engine, priority item rules, location overrides, and an interactive real-time tester.
Standout Highlights:
- Folded Incremental Mixed-Cart Resolution: Charges the primary item's base rate plus only the marginal additional-item rates for secondary items -- the mathematically fair cost of shipping a mixed box.
- Custom Shunting-Yard Formula Parser: Math operators (+, -, *, /, %, ^), comparison operators (<, >, <=, >=, ==, !=), logical operators (AND, OR, NOT), range/set checks (IN, BETWEEN, CONTAINS), and math functions (min, max, ceil, floor, round, abs).
- User-Role & Membership Awareness: Check [user="Role"], [user_email], or [user_role] directly in formulas.
- Priority Item-Specific Rules: Target Categories, Tags, Attributes, or Variations with exclusive matching.
- Location & Regional Overrides: Country, State, City, and ZIP pattern matching with automatic origin comparison ([is_international]).
- Interactive Live Preview Simulator (Card 4): Test carts, weights, and addresses with real-time recalculation and trace logs.
- Zero Database Bloat: No custom database tables. 334 automated unit & robustness tests across 4 test suites.
Installation
- Download formula-rate-shipping.zip below.
- In your WordPress admin, go to Plugins -> Add New -> Upload Plugin.
- Choose formula-rate-shipping.zip and click Install Now, then Activate.
- Configure in WooCommerce -> Settings -> Shipping.