Create a SampleSettingsField.ascx file and add the following markup:
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:
Add SampleSettingsField.js file and add the following content:
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.
Back To Top