Devam Ediyor

508694 Repricing script for Half and Amazon e-commerce sites

I use a 3rd party program to sell CD's & DVD's on [url removed, login to view], [url removed, login to view], & [url removed, login to view]

The 3rd party program is called "FillZ"

The re-price script must be coded in JavaScript (EMCAScript). Their system supports JavaScript 1.5.

as of today this script does the following:

ignores self

ignores sellers on AMAZON with less than 50 feedbacks

if item is New, match lowest price on AMAZON in New condition, OR price minus $1.00 of AMAZON's price (whichever is lower)

if item is Used, match lowest price on AMAZON in ANY used condition, OR price to 30% below lowest New price, OR price $1.00 below Amazon's price, (whichever is lower)

Floor price is $3.25

Ceiling price is $549.99

I sell on [url removed, login to view], [url removed, login to view], & Amazon.com. Right now the script only grabs pricing info from [url removed, login to view] and uses that info for all websites. So for example if an item's lowest price new price on amazon is $4.99, and the same item on [url removed, login to view]'s lowest price is $12.99, and the same item on [url removed, login to view] lowest price is $16.99, they ALL will be priced at $4.99 regardless. Because that's how this script works. It only knows pricing information from [url removed, login to view] & nothing else.

What I want is the same script to work for [url removed, login to view], [url removed, login to view], & [url removed, login to view] but individually. For example I want to run this script based on Alibris's, [url removed, login to view], & [url removed, login to view] individually. I do not want to keep using [url removed, login to view] pricing and throwing those prices on the other 2 websites. I want Alibris, & [url removed, login to view] to have the CORRECT pricing information independently themselves.

Here is the script as of right now (works perfect if I ONLY sold on [url removed, login to view]):

/* Fillz ID : XXXX

* Customer : XXXXXX

* OTRS : XXXXXX

*/

/* 1. ignore self

* 2. ignore sellers with less than 50 feedback

* 3. if item is New, match lowest price on [url removed, login to view] in New condition or price to [url removed, login to view]'s

* price minus 1.00, whichever is lower

* 4. if item is Used, match lowest price on [url removed, login to view] in any Used condition, or price to

* 30% below lowest New price, or, price to 1.00 below [url removed, login to view]'s price, whichever is lowest

* 5. floor is 3.25

*/

price = [url removed, login to view];

lowPrice = 0;

lowPriceNew = 0;

lowPriceUsed = 0;

discount = 0;

// 5.

priceFloor = 3.25;

priceCeiling = 549.00;

amzPrice = getAmazonPrice();

isFBA = isUsingFulfillment();

// 1.

ignoreAmzIDs = {

'AQM04SR66Q2E0' : 1, // My amazon ID

};

// 2.

ignoreFeedbackBelow = 50;

say('Item condition: '+[url removed, login to view]);

say('Amazon price: '+amzPrice);

priceList = getPrices('all');

if (priceList) {

for (pind=0; pind < [url removed, login to view]; pind++) {

seller = priceList[pind];

// 1.

if (ignoreAmzIDs[[url removed, login to view]]) continue;

if ( isFBA && ![url removed, login to view]) continue;

// 2.

if ([url removed, login to view] < ignoreFeedbackBelow) continue;

if (!lowPriceNew && [url removed, login to view] == 11 ){

lowPriceNew = [url removed, login to view];

say('Lowest new price: '+[url removed, login to view]);

}

if (!lowPriceUsed && [url removed, login to view] != 11 ){

lowPriceUsed = [url removed, login to view];

say('Lowest used price: '+[url removed, login to view]);

}

if (lowPriceNew && lowPriceUsed) break;

}

}

tmpPrice = 0;

// 3.

if ([url removed, login to view] == 11) {

if (lowPriceNew) tmpPrice = lowPriceNew;

if (amzPrice){

amzPrice -= 1

if (tmpPrice && amzPrice < tmpPrice || !tmpPrice) {

say('Using adjusted amazon price ('+amzPrice+')');

tmpPrice = amzPrice;

}

}

}

// 4.

else {

if (lowPriceUsed) tmpPrice = lowPriceUsed;

if (lowPriceNew) {

lowPriceNew *= .7;

if (tmpPrice && lowPriceNew < tmpPrice || !tmpPrice) {

say('Using adjusted new price ('+lowPriceNew+')');

tmpPrice = lowPriceNew;

}

}

if (amzPrice){

amzPrice -= 1

if (tmpPrice && amzPrice < tmpPrice || !tmpPrice) {

say('Using adjusted amazon price ('+amzPrice+')');

price = amzPrice;

}

}

}

if (tmpPrice) price = tmpPrice;

if (priceCeiling && price > priceCeiling) {

say('price ('+price+') above price ceiling ('+priceCeiling+'), setting price to price ceiling');

price = priceCeiling;

}

// 5.

if (priceFloor && price < priceFloor) {

say('price ('+price+') below price floor ('+priceFloor+'), setting price to price floor');

price = priceFloor;

}

return price;

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//

function say(msg) {

if (debug) alert(msg);

}

Beceriler: Amazon İnternet Servisleri, Her şey Kabul, e-Ticaret, Javascript, MySQL, OSCommerce, PHP, Betik Yükleme, Kabuk Betiği, Web Sitesi Tasarımı

Daha fazlasını görün: today in javascript, alibris, amazon match lowest price script, work at amazon, how to work for amazon, e-works, sell dvd, price script, otrs, my new amazon, ceiling, amazon sell, amazon script, amazon price, amazon feedback, pricing setting, amazon function, script alert, match prices, otrs system, amazon script prices, sellerid, script alert script, amazon discount script, want commerce system

İşveren Hakkında:
( 6 değerlendirme )

Proje NO: #2254621