Last Modified October 16, 2024

Shopify License Upgrades

Setting up Shopify License Upgrades

You can configure Shopify for License Upgrades where License parameters of an existing License Activation Code are updated (no License Code is issued).

For example, with Feature-Based Licensing, you may want to offer Feature Upgrade products in Shopify (ex: upgrade from Feature Set A to Feature Set B) and have this automatically update the of the License Activation Code (not issue a new License Activation Code).

The order page for the License Upgrade product would include a mandatory input field for the License Activation Code to which the upgrade applies. The Buyer would need to enter his existing License Code to be upgraded. There is no validation of the existing License Code entered by the Buyer before the order is processed. If the License Code is invalid, the Product Contact Person defined in software_DNA will receive a notification that the Upgrade transaction did not complete successfully.

To enable this automated update for “License Upgrades”, you will need to:

  • Add a mandatory Properties field in the Shopify configuration for this Upgrade product. This field will be used to capture the License Activation Code to which this upgrade applies. The Properties field will be shown to the Buyer in the Order Page and must be filled in to complete the order.
  • Add the <Shopify Product ID> of this upgrade product in the software_DNA Shopify Connector configuration, as explained in the next section.

After the configuration steps below, your customers will see an Order Form like this with a field to enter their License Activation Code (titles, descriptions and error message can be customized:

License Upgrade

To add a Properties field in the Shopify Order Page you will need to add the following HTML code "as is" in the product’s Order Page template:

                    
                         
                        <div>
                           <label for="license_code">Existing License Code</label>
                           <input required data-error="Please enter a License Code." 
                           type="text" id="license_code" name="properties[License_Code]">
                        </div>
                    
                

More information is available in the Shopify Help pages on "Getting Customization Information for Products" including the following article:

   https://help.shopify.com/themes/customization/products/get-customization-information-for-products

Use the above HTML code snippet instead of the example provided in the Shopify instructions.