WIP PreorderProduct 2025-02-24

This commit is contained in:
Frank Schubert
2025-02-25 13:45:23 +01:00
parent 99bdbd3b39
commit 236932d452
8 changed files with 355 additions and 60 deletions
+19
View File
@@ -139,7 +139,26 @@
} else {
$(selector + " i.collapse-indicator").removeClass(itype + "-down").addClass(itype + "-right");
}
}
function priceToMarketshare(netop_id, product_id, type) {
console.log(netop_id, product_id, type);
let price = $("#price-" + type + "-" + netop_id + "-" + product_id).val();
console.log(price);
if(!price.length) return;
$("#marketshare-0-" + netop_id + "-" + product_id + "-" + type).val(price);
}
function marketshareToPrice(netop_id, product_id, type) {
console.log(netop_id, product_id, type);
let price = $("#marketshare-0-" + netop_id + "-" + product_id + "-" + type).val();
console.log(price);
if(!price.length) return;
$("#price-" + type + "-" + netop_id + "-" + product_id).val(price);
}