You are on page 1of 1

<script>

{% if order.gateway contains 'Multibanco' %}


{% for transaction in transactions %}
{% if transaction.gateway == "Multibanco"%}
{% assign mb_amount = transaction.amount %}
{% endif %}
{% endfor %}
{% if order_number == '' %}
Shopify.Checkout.OrderStatus.addContentBox('<h2>Pagamento por
multibanco</h2>','<div style="text-align:center"><img
src="https://eupago.pt/externo/pixel/pixel_v7.php?valor={{ mb_amount |
money_without_currency }}&amp;id={{ order_id }}&amp;currency={{ shop.currency }}&am
p;chave=xxxx-xxxx-xxxx-xxxx-
xxxx&amp;email={{ order.customer.email }}&amp;per_dup=0&amp;no_repeat=1"
height="150" width="350" align="center" /></div>')
{% else %}
Shopify.Checkout.OrderStatus.addContentBox('<h2>Pagamento por
multibanco</h2>','<div style="text-align:center"><img
src="https://eupago.pt/externo/pixel/pixel_v7.php?valor={{ mb_amount |
money_without_currency }}&amp;id={{ order_number }}&amp;currency={{ shop.currency }
}&amp;chave=xxxx-xxxx-xxxx-xxxx-
xxxx&amp;email={{ order.customer.email }}&amp;per_dup=0&amp;no_repeat=1"
height="150" width="350" align="center" /></div>')
{% endif %}
{% endif %}
</script>

You might also like