Installation

Untitled

  1. Ajouter ces lignes à la fin de votre page HTML
<script
  src="<https://dbgt0bv51nea5.cloudfront.net/lbx-conso-sim/lbx-conso-sim.js>"
></script>
  1. Insérer un custom-element avec lbx-conso pour montrer le simulateur sur votre site
<lbx-conso
  authkey="<votre-authkey>"
  vd="<votre-vd>"
  test-env="false"
  productId="<commande-id-interne>"
  border-color="#f9b104"
  primary-color="#fffbeb"
  header-bg-color="#f9b104"
  header-text-color="white"
  result-bg-color="white"
  slider-color="coral"
></lbx-conso>

Configuration

Parameter name Is Mandatory Expected Value Comments
authkey yes string Credentials : value from developer tab
vd yes string Credentials : value from developer tab
Optional params
test-env no boolean : “false" par defauit Utilise l'environnement test
total no number : "0" par defaut Montant entre 15000 et 100000
hide-apport no boolean : "false" par defaut Si "true", apport est 0 et non-modifiable
marque no string Free text
modele no string Free text
finition no string Free text
plaque no string Free text
kilometrage no string Free text
image no url
date no date (YYYY-MM-DD) Mise en circulation
typeprojet no string Il faut renseigner le numéro correspondant au type de projet à financer. Les différentes options sont:
1 = Auto neuve
2 = Auto occasion +2ans
5 = Auto occasion - de 2ans
8 = Camping car neuf
9 = Camping car occasion
10 = Moto neuve
11 = Moto d’occasion
14 = Travaux, aménagements
15 = Trésorerie
16 = Mobilier
17 = Electroménager
19 = TV, Hi-Fi, Numérique, Informatique
21 = Vacances, loisirs, projets personnels
stock no boolean
productId no string Free text
Theming
border-color no color Border color
primary-color no color Background color
header-bg-color no color Header's color
header-text-color no color Header's text color
slider-color no color Slider Track color
result-bg-color no color Result block's background color
btn-bg-color no color Button's background color
btn-text-color no color Button's text color