Creating custom item field and displaying the value in PDP using Site Builder:

Description :

So for creating a custom item field we need to navigate to Customization –> Lists, Records, & Fields –> Item Fields –> New
Now we need to provide a Label and type for the field then in the applies to sub-tab select the necessary fields.


we can customize the help message in the display sub-tab so that it will display that message in the help field.
Now we have to go to item record and give the required information we want to display in the PDP in the newly created field. Click save.


Then to display the value in PDP we need to navigate to Commerce –> Site Builder –> Item/Category Templates and then click edit option for the item drilldown template. 
Now add the code in the template html by putting the codes in TR tag and we have pre-defined codes for displaying the custom item fields.

<%=getCurrentAttribute('item','custitemID')%>


Now the Custom item field will be displayed in the PDP as the screenshot given below.

Leave a comment

Your email address will not be published. Required fields are marked *