Replies: 9 comments
-
Take a look here: #1018 Recently pulled this in. This is how you would add a new store. Other than that, I'm working on a big update to help make this easier for users. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I also wanted to add medimax to the stores list (as well as otto and other smaller stores), how could this be done? |
Beta Was this translation helpful? Give feedback.
-
You have to create a new *.ts file for the store e.g. /src/store/model/medimax.ts After that, you only have to edit /src/store/model/index.ts and add the new store at two places in the same format like the other stores. Finally you have to add the store to /.env I have Medimax and Otto up and running but only for sonyps5c. |
Beta Was this translation helpful? Give feedback.
-
@DerHOgi thanks a lot! would you mind sharing the .ts files, as I don't know the url, container and texts? |
Beta Was this translation helpful? Give feedback.
-
I've recently added this as well: https://github.com/jef/streetmerchant/wiki/Help:-Configuration:-Adding-a-store Thanks for the help @DerHOgi! |
Beta Was this translation helpful? Give feedback.
-
@DerHOgi - I'm trying but it is failing stating warn :: No store named smyths, skipping. Any chance you can help us? These are the links I found for PS5 i.e. Argos Console Argos DE John Lewis Console Smyths Console ShopTo Console ShopTo DE Box Console Box DE Zatu Console Zatu DE Thanks! |
Beta Was this translation helpful? Give feedback.
-
I think the url would just be the page that has the add to cart. @DerHOgi & @jef I followed the guide and I am not quite sure how to locate the input for the I am currently trying to create a |
Beta Was this translation helpful? Give feedback.
-
For the containers, what you'll wanna do is use F12 on the site you want to Inspect and click this button Hover over the item you want and it should give you the context: You can also right-click on any website element and select 'Inspect'. That should also give you the same results. Some people will decide to choose a parent element as it can be unique. Like this case! I'd rather use The reason why we use these selectors anyway is to wait for the webpage to load these specific elements, to help eliminate false positives. |
Beta Was this translation helpful? Give feedback.
-
Below is my
|
Beta Was this translation helpful? Give feedback.
-
What do I have to do, to add a new shop? I tried to add medimax.de to the list of stores.
I created the file:
/src/store/model/medimax.ts with the necessary parameters.
2 files where created by the bot itself:
/build/store/model/medimax.js
/build/store/model/medimax.js.map
I edited the files:
/src/store/model/index.ts
/build/store/model/index.js
I add the store to /.env
But... something is missing.
If I start the bot, I get an error that there is no store named medimax. What is missing?
Beta Was this translation helpful? Give feedback.
All reactions