Exclude specific SKUs from marketplaces

From MediaSell

Jump to: navigation, search

If you would like to prevent a specific SKU from being sent to a marketplace, you can use this script, and replace the SKU (first example uses SKU0001):

if (marketplace == 'Abebooks') {
  if (item.sku.match(/SKU0001/i)) return 0;
}


If you would like to prevent several SKUs from being sent to a marketplace, you can use a script like this:

if (marketplace == 'Abebooks') {
  if (item.sku.match(/SKU0001|SKU0002|SKU0003/i)) return 0;
}


If you would like to prevent several SKUs from being sent to several marketplaces, you can use a script like this:

if (marketplace == 'Abebooks' || marketplace == 'Amazon') {
  if (item.sku.match(/SKU0001|SKU0002|SKU0003/i)) return 0;
}
Personal tools