Match Lowest Price on AbeBooks

From MediaSell

Jump to: navigation, search

This script will match the lowest price on AbeBooks in SAME OR BETTER CONDITION with $1.00 price floor. Please note that Abebooks pricing data doesn't always contain conditions so you might not always be matched to the very lowest price.

if (marketplace == 'Abebooks') {
  price = item.basePrice;
  priceFloor = 1.00;
  lowPrice = 0;
priceList = getMarketPrices('sameOrBetter');
if (priceList && priceList.length > 0) { lowPrice = priceList[0].price; } if (lowPrice > 0) price = lowPrice; if (price < priceFloor) price = priceFloor;
return price; }


This script will match the lowest price on AbeBooks in ANY CONDITION with $1.00 price floor. Please note that Abebooks pricing data doesn't always contain conditions so you might not always be matched to the very lowest price.

if (marketplace == 'Abebooks') {
  price = item.basePrice;
  priceFloor = 1.00;
  lowPrice = 0;
priceList = getMarketPrices('all');
if (priceList && priceList.length > 0) { lowPrice = priceList[0].price; } if (lowPrice > 0) price = lowPrice; if (price < priceFloor) price = priceFloor;
return price; }
Personal tools