We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sur le tunnel de vente
diff --git a/app/Resources/views/event/ticket/ticket.html.twig b/app/Resources/views/event/ticket/ticket.html.twig index 0ab90f48..e3545c41 100644 --- a/app/Resources/views/event/ticket/ticket.html.twig +++ b/app/Resources/views/event/ticket/ticket.html.twig @@ -138,8 +138,9 @@ {% if type.vars.attr['data-price'] == 0 %} OFFERT {% else %} - {{ type.vars.attr['data-price'] }}€ + {{ type.vars.attr['data-price'] * 1.1 }}€ {% endif %} + TTC </span> <br /> <span class="tickets--type-details"> @@ -305,4 +306,4 @@ }); </script> {# Debut block conversion linkedIn Insights #} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/htdocs/js/inscription.js b/htdocs/js/inscription.js index 8800b8bb..456a5cc9 100644 --- a/htdocs/js/inscription.js +++ b/htdocs/js/inscription.js @@ -95,6 +95,30 @@ $(document).ready(function(){ var df = document.createDocumentFragment(); + var trClone = tr.cloneNode(); + trClone.classList.add('registration') + var thClone = th.cloneNode(); + thClone.appendChild(document.createTextNode("Type")); + trClone.appendChild(thClone); + + var tdClone = td.cloneNode(); + tdClone.appendChild(document.createTextNode("Prix HT Unitaire")); + trClone.appendChild(tdClone); + + var tdClone = td.cloneNode(); + tdClone.appendChild(document.createTextNode("Quantité")); + trClone.appendChild(tdClone); + + var tdClone = td.cloneNode(); + tdClone.appendChild(document.createTextNode("Prix HT")); + trClone.appendChild(tdClone); + + var tdClone = td.cloneNode(); + tdClone.appendChild(document.createTextNode("Prix TTC")); + trClone.appendChild(tdClone); + + df.appendChild(trClone); + for (var i in inscriptions) { var trClone = tr.cloneNode(); trClone.classList.add('registration') @@ -114,6 +138,10 @@ $(document).ready(function(){ tdClone.appendChild(document.createTextNode(inscriptions[i].subtotal + '€')); trClone.appendChild(tdClone); + var tdClone = td.cloneNode(); + tdClone.appendChild(document.createTextNode((inscriptions[i].subtotal * 1.1) + '€')); + trClone.appendChild(tdClone); + df.appendChild(trClone); numberOfTickets += inscriptions[i].quantity; total += inscriptions[i].subtotal; @@ -136,6 +164,10 @@ $(document).ready(function(){ tdClone.appendChild(document.createTextNode(total + '€')); trClone.appendChild(tdClone); + var tdClone = td.cloneNode(); + tdClone.appendChild(document.createTextNode((total * 1.1) + '€')); + trClone.appendChild(tdClone); + df.appendChild(trClone); table.appendChild(df); @@ -162,7 +194,7 @@ $(document).ready(function(){ } else { var price = fieldset.find('ul.tickets--type-list input[type=radio]:checked').data('price'); if (typeof price !== 'undefined') { - $(fieldset).find('legend span.fieldset--legend--price').html(price + '€'); + $(fieldset).find('legend span.fieldset--legend--price').html((price * 1.1) + '€'); } } }
avant :
après :
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Sur le tunnel de vente
avant :
après :
The text was updated successfully, but these errors were encountered: