wpfSelectedParameters
-
Hello!
im currently trying to achive some functionallity through the js editor. i find the behavior of the wpfSelectedParameters abit odd, as when i delete 1 of them, all of them will get removed.. i tried to implement some custom code, but i need the filter to update the products shown aswell.// Code to handle removal of wpfSelectedParameters individually // $(document).ready(function() { const container = document.querySelector('.wpfSelectedParameters'); if (container) { container.addEventListener('click', function(event) { if (event.target.classList.contains('wpfSelectedDelete')) { if (canRemoveParameter()) { event.target.closest('.wpfSelectedParameter').remove(); } } }); } function canRemoveParameter() { return true; // Always allow removal } }); // Need a way to update the filter upon removal of wpfSelectedParameters //
(note)
is there a solution to this within the plugin, or is it something i have to figure out myself?The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wpfSelectedParameters’ is closed to new replies.