mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 07:37:39 +00:00
feat(store): add Otto (#1096)
This commit is contained in:
@@ -200,6 +200,7 @@ environment variables are **optional**._
|
|||||||
| Nvidia | `nvidia`|
|
| Nvidia | `nvidia`|
|
||||||
| Nvidia (API) | `nvidia-api`|
|
| Nvidia (API) | `nvidia-api`|
|
||||||
| Office Depot | `officedepot`|
|
| Office Depot | `officedepot`|
|
||||||
|
| Otto | `otto`|
|
||||||
| Overclockers (UK) | `overclockers`|
|
| Overclockers (UK) | `overclockers`|
|
||||||
| PCComponentes (ES) | `pccomponentes`|
|
| PCComponentes (ES) | `pccomponentes`|
|
||||||
| PlayStation | `playstation`|
|
| PlayStation | `playstation`|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ import {Novatech} from './novatech';
|
|||||||
import {Nvidia} from './nvidia';
|
import {Nvidia} from './nvidia';
|
||||||
import {NvidiaApi} from './nvidia-api';
|
import {NvidiaApi} from './nvidia-api';
|
||||||
import {OfficeDepot} from './officedepot';
|
import {OfficeDepot} from './officedepot';
|
||||||
|
import {Otto} from './otto';
|
||||||
import {Overclockers} from './overclockers';
|
import {Overclockers} from './overclockers';
|
||||||
import {PCComponentes} from './pccomponentes';
|
import {PCComponentes} from './pccomponentes';
|
||||||
import {PlayStation} from './playstation';
|
import {PlayStation} from './playstation';
|
||||||
@@ -138,6 +139,7 @@ export const storeList = new Map([
|
|||||||
[Nvidia.name, Nvidia],
|
[Nvidia.name, Nvidia],
|
||||||
[NvidiaApi.name, NvidiaApi],
|
[NvidiaApi.name, NvidiaApi],
|
||||||
[OfficeDepot.name, OfficeDepot],
|
[OfficeDepot.name, OfficeDepot],
|
||||||
|
[Otto.name, Otto],
|
||||||
[Overclockers.name, Overclockers],
|
[Overclockers.name, Overclockers],
|
||||||
[PCComponentes.name, PCComponentes],
|
[PCComponentes.name, PCComponentes],
|
||||||
[PlayStation.name, PlayStation],
|
[PlayStation.name, PlayStation],
|
||||||
|
|||||||
@@ -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'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user