dynamic sku display on variable products ( Mihai )

jQuery(document).ready(function($) { // Listen for clicks on the variation items $(‘.variable-items-wrapper’).on(‘click’, ‘li’, function() { // Get the data-value attribute of the selected item var selectedValue = $(this).data(‘value’); // Check if the skuData object is defined and contains the selected SKU…Continue reading

SaleIQ chat bug fix (Mihai)

(function() { let originalTitle = document.title; Object.defineProperty(document, ‘title’, { get: function() { // Remove ‘>’ from the title when accessed return originalTitle.replace(/>/g, ”); } }); })();Continue reading

Silent Print Javascript Lib ( Mihai )

// following function is copy/paste from here: https://github.com/imTigger/webapp-hardware-bridge/blob/master/demo/websocket-printer.js function WebSocketPrinter(options) { let urlSilentPrintServer; if (LOCAL_SILENT_PRINT_SERVER) { urlSilentPrintServer = “wss://127.0.0.1:12212/printer”; } else { urlSilentPrintServer = “wss://192.168.1.46:12212/printer”; } var defaults = { url: urlSilentPrintServer, onConnect: function () { console.log(‘PrintingRouter connected to ‘+urlSilentPrintServer);…Continue reading

Divi Blurb Accessibility Fix (Single Link, ARIA Labels)

(function ($) { $(document).ready(function () { const processBlurbs = () => { const $blurbs = $(“.et_pb_blurb.et_clickable”); const total = $blurbs.length; // Add role=”list” to container row $(“.dle-services-12-row”).attr(“role”, “list”); $blurbs.each(function (index) { const $blurb = $(this); const $h3 = $blurb.find(“h3”).first(); //…Continue reading

Woocommecre Category Fix

jQuery(document).ready(function( $ ){ var checkCategory = jQuery(“body.archive.tax-product_cat .product-category”); if(checkCategory.length > 0){ jQuery(“body”).addClass(“only-products-cat”); } });Continue reading

Woocommecre Category Fix

jQuery(document).ready(function( $ ){ var checkCategory = jQuery(“body.archive.tax-product_cat .product-category”); if(checkCategory.length > 0){ jQuery(“body”).addClass(“only-products-cat”); } });Continue reading

Smooth Scrolling for Anchor Links Special Edit

// Delayed scroll to hash (e.g., #book-call) after Calendly and Zoho Forms load document.addEventListener(“DOMContentLoaded”, function () { const targetHash = window.location.hash; function scrollToHash() { if (targetHash) { const el = document.querySelector(targetHash); if (el) { el.scrollIntoView({ behavior: “smooth”, block: “start” });…Continue reading