FillZRepricingHelp
From MediaSell
| Scripting Basics | ||||||||||||||||||||||||||||||||||||
|
Amazon Pricing Results
The following functions and variables are available in the FillZ pricing scripts: * return price; - store the price you want to set for the market using this function
* return; - leave current price unchanged
* priceList[pind].sellerfeedback = grabs seller feedback within the price list loop
* isOlder(item.open_date, 5) - check if item was created more than 5 days ago
* item - the current item. This object has the following data elements:
o item.basePrice - the base price.
o item.sku - the SKU.
o item.condition - the numeric item condition - see getPrices.
o item.title - the title.
o item.quantity - the quantity available in your inventory.
o item.manufacturer - the publisher.
o item.itemType - the type of item - book, DVD, etc.
o item.cost - the cost entered by you.
o item.location - the location.
o item.lastModified - when the item was last modified.
o item.isExpedited - whether you specified expedited shipping available.
o item.isInternational - whether you specified int'l shipping available.
o item.standing - the standing of the item.
o item.asin - the ASIN of the item.
o item.upc - the UPC of the item - can be undefined.
o item.note - the item description.
o item.source - the item source field.
* getRank() - the sales rank of the current item. Can be undefined.
* getAmazonPrice() - the new sales price direct from amazon.com. zero if not available from amazon.com
* debug - this variable is true if the debug checkbox is checked.
* alert(string) - prints a string on the results page.
* getPrices() - grab pricing data (must be defined)
o getPrices(item.condition) = get the market prices for a condition type. Condition can be a number - use the following
range: 11 - new, 1 - like new, 2 - very good, 3 - good, 4 - acceptable. The result can be
an empty array, so check the length.
o getPrices('all') - get all prices of all conditions
o getPrices('sameOrBetter') - get prices for same or better condition
* getSpecificAmazonPrice
* getSpecificMarketPrices('AmazonUK', 'sameOrBetter');
* getListPrice()
* getSpecificMarketListPrice
* getMarketPrices - will grab UK data for Amazon.co.uk, DE data for Amazon.de, Abe data for Abe, Amazon.com data for rest
The getPrices() function returns an array of objects. Each object has the following attributes:
priceList = getPrices('sameOrBetter');
if (priceList) {
for (pind=0; pind < priceList.length; pind++) {
if (priceList[pind].sellerid == myAmzID) continue;
if (priceList[pind].sellerfeedback < 10) continue;
lowPrice = priceList[pind].price;
break;
}
}
Marketplaces You can use these values below. Note that capitalization is important: A1Books, Abebooks, Abebooks2, Alibris, Alibris2, Amazon, Amazon2, AmazonCA, AmazonDE, AmazonFR, AmazonSC, AmazonUK, Biblio, BNBQ, Chrislands, Custom1, Custom2, Custom3, EBay, ECampus, Gemm, Half, TextbooksRus, TextbookX, Valore
|

