Match Lowest Price while Ignoring Certain Sellers
From MediaSell
|
This script will change your price to match the lowest price on Amazon.com in SAME OR BETTER CONDITION with $1.00 price floor, while ignoring prices from certain sellers: Replace Annnnnnnnnnn with the relevant Amazon IDs. These can be obtained by clicking on the seller's name while viewing one of their listings on Amazon, and then looking at the end of the URL. Ensure that you grab the IDs that start with "A". (Replace A00000000000 with your Amazon ID.) ignoreAmzIDs = {
'A00000000000' : 1,
'A11111111111' : 1,
'A22222222222' : 1,
'A33333333333' : 1,
};
price = item.basePrice;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices('sameOrBetter');
for (pind=0; pind < priceList.length; pind++) {
if (ignoreAmzIDs[priceList[pind].sellerid]) continue;
lowPrice = priceList[pind].price;
break;
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
Replace Annnnnnnnnnn with the relevant Amazon IDs. These can be obtained by clicking on the seller's name while viewing one of their listings on Amazon, and then looking at the end of the URL. Ensure that you grab the IDs that start with "A". (Replace A00000000000 with your Amazon ID.) ignoreAmzIDs = {
'A00000000000' : 1,
'A11111111111' : 1,
'A22222222222' : 1,
'A33333333333' : 1,
};
price = item.basePrice;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices(item.condition);
for (pind=0; pind < priceList.length; pind++) {
if (ignoreAmzIDs[priceList[pind].sellerid]) continue;
lowPrice = priceList[pind].price;
break;
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
Replace Annnnnnnnnnn with the relevant Amazon IDs. These can be obtained by clicking on the seller's name while viewing one of their listings on Amazon, and then looking at the end of the URL. Ensure that you grab the IDs that start with "A". (Replace A00000000000 with your Amazon ID.) ignoreAmzIDs = {
'A00000000000' : 1,
'A11111111111' : 1,
'A22222222222' : 1,
'A33333333333' : 1,
};
price = item.basePrice;
priceFloor = 1.00;
lowPrice = 0;
priceList = getPrices('all');
for (pind=0; pind < priceList.length; pind++) {
if (ignoreAmzIDs[priceList[pind].sellerid]) continue;
lowPrice = priceList[pind].price;
break;
}
if (lowPrice > 0) price = lowPrice;
if (price < priceFloor) price = priceFloor;
return price;
|

