I would like to point out the costs in installments, however after I choose extra variations they are going to seem in sequence. I would like one to seem for every choice.
How do I remedy this downside?
that is the code:
jQuery(doc).prepared(operate() {
jQuery('.variations_form').on( 'found_variation.id', operate( occasion, variation ) {
var variationPrice = variation.display_price;
var qty = 12;
var installment = (variationPrice / qty).toFixed(2);
jQuery('.go to').earlier than(`<p class="title is-5 hidden"> Em até ${qty} x sem juros de R$${installment}</p>`);
});
});