PageSourceSearch

https://catarine-nickel.de/modules/product-list/product-list-main.js?v=5.6.3

js catarine-nickel.de collected 2026-09-27 10:06:13 UTC 1,174 bytes, 33 lines download raw bytes

1// add event listener
2SMShop.basket.base.addMember("SMProductListListener");
3
4function SMProductListListener_onBeforeAdd(args){
5	var smproduct = args[1];
6	var minamount = parseInt(smproduct.getAttribute(_SMAMinAmount));
7	var maxamount = parseInt(smproduct.getAttribute(_SMAMaxAmount));
8	var amount		= parseFloat(smproduct.getAttribute(_SMAAmount));
9	var qtyamount = document.getElementById("PD" + smproduct.getAttribute(_SMAUniqueID) + "Amount");
10	
11	
12	if(qtyamount!=null){
13		if(minamount.toString().length > 0 && maxamount.toString().length > 0){
14			if(!(parseInt(qtyamount.value) >= minamount)){
15				alert("Mindestbestellmenge wurde unterschritten");
16				qtyamount.value = minamount;
17				return(false);
18				} else if(maxamount > 0 && !(parseInt(qtyamount.value) <= maxamount)){
19				alert("Die maximale Bestellmenge wurde überschritten!");
20				qtyamount.value = maxamount;
21				return(false);
22				} else {
23				smproduct.setAttribute(_SMAAmount, qtyamount.value);
24				smproduct.update();
25				return(true);
26				};	
27			} else {
28				alert("Die Mengenangabe darf nicht leer sein!");
29				qtyamount.value = minamount;
30				return(false);
31			};
32		};
33};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.