Exclude specific ISBNs/UPCs/ASINs from marketplaces

From MediaSell

Jump to: navigation, search

This script will allow you to remove items with specific ISBNs/UPCs/ASINs from being listed on specified marketplaces. The example below will remove 0123456789 from AbeBooks. You would need to fill in the ISBN/UPC/ASIN for your item to replace 0123456789 if you use this script.

if (venue == 'Abebooks') {
 if (item.asin.match(/0123456789/i)) return 0;
}


To prevent multiple items from being listed on a marketplace, the script can be written like this:

if (venue == 'Abebooks') {
 if (item.asin.match(/0123456789|1123456789|2123456789/i)) return 0;
}


To prevent multiple items from being listed on more than one marketplace, the script can be written like this:

if (venue == 'Abebooks' || venue == 'Amazon') {
 if (item.asin.match(/0123456789|1123456789|2123456789/i)) return 0;
}
Personal tools