Inloggen
Als u een account bij ons heeft, meld u dan aan.
Registreren
Door een account aan te maken in deze winkel kunt u het betalingsproces sneller doorlopen, meerdere adressen opslaan, bestellingen bekijken en volgen en meer.
Account aanmaken
Samsung Galaxy A51 Silicone Cover - Blauw
De zachte, matte siliconen case voelt zijdezacht aan u hand. Het heeft een comfortabele. Met een slank design en zeer goeie bescherming.
Samsung Galaxy A51 Silicone Cover - Blauw
De zachte, matte siliconen case voelt zijdezacht aan u hand. Het heeft een comfortabele. Met een slank design en zeer goeie bescherming.
De Silicone Cover beschermt uw telefoon tegen krassen en stoten. Hij is slechts 1,4 mm dik, zodat het slanke look van uw Galaxy A51 behouden blijft en hij nog steeds gemakkelijk in uw zak blijft passen.
Kenmerken
- Merk: Samsung
- Model: Silicone Cover
- Geschikt voor de Samsung Galaxy A51
- Materiaal: TPU
- Officiële accessoire van Samsung
In de verpakking
0 beoordelen
•••••
0 sterren op basis van 0 beoordelingen
Je beoordeling toevoegen
Beoordeel Samsung Galaxy A51 Silicone Cover - Blauw
// ==UserScript==
// @name See comments in order overview kit 1.5
// @version 1.5
// @description Useful utilities for user information in the backoffice
// @changelog Only see comment or memo when there is one
// @author Lucien Versendaal @ Lightspeed HQ
// @run-at document-end
// @match https://*.webshopapp.com/admin/*
// ==/UserScript==
(function () {
// Promise request
function get(url) {
// Return a new promise.
return new Promise((resolve, reject) => {
// Do the usual XHR stuff
var req = new XMLHttpRequest();
req.open('GET', url);
req.onload = () => {
// This is called even on 404 etc
// so check the status
if (req.status == 200) {
// Resolve the promise with the response text
resolve(req.response);
} else {
// Otherwise reject with the status text
// which will hopefully be a meaningful error
reject(Error(req.statusText));
}
};
// Handle network errors
req.onerror = () => {
reject(Error("Network Error"));
};
// Make the request
req.send();
});
}
function userKit() {
if (/^\/admin\/orders\/?$/i.test(location.pathname)) {
const icons = {
comment: ''
}
get('/admin/orders.json' + location.search).then((response) => {
// console.log( JSON.parse(response).shop_users.findIndex((u) => {return u.id == 462023 }) );
// [...document.querySelectorAll('.table > table tbody tr')].forEach((u) => {
// console.log(u.dataset.id);
// });
JSON.parse(response).orders.forEach((u) => {
//console.log(Object.entries(u.comment).filter());
//console.log('Customer:: ' + u.customer.national_identification);
// Insert html
// document.querySelector('.table > table tbody tr[data-id="'+u.id+'"]').insertAdjacentHTML('afterend', '
'+ Object.entries(u.permissions).filter((p) => p[1] == "write" && p[0] != "any" ).map(p => icons[p[0]]).join("") +' |
');
var commentLength = u.comment.length;
var memoLength = u.memo.length;
//var customerNationalID = u.customer.national_identification;
//if(customerNationalID > 0)
//{
// document.querySelector('.table > table tbody tr[data-id="' + u.id + '"]').insertAdjacentHTML('afterend', '
BSN: ' + customerNationalID + ' |
');
//}
if (commentLength > 0 && memoLength > 0) {
//document.querySelector('.table > table tbody tr[data-id="' + u.id + '"]').insertAdjacentHTML('afterend', '
'+ (u.number) +' Klantopmerking: ' + (u.comment.trim()) + ' |
');
document.querySelector('.table > table tbody tr[data-id="' + u.id + '"]').insertAdjacentHTML('afterend', '
'+ (u.number) +' Interne notitie: ' + (u.memo.trim()) + ' |
');
// Trigger tooltip
//$('.TM_custom i.TM_custom_icon').tipsy({opacity: 1});
}else if(memoLength > 0){
document.querySelector('.table > table tbody tr[data-id="' + u.id + '"]').insertAdjacentHTML('afterend', '
'+ (u.number) +' Interne notitie: ' + (u.memo.trim()) + ' |
');
}else if(commentLength > 0){
//document.querySelector('.table > table tbody tr[data-id="' + u.id + '"]').insertAdjacentHTML('afterend', '
'+ (u.number) +' Klantopmerking: ' + (u.comment.trim()) + ' |
');
}
});
})
}
}
// Init
userKit();
// Init on page load (Turbolinks)
document.addEventListener("page:load", function () {
userKit();
});
})();