Product Types

SLSWC adds two custom WooCommerce product types for selling software with license management.

Product data panel with the License tab

Note on keys: The form fields on the product screen are named slswc_software_*, but the software data is stored in post meta keys that start with an underscore (_slswc_software_*), for both products and variations. Subscription settings are stored without the underscore (slswc_subscription_*). The subscription flag itself is _slswc_software_subscription. The slswc_ part follows the plugin prefix.

Software

A simple product type for single-tier software. Select Software from the Product data dropdown when creating a product.

Supports: virtual, downloadable, licensed software with a single price point.

Variable Software

A variable product type for tiered software plans (e.g., Personal, Business, Agency). Select Variable Software from the Product data dropdown.

Each variation can have its own subscription price, activation limits, renewal period and gateway IDs. See Variable Software Variations below.

License Tab

Both product types add a License tab to the product data panel. This tab contains fields that define the software metadata sent to update clients.

FieldKeyTypeRequiredDescription
Software Type_slswc_software_typeSelectNoThe kind of software (plugin, theme, etc.).
Allow Staging_slswc_software_allow_stagingSelectYesWhether licenses for this product can be activated on staging sites. Options: Yes, No.
Software Version_slswc_software_versionTextYesThe current software version number (e.g., 1.2.3).
Software Author_slswc_software_authorTextNoThe author of the software.
Requires WP Version_slswc_software_required_wpTextYesThe minimum WordPress version required.
Compatible up to_slswc_software_compatible_toTextNoThe WordPress version tested up to.
Last Updated_slswc_software_updatedDateYesWhen the software was last updated. Date picker, YYYY-MM-DD format.
Activation Limit_slswc_software_activationsNumberNoMaximum number of live site activations allowed. Leave empty or 0 for unlimited. Hidden on Variable Software products, where it is set per variation.
Staging Activation Limit_slswc_software_staging_activationsNumberNoMaximum number of staging site activations allowed. Leave empty or 0 for unlimited. Hidden on Variable Software products, where it is set per variation.
Documentation Link_slswc_software_documentation_linkURLNoPublic link to the software documentation.
Description_slswc_software_descriptionRich textNoDescription displayed in the plugin/theme details popup.
Changelog_slswc_software_change_logRich textNoChangelog displayed in the plugin/theme details popup.
Installation_slswc_software_installationRich textNoInstallation instructions displayed in the details popup.
Banner Low_slswc_software_banner_lowImageNoLow resolution banner (772ร—250 recommended).
Banner High_slswc_software_banner_highImageNoHigh resolution banner (1544ร—500 recommended).
Update file_slswc_software_update_fileFileYesThe ZIP file served as an update for the software. Click Choose a file to pick or upload it.

Description, Changelog and Installation are rich-text editors. Basic HTML (headings, lists, links, bold text) is allowed; anything else is stripped on save with wp_kses_post. The software Description is stored separately from the WooCommerce product description, in its own _slswc_software_description meta, and is what update clients show in the plugin details popup.

Note: Fields marked as required are highlighted in the editor, but the product still saves if they are empty. Fill them in so update clients receive complete information.

Enabling Subscriptions

Software and Variable Software products show a Subscription checkbox in the product-type row, next to Virtual and Downloadable (tooltip: "Charge a recurring subscription fee for this software product."). It is stored in _slswc_software_subscription.

  • Software: ticking Subscription hides the price fields on the General tab. The price comes from the Subscription price on the Subscription tab, and the product's price falls back to the renewal fee so it stays purchasable.
  • Variable Software: the General-tab price fields are always hidden, because prices are set per variation. Variations inherit the parent's Subscription setting.

Subscription Tab

The Subscription tab holds the recurring billing settings. The fields, in the order they appear:

Subscription tab of a software product
FieldKeyTypeDescription
Subscription priceslswc_subscription_renewal_feePriceThe recurring renewal fee.
โ†ณ every Nslswc_subscription_intervalSelectBill every 1 to 6 periods.
โ†ณ periodslswc_subscription_periodSelectBilling period: day, week, month or year.
Stop renewing afterslswc_subscription_end_dateDateYYYY-MM-DD, or leave empty to renew forever.
Sign-up feeslswc_subscription_signup_feePriceOne-time fee charged at sign-up.
Free trialslswc_subscription_trial_lengthNumberLength of the free trial (0 for no trial).
โ†ณ trial periodslswc_subscription_trial_periodSelectTrial period unit: day, week, month or year.
Sale priceslswc_subscription_renewal_fee_salePriceDiscounted recurring price.
Sign-up fee saleslswc_subscription_signup_fee_salePriceDiscounted sign-up fee.

Empty fields are prefilled from the defaults at WP Admin > License Server > Settings > Subscriptions > Product Defaults (options slswc_sub_default_*).

Variable Software Variations

Each Variable Software variation panel has three groups of fields.

An expanded Variable Software variation

Subscription overrides (leave blank to use parent defaults)

FieldKeyDescription
Subscription price + every N + periodslswc_subscription_renewal_fee, slswc_subscription_interval, slswc_subscription_periodThe variation's recurring price. Interval and period default to "โ€” use parent โ€”".
Sign-up feeslswc_subscription_signup_feeOverrides the parent's sign-up fee.
Sign-up fee saleslswc_subscription_signup_fee_saleOverrides the parent's sign-up fee sale price.
Sale priceslswc_subscription_renewal_fee_saleOverrides the parent's recurring sale price.

The free trial cannot be overridden per variation; it always comes from the parent product.

License settings

FieldKeyDescription
License Renewal Period_slswc_software_renewal_periodHow long the license is valid before renewal.
Activation Limit_slswc_software_activationsLive site activations for this tier.
Staging Activation Limit_slswc_software_staging_activationsStaging site activations for this tier.

These are set per variation and do not fall back to the parent.

Gateway IDs (variation-specific)

FieldKeyDescription
Polar Product ID_polar_product_idThe Polar product for this tier. Falls back to the parent if blank.
PayPal Plan ID_paypal_plan_idThe PayPal billing plan for this tier. Falls back to the parent if blank.

When the parent has Subscription ticked, the variation's regular price is synced automatically from its resolved subscription price, so the regular and sale price inputs are hidden. Variations are created as virtual and downloadable, and those checkboxes are locked.

Renewal Period

On the General tab (in the downloads area), Software products also show a License Renewal Period dropdown. This determines how long a license is valid before needing renewal. It is hidden on Variable Software products, where each variation sets its own.

The available periods are configured at WP Admin > License Server > Settings > Subscriptions > Renewal Periods. The defaults are Annual, Monthly, Quarterly and Lifetime.

How Subscription Prices Are Shown

On the product page, a subscription price always starts with the recurring price and period, for example $19.00 / month or $49.00 / 3 months. When a sale price is set, the regular price is shown struck through. A second line is added depending on the setup:

SetupExtra line on the product page
Free trial + sign-up feeSign-up fee: $X today + N-period free trial
Free trial onlyStart with a free N-period trial
Sign-up fee + renewal+ $X signup fee (first payment: $Y)
Renewal only(nothing extra)

In the cart, each subscription line shows a note:

SetupCart note
Free trial + sign-up fee$X sign-up fee today + N-period free trial, then $Y / period
Free trial onlyFree trial โ€” then $Y / period
Sign-up fee onlyIncludes $X signup fee โ€” renews at $Y / period
Renewal only$Y / period

When a free trial is set, the cart charges only the sign-up fee today (or nothing, if there is no sign-up fee). The recurring price is charged when the trial ends.