-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(galaxus): update selector, add out of stock check #1607
Conversation
Fixxed bugs found in Mediamarkt / Saturn Webstore, after Change to their shop after 29.12.2020
# Conflicts: # src/store/model/galaxus.ts
…Z1f2 This change is aswell tested already
src/store/model/galaxus.ts
Outdated
@@ -8,7 +8,7 @@ export const Galaxus: Store = { | |||
text: ['In den Warenkorb'] | |||
}, | |||
maxPrice: { | |||
container: '.productDetail .Z1ex', | |||
container: '.productDetail .Z1f2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using only ".productDetail" works most parts, since i have some special trackings on the galaxus site aswell, i found that as soon that a number comes before the acutal price, the script takes that number (even if it s an percentage)
Example: https://www.galaxus.de/de/s1/product/lian-li-o11dynamic-xl-midi-tower-pc-gehaeuse-12200197
So it looks like it works until there is running something like a discount or something like this ( in this case )
If this does not matter at all ( since main purpose is to find stock of items / prices of items overpriced ) i can do push the change to the fix branch if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already updated like 10 minutes ago in bugfix branch, should be up to date now ( until the next change i think on sunday / monday ) ...
…xus products currently, caused from inStock check not working properly ( cart is sometimes marked as enabled but its not enabled ). out of stock check works around this issue for now.
Out of the current not up to date selector another proble came up: all Items currently tracked were shown instock although the items were not instock, Tested them and they work as expected , cross check with an real available item shows, instock is shown correctly at this stage. However, the patch from 06.01 ( which was not merged yet ) aswell as the updated patch from 08.01. ( which is aswell not merged yet ) is included. I suspect an additional change for the update marker today, but there is still no change visible yet. Please merge this asap, i will open another pull request if the state of the galaxus update marker changes again. |
-> Verified and tested. Awaited to work until wednesday.
As suspected, the update selector changed again a few hours ago, fixed this with the latest patch ( together with the implementation of the out of stock check for galaxus ) |
I guess we can continue to do this. Thanks for building out the outOfStock selectors. |
Thanks for all your help! |
…-microcenter-out-of-stock * 'main' of github.com:jef/streetmerchant: (23 commits) chore(deps-dev): bump webpack from 5.13.0 to 5.14.0 (jef#1692) chore(deps): bump puppeteer-extra from 3.1.15 to 3.1.16 (jef#1678) chore(deps): bump puppeteer-extra-plugin-block-resources from 2.2.7 to 2.2.8 (jef#1691) chore(deps): bump google-github-actions/release-please-action from v2.14 to v2.15 (jef#1655) chore(deps): bump @slack/web-api from 5.15.0 to 6.0.0 (jef#1669) fix(bandh): asus cards / out of stock check added (jef#1670) chore(deps): bump puppeteer-extra-plugin-stealth from 2.6.5 to 2.6.6 (jef#1680) chore(deps): bump twilio from 3.54.2 to 3.55.0 (jef#1679) chore(deps): bump puppeteer-extra-plugin-adblocker from 2.11.9 to 2.11.10 (jef#1681) chore(computeruniverse): add 3060ti cards (jef#1665) fix(wipoid): added 3090/3080/3070/3060ti/ryzen store items (jef#1683) feat(vsgamers): add maxPrice selector(jef#1682) fix(galaxus): update selector ( 14.01.2020 07:00 ) (jef#1664) docs: add hyperlinks docs(twitch): add instructions on how to get tokens chore(lint): add void for dangling promise chore(deps): bump dependencies feat(twilio): add support to have multiple numbers (jef#1450) feat(galaxus): update selector, add out of stock check (jef#1607) feat(asus): add outOfStock label (jef#1653) ...
Description
Galaxus changed again the selector in the CSS, this time to Z1fp.
Last change done in: #1599 (yesterday)
Testing
verified change, price is now tracked again and not just in stock / out of stock.