fbq('init', '1153287051360427', {}, {
"agent": "woocommerce_0-10.3.6-3.5.14"
});
document.addEventListener( 'DOMContentLoaded', function() {
// Insert placeholder for events injected when a product is added to the cart through AJAX.
document.body.insertAdjacentHTML( 'beforeend', '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
}, false );
We use this for all our manually assembled prototypes. Maybe not exactly as good as Kester solder, but 70% cheaper and great for every day soldering jobs.
document.addEventListener('DOMContentLoaded', function() {
setTimeout(function() {
let shipOption = document.querySelector('.wc-block-checkout__shipping-method-option:not(.wc-block-checkout__shipping-method-option--selected)');
let pickupOption = document.querySelector('.wc-block-checkout__shipping-method-option--selected');
if (shipOption && pickupOption) {
pickupOption.classList.remove('wc-block-checkout__shipping-method-option--selected');
shipOption.classList.add('wc-block-checkout__shipping-method-option--selected');
// Simulate click to trigger WooCommerce's logic
shipOption.click();
}
}, 500); // Delay ensures WooCommerce has rendered the elements
});
jQuery(document).ready(function($) {
setTimeout(function() {
var checkbox = $('.wc-block-components-checkbox__input'); // Target the checkbox
if (checkbox.length && !checkbox.prop('checked')) {
checkbox.prop('checked', true).trigger('change'); // Check the box and trigger change event
}
}, 500); // Delay to ensure WooCommerce blocks are loaded
});
(function() {
// Global page view and session tracking for UAEL Modal Popup feature
try {
// Session tracking: increment if this is a new session
// Check if any popup on this page uses current page tracking
var hasCurrentPageTracking = false;
var currentPagePopups = [];
// Check all modal popups on this page for current page tracking
if (typeof jQuery !== 'undefined') {
jQuery('.uael-modal-parent-wrapper').each(function() {
var scope = jQuery(this).data('page-views-scope');
var enabled = jQuery(this).data('page-views-enabled');
var popupId = jQuery(this).attr('id').replace('-overlay', '');
if (enabled === 'yes' && scope === 'current') {
hasCurrentPageTracking = true;
currentPagePopups.push(popupId);
}
});
}
// Global tracking: ALWAYS increment if ANY popup on the site uses global tracking
// Current page tracking: increment per-page counters
if (hasCurrentPageTracking && currentPagePopups.length > 0) {
var currentUrl = window.location.href;
var urlKey = 'uael_page_views_' + btoa(currentUrl).replace(/[^a-zA-Z0-9]/g, '').substring(0, 50);
var currentPageViews = parseInt(localStorage.getItem(urlKey) || '0');
currentPageViews++;
localStorage.setItem(urlKey, currentPageViews.toString());
// Store URL mapping for each popup
for (var i = 0; i < currentPagePopups.length; i++) {
var popupUrlKey = 'uael_popup_' + currentPagePopups[i] + '_url_key';
localStorage.setItem(popupUrlKey, urlKey);
}
}
} catch (e) {
// Silently fail if localStorage is not available
}
})();
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
var astra = {"break_point":"921","isRtl":"","is_scroll_to_id":"","is_scroll_to_top":"1","is_header_footer_builder_active":"1","responsive_cart_click":"flyout","is_dark_palette":"","edit_post_url":"https://www.universal-solder.ca/wp-admin/post.php?post={{id}}&action=edit","ajax_url":"https://www.universal-solder.ca/wp-admin/admin-ajax.php","shop_infinite_count":"2","shop_infinite_total":"24","shop_pagination":"number","shop_infinite_scroll_event":"click","shop_no_more_post_message":"No more products to show.","checkout_prev_text":"Back to my details","checkout_next_text":"Proceed to payment","show_comments":"Show Comments","shop_quick_view_enable":"on-image","shop_quick_view_stick_cart":"","shop_quick_view_auto_height":"1","woo_cart_empty_featured_product":"","single_product_qty_ajax_nonce":"60b6f3a777","single_product_ajax_add_to_cart":"1","is_cart":"","is_single_product":"","view_cart":"View cart","cart_url":"https://www.universal-solder.ca/cart/","checkout_url":"https://www.universal-solder.ca/checkout/","add_to_cart_options_single":"rt_add_to_cart","is_astra_pro":"1","shopRevealEffectEnable":""};
//# sourceURL=astra-theme-js-js-extra
var yithWcwlAddToWishlist = {"isUserLoggedIn":"","globalOptions":{"wishlist_disabled_for_unauthenticated_users":"no","loop_position":"before_add_to_cart","ajax_loading":"yes","icon_type":"default","icon":"heart-outline","custom_icon":"","added_icon_type":"default","added_icon":"heart","custom_added_icon":"","custom_icon_alt":"","custom_icon_width":"25","behaviour":"view","style":"link","popup_title":"Select a wishlist","move_popup_title":"Move to another wishlist","add_label":"Add to wishlist","added_label":"Product added!","remove_label":"Remove from list","browse_label":"Browse wishlist","already_in_label":"The product is already in your wishlist!","default_wishlist_name":"My wishlist"},"buttonClasses":"","feedback_duration":"3000","wishlist_url":"/","containerSelectors":{"productContainer":[".wc-block-grid__product",".wp-block-post.product",".wc-block-product",".add-to-wishlist-before_image"],"thumbnailContainer":["div[data-block-name=\"woocommerce/product-image\"]","div.wc-block-grid__product-image",".woocommerce-loop-product__link [class*=\"image\"]",".astra-shop-thumbnail-wrap",".product-inner .image-wrap","a.woocommerce-loop-product__link","div.t-entry-visual","div.box-image","div.product-image","a.product-image-link"]},"login_wishlist_url":"https://www.universal-solder.ca/my-account/?wishlist_notice=true&add_to_wishlist=%product_id%","i18n":{"feedbacks":{"added":"{{product_name}} has been added to your {{wishlist_name}} list!","removed":"{{product_name}} has been removed from your {{wishlist_name}} list!"}}};
//# sourceURL=yith-wcwl-add-to-wishlist-js-extra
var yith_wcwl_l10n = {"ajax_url":"/wp-admin/admin-ajax.php","redirect_to_cart":"no","yith_wcwl_button_position":"add-to-cart","multi_wishlist":"","hide_add_button":"1","enable_ajax_loading":"1","ajax_loader_url":"https://www.universal-solder.ca/wp-content/plugins/yith-woocommerce-wishlist/assets/images/ajax-loader-alt.svg","remove_from_wishlist_after_add_to_cart":"1","is_wishlist_responsive":"1","time_to_close_prettyphoto":"3000","fragments_index_glue":".","reload_on_found_variation":"1","mobile_media_query":"768","labels":{"cookie_disabled":"We are sorry, but this feature is available only if cookies on your browser are enabled.","added_to_cart_message":"\u003Cdiv class=\"woocommerce-notices-wrapper\"\u003E\u003Cdiv class=\"woocommerce-message\" role=\"alert\"\u003EProduct added to cart successfully\u003C/div\u003E\u003C/div\u003E"},"actions":{"add_to_wishlist_action":"add_to_wishlist","remove_from_wishlist_action":"remove_from_wishlist","reload_wishlist_and_adding_elem_action":"reload_wishlist_and_adding_elem","load_mobile_action":"load_mobile","delete_item_action":"delete_item","save_title_action":"save_title","save_privacy_action":"save_privacy","load_fragments":"load_fragments"},"nonce":{"add_to_wishlist_nonce":"422df87e93","remove_from_wishlist_nonce":"bd932c5ccf","reload_wishlist_and_adding_elem_nonce":"ec883dbe51","load_mobile_nonce":"50f908b1bc","delete_item_nonce":"bc030cb4d7","save_title_nonce":"bc5b32a81c","save_privacy_nonce":"46e14c6aaa","load_fragments_nonce":"ac00e6b4ac"},"redirect_after_ask_estimate":"","ask_estimate_redirect_url":"https://www.universal-solder.ca"};
//# sourceURL=jquery-yith-wcwl-js-extra
var woosb_vars = {"wc_price_decimals":"2","wc_price_format":"%1$s%2$s","wc_price_thousand_separator":",","wc_price_decimal_separator":".","wc_currency_symbol":"C$","price_decimals":"2","price_format":"%1$s%2$s","price_thousand_separator":",","price_decimal_separator":".","currency_symbol":"C$","trim_zeros":"","round_price":"1","recalc_price":"","change_image":"no","bundled_price":"no","bundled_price_from":"regular_price","change_price":"no","price_selector":".summary \u003E .price","saved_text":"(saved [d])","price_text":"Bundle price:","selected_text":"Selected:","alert_selection":"Please select a purchasable variation for [name] before adding this bundle to the cart.","alert_unpurchasable":"Product [name] is unpurchasable. Please remove it before adding the bundle to the cart.","alert_empty":"Please choose at least one product before adding this bundle to the cart.","alert_min":"Please choose at least a total quantity of [min] products before adding this bundle to the cart.","alert_max":"Sorry, you can only choose at max a total quantity of [max] products before adding this bundle to the cart.","alert_total_min":"The total must meet the minimum amount of [min].","alert_total_max":"The total must meet the maximum amount of [max]."};
//# sourceURL=woosb-frontend-js-extra
var uael_particles_script = {"uael_particles_url":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/min-js/uael-particles.min.js","particles_url":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/lib/particles/particles.min.js","snowflakes_image":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/snowflake.svg","gift":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/gift.png","tree":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/tree.png","skull":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/skull.png","ghost":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/ghost.png","moon":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/moon.png","bat":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/bat.png","pumpkin":"https://www.universal-solder.ca/wp-content/plugins/ultimate-elementor/assets/img/pumpkin.png"};
//# sourceURL=elementor-frontend-js-extra
var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false},"i18n":{"shareOnFacebook":"Share on Facebook","shareOnTwitter":"Share on Twitter","pinIt":"Pin it","download":"Download","downloadImage":"Download image","fullscreen":"Fullscreen","zoom":"Zoom","share":"Share","playVideo":"Play Video","previous":"Previous","next":"Next","close":"Close","a11yCarouselPrevSlideMessage":"Previous slide","a11yCarouselNextSlideMessage":"Next slide","a11yCarouselFirstSlideMessage":"This is the first slide","a11yCarouselLastSlideMessage":"This is the last slide","a11yCarouselPaginationBulletMessage":"Go to slide"},"is_rtl":false,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"Mobile Portrait","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"Mobile Landscape","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"Tablet Portrait","value":1024,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"Tablet Landscape","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"Laptop","value":1366,"default_value":1366,"direction":"max","is_enabled":false},"widescreen":{"label":"Widescreen","value":2400,"default_value":2400,"direction":"min","is_enabled":false}},"hasCustomBreakpoints":false},"version":"3.33.4","is_static":false,"experimentalFeatures":{"e_font_icon_svg":true,"additional_custom_breakpoints":true,"container":true,"theme_builder_v2":true,"nested-elements":true,"home_screen":true,"global_classes_should_enforce_capabilities":true,"e_variables":true,"cloud-library":true,"e_opt_in_v4_page":true,"import-export-customization":true,"e_pro_variables":true},"urls":{"assets":"https:\/\/www.universal-solder.ca\/wp-content\/plugins\/elementor\/assets\/","ajaxurl":"https:\/\/www.universal-solder.ca\/wp-admin\/admin-ajax.php","uploadUrl":"https:\/\/www.universal-solder.ca\/wp-content\/uploads"},"nonces":{"floatingButtonsClickTracking":"5b033239f1"},"swiperClass":"swiper","settings":{"editorPreferences":[]},"kit":{"body_background_background":"classic","active_breakpoints":["viewport_mobile","viewport_tablet"],"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description","woocommerce_notices_elements":[]},"post":{"id":0,"title":"Full Catalog Archives - UNIVERSAL-SOLDER Electronics","excerpt":""}};
//# sourceURL=elementor-frontend-js-before
var uael_wc_script = {"ajax_url":"https://www.universal-solder.ca/wp-admin/admin-ajax.php","get_product_nonce":"57bf99086b","quick_view_nonce":"61b006b67d","add_cart_nonce":"32be808339","checkout_update_nonce":"0a484a2573","is_cart":"","is_single_product":"","view_cart":"View cart","cart_url":"https://www.universal-solder.ca/cart/"};
var uael_woo_chekout = {"validation_msg":"Invalid or data missing in the required(*) fields."};
//# sourceURL=uael-woocommerce-js-extra
var wc_add_to_cart_variation_params = {"wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_no_matching_variations_text":"Sorry, no products matched your selection. Please choose a different combination.","i18n_make_a_selection_text":"Please select some product options before adding this product to your cart.","i18n_unavailable_text":"Sorry, this product is unavailable. Please choose a different combination.","i18n_reset_alert_text":"Your selection has been reset. Please select some product options before adding this product to your cart."};
//# sourceURL=wc-add-to-cart-variation-js-extra