Index

Product Person JavaScript properties

Name Type Access
name String read/write
country String read/write
street String read/write
street2 String read/write
postalCode String read/write
city String read/write
stateOrProvince String read/write
phone String read/write
email String read/write

Sample Script

// Sample script that looks for persons selected in the Product Safety panel.
function run() {
	for (listing of selectedListings) {
		if (listing.manufacturer) {
			consoleLog("Found Manufacturer: " + listing.manufacturer.name);
		}
		for (person of listing.productResponsiblePersons) {
			consoleLog("Found Responsible Person: " + person.name);
		}
	}
}


<< Image JavaScript properties Accessing Product Persons >>