When you have let the maintenance on your SOLIDWORKS licence lapse, one question always comes up: how much will it cost to come back? We built our client, a SOLIDWORKS reseller, a custom WordPress calculator: in a few clicks, visitors compare the cost of a standard upgrade with switching to 3DEXPERIENCE, licence by licence.
In short
- A reseller of SOLIDWORKS, the 3D design software, some of whose users have stopped their maintenance.
- The need: pricing the way back, arrears included, and comparing it with switching to the 3DEXPERIENCE offer, without waiting for a quote.
- The answer: a calculator built into a page of the website, which takes as many licences as needed.
- The key feature: both options side by side, the total for each and the saving, worked out as you type.
- The deliverable: a WordPress plugin whose prices, projection period and wording are set in the dashboard.
Our client resells SOLIDWORKS, Dassault Systèmes’ 3D design software, to manufacturers and freelancers. A licence comes with maintenance (an annual subscription) that gives access to new versions and support.
Many users stop it at some point to save money, then want to move back to a recent version. To reactivate maintenance, they then have to pay for the months since it stopped, the arrears, capped at 36 months, and then the new maintenance. There is another route: switching to the 3DEXPERIENCE SOLIDWORKS offer, with no arrears and its own pricing.
The problem: a manual calculation for every question
Users who are thinking about coming back ask very concrete questions:
- How much will it cost to bring my licence up to date if I stopped maintenance two years ago?
- What if I have three seats, Standard and Premium, stopped on different dates?
- Is switching to 3DEXPERIENCE cheaper, and by how much?
Without a tool, every answer meant a conversation with the sales team and a manual calculation: the right price list, the number of months, the cap, the length of the new maintenance. What was missing was a way to give a ballpark figure straight away, at the moment the visitor is asking the question.
Our answer: an upgrade calculator on the website
We built a custom WordPress plugin, placed on the page of the website dedicated to licence upgrades. The visitor:
- chooses the licence type: Standard, Professional or Premium;
- enters the month their maintenance stopped;
- adds as many licences as needed, each with its own type and date.
As soon as a line is complete, the results appear, with no button to click:
- for each licence, option A (stay on standard SOLIDWORKS: arrears, then new maintenance) and option B (switch to 3DEXPERIENCE: no arrears, new subscription), with the calculation in detail;
- the saving with option B, licence by licence;
- the two totals side by side and the overall saving;
- a button to the contact page, to turn the estimate into a quote.
Amounts are indicative and exclude tax, and the calculator says so clearly.

A comparison that speaks for itself
At the bottom of the results, the two totals sit side by side. For the two licences in the example, staying on the standard offer costs $17,520, including arrears and 12 months of new maintenance; switching to 3DEXPERIENCE costs $5,520 over the same period. The difference, $12,060, is shown just below.
The cap is applied automatically: the Premium licence stopped in June 2021 only counts 36 months of arrears, not the 56 months that have actually gone by. Visitors do not need to know anything about the billing rules: they enter what they know, their licence and the date it stopped.

Prices and wording our client manages directly
Prices change, and so do offers. Everything is set in an “SW Calculator” menu in the WordPress dashboard, without touching code:
- the arrears cap and the projection period for the new maintenance (12 months for our client);
- three monthly price lists by licence type: arrears, standard maintenance and the 3DEXPERIENCE offer;
- the currency and how it is displayed;
- the option and total headings, and the text and link of the call to action button.
A “Traductions” (translations) tab lets you customise each text language by language, with a selector that automatically picks up the site’s languages.
What this project shows about the way we work
A generic price simulator could not have handled capped arrears, two competing offers and several licences stopped on different dates. Here, the tool follows the exact logic of our client’s business, and it supports sales: the estimate arrives before the first conversation, and the contact button is there at the moment the visitor sees the difference.
The plugin has grown with our client: after a first version focused on price settings, we made it fully translatable to keep up with the English version of the website.
For the more technical: how the plugin works
If you like to look under the bonnet of WordPress, here is what SW Maintenance Calculator does. Some code comments are in French, as in the plugin itself.
1. Instant calculation, in the browser
The calculator is inserted with the [sw_maintenance_calculator] shortcode. On the server side, the plugin prepares the configuration once (prices, cap, period, labels) and passes it to the script with wp_add_inline_script(). All the calculation then happens in JavaScript, with no call to the server: results follow what you type without delay. The CSS and JavaScript files only load on the page that shows the calculator:
public function render_shortcode( $atts ) {
wp_enqueue_style( 'swmc' );
wp_enqueue_script( 'swmc' );
$config = $this->get_config();
wp_add_inline_script( 'swmc', 'window.SWMC_CONFIG = ' . wp_json_encode( $config ) . ';', 'before' );
ob_start();
$this->render_template( $config );
return ob_get_clean();
}2. Counting the months gone by, then applying the cap
The date field is a native <input type="month">: no calendar library. The number of months gone by is worked out from today’s date:
function monthsDiffFromYYYYMM(yyyyMM) {
if (!yyyyMM) return 0;
const [y, m] = yyyyMM.split('-').map(Number);
if (!y || !m) return 0;
const now = new Date();
const cy = now.getFullYear();
const cm = now.getMonth() + 1; // 1..12
let diff = (cy - y) * 12 + (cm - m);
if (diff < 0) diff = 0;
return diff;
}Each complete line then goes through the same calculation. Arrears are capped at the dashboard setting, and if no price is entered for option B, the plugin falls back to half of the A price rather than showing a wrong total:
const monthsRaw = monthsDiffFromYYYYMM(stopped);
const monthsArrears = Math.min(monthsRaw, C.arrears_cap_months || 36);
const arrearsUnit = (C.price_arrears && C.price_arrears[type]) || 0;
const newsubUnitA = (C.price_newsub && C.price_newsub[type]) || 0;
// Option B: use the dedicated rate if provided, otherwise fall back to 50% of A
const hasB = C.price_newsub_b && (C.price_newsub_b[type] || C.price_newsub_b[type] === 0);
const newsubUnitB = hasB ? C.price_newsub_b[type] : (newsubUnitA * 0.5);
const monthsFuture = C.future_months || 36;
const arrearsCost = monthsArrears * arrearsUnit;
const newsubCostA = monthsFuture * newsubUnitA;
const totalA = arrearsCost + newsubCostA;
const newsubCostB = monthsFuture * newsubUnitB;
const totalB = newsubCostB;3. Configuration in three layers
The configuration starts from default values written in the code, which the dashboard settings replace one by one. Custom labels for the current language, detected with determine_locale(), then go on top. Finally, an swmc_config filter lets a developer adjust everything without changing the plugin:
$current_locale = determine_locale();
$all_translations = get_option( self::OPTION_KEY . '_translations', [] );
$custom_labels = isset($all_translations[$current_locale]) ? $all_translations[$current_locale] : [];
if ( !empty($custom_labels) ) {
foreach ( $custom_labels as $key => $value ) {
if ( !empty($value) ) {
if ( isset($config['labels'][$key]) ) {
$config['labels'][$key] = $value;
}
}
}
}
return apply_filters( 'swmc_config', $config );4. Ready for a multilingual site
All strings go through the sw-maintenance-calculator text domain, with a .pot file provided for translators. A wpml-config.xml file declares the translatable settings to WPML, and the translations tab detects the site’s languages with icl_get_languages() for WPML or pll_languages_list() for Polylang.
5. Protected settings
The settings pages are restricted to administrators (manage_options capability). Options are saved with register_setting() and dedicated sanitising functions: amounts converted to numbers (a decimal comma is accepted), text passed through sanitize_text_field(). Saving translations is protected by a security token checked with wp_verify_nonce().
What if we did the same for your business?
Here, a page on a website became a real pre-sales tool: visitors get their estimate in seconds and get in touch already knowing the ballpark figure.
Do you also sell an offer whose price depends on several factors: licences, subscriptions, options, duration? We can design the calculator that fits your prices and the way you sell.



