icetbr / webext-shopee-advanced-search

Filter search results containing ALL specified words, supporting word exclusion and minimum sold.
1 stars 0 forks source link

[Feature Request] Filter by number of sold products #2

Closed Lhn94 closed 1 year ago

Lhn94 commented 1 year ago

Hi icetbr, Thank you so much for this script. Could I request that a feature to filter for only items with a minimum number of sold times? For example, only show items that have been sold at least 10 times. Example attached. image

icetbr commented 1 year ago

Good idea! My stopped working and I just restored it. I'm behind a lot of work. I will try to do this soon enough.

icetbr commented 1 year ago

Done, let me know if it doesn't work. If products with over 1000 "solds" are a problem, send me a screenshot of the item. In my language they are set as "1,2mil vendidos".

Lhn94 commented 1 year ago

Doesn't seem to work on shopee.vn. @icetbr Could you double check it?

icetbr commented 1 year ago

Fixed in 1.1.1. If anybody wants a fix for their country, send me a screenshot or something so I can know the number format Shopee uses:

/home/ddv/dev/projects/webext-shopee-advanced-search/src/content.js:16

    assert.equal(parseNumber('Đã bán 13,7k'), 13700);
    assert.equal(parseNumber('5,2mil vendidos'), 5200);
    assert.equal(parseNumber('20 sold'), 20);
    assert.equal(parseNumber(''), NaN);
    assert.equal(parseNumber(null), NaN);