Scan code no longer appearing on checkout page
-
The QR code image seems to be pointing to a third party , it will continue to be problematic https://chart.googleapis.com/chart?cht=qr&chld=L|0&chs=150×150&chl=https%3A%2F%2Fcash.app%2F%24OurMiamiBuild%2F5.00
I am not sure why you just are not using an offline QR generator like this one qrcode.js https://github.com/kazuhikoarase/qrcode-generator/tree/master/js
<script src=”qrcode.js”></script>
this is how you would use it after loading qrcode.js onto the page#qr-banner-square { position: absolute; left: 5%; top: 35%; width: 29vw; height: 29vw; }
try { new QRCode(document.getElementById("qr-banner-square"), { text: "<?php echo $myURL; ?>", width: 560, height: 560 }); console.log("QR Code successfully generated."); } catch (error) { console.error("QR Code generation failed:", error); }
// Generate QR code directly var qrCode = new QRCode(document.createElement("div"), { text: "<?php echo $myURL; ?>", width: img.width * 0.3, height: img.width * 0.3 }); var qrCodeImg = qrCode._el.children[0]; // Get the QR code image ctx.drawImage(qrCodeImg, img.width * 0.05, img.height * 0.34, qrCodeImg.width, qrCodeImg.height);
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.