tag document.body.appendChild(style);$('.wcf-single-sel').click(function(e) { console.log('here'); if ($(this).val()) { $('.success-checkout-right-column').addClass('d-none'); $('#success-checkout-right-column-'+$(this).val()).removeClass('d-none'); // Update with desired valueif ($(this).val() == '106805' || $(this).val() == '106804') { // If collective $('#ship-to-different-address').addClass('d-none'); } else { $('#ship-to-different-address').removeClass('d-none'); } } });// Function to check if checkout.js is loaded function isCheckoutJsLoaded() { return typeof window.wc_checkout_params !== "undefined"; }// Function to trigger the variation selection function triggerVariationSelection() { var variationId = urlParams.get("variation_id");if (variationId) { // Find the input element for the variation by ID var variationElement = $(`#wcf-item-product-${variationId}`);if (variationElement.length) { $('.success-checkout-right-column').addClass('d-none'); // Trigger a click event on the element variationElement.click(); } } }// Function to wait for checkout.js to be loadedlet checkoutInterval;function waitForCheckoutJs() { if (isCheckoutJsLoaded()) { clearInterval(checkoutInterval); // Trigger variation selection on AJAX completion // $(document).off('ajaxComplete.triggerVariationSelection').on('ajaxComplete.triggerVariationSelection', function() { triggerVariationSelection(); // }); } else { // Check again after a short delay checkoutInterval = setInterval(() => { waitForCheckoutJs(); }, 100); } }$(window).on("load", function ($) { waitForCheckoutJs(); });});
Please confirm you want to block this member.
You will no longer be able to:
Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.