Find the right DELTACO E-Charge cable for your electric vehicle (EV).
The E-Charge Configurator can be embedded or opened as a top-level window without any parameters.
<iframe src="https://echarge-configurator.github.deltaco.eu/"></iframe>
This will initialize the configurator with all default settings. Including the DELTACO A Nordic Brand logo, product links to deltaco.se and the default theme colors.
You can also provide your own list of cables. This is useful if you wish to link to your own webshop from the configurator, remove products not in your assortment; or even change cable metadata (such as title and thumbnail).
Each cable is defined as an object, the list of all available cables are fetched by the configurator as a JSON file (see cables.json
)
"EV-3207": {
"length": "7m",
"image": "https://www.deltaco.se/sites/cdn/PublishingImages/Products/EV-3207.png?width=120",
"text": "Type 2 - Type 2, 32A",
"link": "https://www.deltaco.se/produkter/kablar-adaptrar/ev-charge/EV-3207"
}
Key | Value |
---|---|
length |
Cable length defined in meters |
image |
URL to a scaled thumbnail (120px wide) |
text |
Short text describing the cable |
link |
URL to open when "Read more" is clicked |
Supply your own cables.json
Simply pass the URL of your cables.json
as a search parameter. ?cables=<PATH_TO_JSON>
<iframe src="https://echarge-configurator.github.deltaco.eu?cables=https://example.com/cables.json"></iframe>
You can translate the configurator by providing a JSON file (see i18n_sv.json
)
"<language>": {
"<original_text>": "<translated_text>"
}
Simply pass it on the url ?translation=<PATH_TO_JSON>
<iframe src="https://echarge-configurator.github.deltaco.eu?translation=https://example.com/i18n_sv.json"></iframe>
You can change the appearance of the configurator by passing search parameters.
Available interfaces:
You can insert your own image to replace the default DELTACO A Nordic Brand logo in the header. Supply a search parameter with a URL to an image.
<iframe src="https://echarge-configurator.github.deltaco.eu?logo=https://example.com/img/myLogo.webp"></iframe>
Change the default palette of the configurator by passing up to three color
parameters. They will alter in order of appearace from left to right:
- Main color (default is green)
- Hover color (default is green with a lighter shade)
- Secondary color (default is blue)
This is how it's read: ?color=<FIRST_COLOR>&color=<SECOND_COLOR>&color=<THIRD_COLOR>
<iframe src="https://echarge-configurator.github.deltaco.eu?color=e1a028&color=edd6ac&color=212121"></iframe>
The example above will produce this:
The DELTACO E-Charge Configurator source is licensed under the MIT License
Please report bugs, suggest features and submit feedback by creating an Issue
Pull Requests to this repo are accepted.