Secure Server-Side Pricing for a WordPress Quote CalculatorSecure Server-Side Pricing for a WordPress Quote Calculator
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A WordPress quote form should never trust the price the browser sends.
Most quote calculators compute the total in the browser and send it with the form. That number can be edited before it leaves: a request for 5,000 units at a total of 4.00 takes ten seconds to forge in the developer tools.
So in the calculator I built, the server never accepts a total. It receives the quantity and the options, runs them through the same price list in PHP, and the figure that lands in your inbox is the one your prices say.
Two details took longer than the form itself. Prices can change while a visitor has the page open, so the request is priced with the new list and the confirmation says so. And the browser and the server must never disagree by a cent, so both work in integer cents.
The plugin is public on GitHub (wp-quote-calculator). If you sell anything priced by quantity and options, I build these on your own price list.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started