diff --git a/README.md b/README.md index 65cb2e703b..083d54f918 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,7 @@ environment variables are **optional**._ | Nvidia | `nvidia`| | Nvidia (API) | `nvidia-api`| | Office Depot | `officedepot`| +| Otto | `otto`| | Overclockers (UK) | `overclockers`| | PCComponentes (ES) | `pccomponentes`| | PlayStation | `playstation`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index cb92c7c500..b6c23e2acb 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -58,6 +58,7 @@ import {Novatech} from './novatech'; import {Nvidia} from './nvidia'; import {NvidiaApi} from './nvidia-api'; import {OfficeDepot} from './officedepot'; +import {Otto} from './otto'; import {Overclockers} from './overclockers'; import {PCComponentes} from './pccomponentes'; import {PlayStation} from './playstation'; @@ -138,6 +139,7 @@ export const storeList = new Map([ [Nvidia.name, Nvidia], [NvidiaApi.name, NvidiaApi], [OfficeDepot.name, OfficeDepot], + [Otto.name, Otto], [Overclockers.name, Overclockers], [PCComponentes.name, PCComponentes], [PlayStation.name, PlayStation], diff --git a/src/store/model/otto.ts b/src/store/model/otto.ts new file mode 100644 index 0000000000..f5aee29cbe --- /dev/null +++ b/src/store/model/otto.ts @@ -0,0 +1,66 @@ +import {Store} from './store'; + +export const Otto: Store = { + labels: { + inStock: [ + { + container: + 'button.prd_ordering__button.p_btn150--1st.js_product_addToBasket', + text: ['In den Warenkorb'] + } + ], + maxPrice: { + container: '#normalPriceAmount', + euroFormat: false + }, + outOfStock: { + container: 'div.p_message.p_message--hint > strong', + text: ['Deinen gewünschten Artikel können wir leider nicht mehr liefern'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.otto.de/p/playstation-5-medienfernbedienung-1170617135#variationId=1170617136' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: + 'https://www.otto.de/p/playstation-5-1136008456/#variationId=1136008459' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: + 'https://www.otto.de/p/playstation-5-1154028000#variationId=1154028001' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: + 'https://www.otto.de/p/playstation-5-digital-edition-1161042793#variationId=1161042794' + }, + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: + 'https://www.otto.de/p/xbox-series-s-1229056876/#variationId=1229056877' + }, + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: + 'https://www.otto.de/p/xbox-series-x-1229057353#variationId=1229057354' + } + ], + name: 'otto' +};