IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
Create a SampleSettingsField.ascx file and add the following markup:
SampleSettingsField.ascx
The SampleSettingsField.ascx file contains the markup for the properties displayed to a user who is configuring your shipping provider in the Shipping method area. The sample SampleSettingsField.ascx file has the following default fields:
Create SampleSettingsField.cs class that inherits FieldControl and add the following code:
SampleSettingsField.cs
FieldControl
Add SampleSettingsField.js file and add the following content:
SampleSettingsField.js
In the code above the javascript validates the controls and sends Sitefinity CMS rhe serialized data that has to be saved in the database. The code also controls the popup that is displayed for each service in the shipping provider.
You need to change the SampleSettingsField.ascx and SampleSettingsField.js files to be Embedded Resources. In your Visual Studio solution, in the cintext menu of the file, click Properties. Change the Build Action property to Embedded Resource.
If you add or remove any fields from the markup file, you will need to modify the code behind file SampleSettingsField.cs and the JavaScript file SampleSettingsField.js.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important