Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Last active November 9, 2023 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unlocomqx/c633983d3340b0773a0a5f32f3f8baff to your computer and use it in GitHub Desktop.
Save unlocomqx/c633983d3340b0773a0a5f32f3f8baff to your computer and use it in GitHub Desktop.
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