This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//to use this js go to order list the open developer mote and paste the following code in the console: | |
//VARIANT 1 just tdisplay | |
var elems = Array.prototype.slice.call(document.querySelectorAll('.order-item')); | |
elems.forEach(function(elem) { | |
var status = elem.querySelector('.order-item-header-status-text'); | |
var orderInfo = elem.querySelector('.order-item-header-right-info'); | |
if (status && status.textContent === 'Awaiting delivery' && orderInfo) { | |
var orderIdText = orderInfo.textContent; |