Last active
November 9, 2023 14:30
-
-
Save unlocomqx/c633983d3340b0773a0a5f32f3f8baff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('dp-loaded', function() { | |
const field_name = 'price_wt'; | |
window.dp_calc.subscribe(function(calc) { | |
if (!calc.input_fields || !calc.input_fields[field_name]) return | |
$('.precio_IVA').text(calc.input_fields[field_name].value_formatted) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment