Product details
Product short description.
document.addEventListener("DOMContentLoaded", function (event) {
const element = document.getElementsByClassName('oap_hairdiagStart_divbtn');
if (element.length > 0) {
let urlParams = new URLSearchParams(window.location.search);
if (urlParams != "" || urlParams != null) {
var keyValuepairs = urlParams.toString().split('&');
var qrUtmfound = 0;
keyValuepairs.forEach(function (item, index) {
if (item === "utm_source=pos" || item === "utm_medium=qrcode") {
qrUtmfound++;
}
});
if (qrUtmfound == 2) {
let relocHref = document.getElementById("hair_color_start_btn").getAttribute("href");
let relocUpdatedurl = relocHref + window.location.search;
document.getElementById("hair_color_start_btn").setAttribute("href", relocUpdatedurl);
}
}
}
});
Ingredients
document.addEventListener("DOMContentLoaded", function (event) {
const element = document.getElementsByClassName('oap_hairdiagStart_divbtn');
if (element.length > 0) {
let urlParams = new URLSearchParams(window.location.search);
if (urlParams != "" || urlParams != null) {
var keyValuepairs = urlParams.toString().split('&');
var qrUtmfound = 0;
keyValuepairs.forEach(function (item, index) {
if (item === "utm_source=pos" || item === "utm_medium=qrcode") {
qrUtmfound++;
}
});
if (qrUtmfound == 2) {
let relocHref = document.getElementById("hair_color_start_btn").getAttribute("href");
let relocUpdatedurl = relocHref + window.location.search;
document.getElementById("hair_color_start_btn").setAttribute("href", relocUpdatedurl);
}
}
}
});
Usage
document.addEventListener("DOMContentLoaded", function (event) {
const element = document.getElementsByClassName('oap_hairdiagStart_divbtn');
if (element.length > 0) {
let urlParams = new URLSearchParams(window.location.search);
if (urlParams != "" || urlParams != null) {
var keyValuepairs = urlParams.toString().split('&');
var qrUtmfound = 0;
keyValuepairs.forEach(function (item, index) {
if (item === "utm_source=pos" || item === "utm_medium=qrcode") {
qrUtmfound++;
}
});
if (qrUtmfound == 2) {
let relocHref = document.getElementById("hair_color_start_btn").getAttribute("href");
let relocUpdatedurl = relocHref + window.location.search;
document.getElementById("hair_color_start_btn").setAttribute("href", relocUpdatedurl);
}
}
}
});
Descubre más tips y consejos
Comienza a cuidar tu piel
{
"@context": "http://schema.org",
"@type": "Thing",
"subjectOf": {
"@type": "ItemList",
"itemListElement": [
]
}
}
Completa tu Look
¡Una rutina completa para un maquillaje de larga duración!
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type":"ListItem",
"position": 1,
"item": {
"@id": "/",
"name": "Inicio"
}
}
,
{
"@type":"ListItem",
"position": 2,
"item": {
"@id": "https://www.lorealparis.cl/cuidado-facial",
"name": "Productos para el Cuidado Facial"
}
}
,
{
"@type":"ListItem",
"position": 3,
"item": {
"@id": "https://www.lorealparis.cl/cuidado-facial/cuidado-de-la-piel",
"name": "Productos para el Cuidado de la Piel"
}
}
,
{
"@type":"ListItem",
"position": 4,
"item": {
"@id": "https://www.lorealparis.cl/cuidado-de-la-piel/agua-micelar",
"name": "Agua micelar"
}
}
,
{
"@type":"ListItem",
"position": 5,
"item": {
"@id": "https://www.lorealparis.cl/agua-micelar/agua-micelar-ht5-200-ml",
"name": "Sample Product 12"
}
}
]
}