Archives: Snippets
Property Type Conditional Search Fields
jQuery(document).ready(function($) { // ============================================ // FIELD VISIBILITY BASED ON PROPERTY TYPE // ============================================ // All conditional field labels (must match your “Label on Front End” exactly) var allConditionalFields = [ ‘BHK Type’, ‘Furnished Status’, ‘Status’, ‘Min Area (sqft)’, ‘Max Area…Continue reading
HTML Snippet
WWOF – Force Default Quantity to 0 and Auto-tick the Add to Cart Checkbox
/** * WWOF v3 (Ant Design Vue): Force default qty to 0 and auto-tick the Add to Cart checkbox * (Supports both manual typing and up/down arrow clicks) */ add_action( ‘wp_footer’, ‘wwof_v3_antdesign_qty_checkbox_script_final’, 999 ); function wwof_v3_antdesign_qty_checkbox_script_final() { ?>Continue reading
Untitled Snippet
Untitled Snippet
BMDrama
ANDRITZ Navigation Panels
document.addEventListener(“DOMContentLoaded”, function () { const triggers = document.querySelectorAll(“.bp-andritz-utility”); const panels = document.querySelectorAll(“.bp-andritz-panel”); const closes = document.querySelectorAll(“.bp-andritz-close”); const backs = document.querySelectorAll(“.bp-andritz-back”); function closeAllPanels(){ panels.forEach(panel => panel.classList.remove(“bp-open”)); document.body.classList.remove(“bp-andritz-active”); } triggers.forEach(trigger=>{ trigger.addEventListener(“click”,function(){ const target = document.getElementById(this.dataset.target); const isOpen = target && target.classList.contains(“bp-open”); closeAllPanels();…Continue reading