Skip to content

Santander installments calculator

Availability:

  • Product page
  • Bundle page


The santander_installments_calculator module is used to render a link button for Santander installments calculator on a product or bundle card.

Module source code

{% set productGrossValue = 0 %}

{% set settings = ObjectApi.getInstallmentSantanderSettings() %}

{% set payment_zagiel_shop_id = settings.shopId %}
{% set payment_zagiel_shop_variation = settings.shopVariation %}


{% if product_id %}
    {% set product = ObjectApi.getProduct(product_id) %}
    {% set productGrossValue = product.price.grossValue %}
{% endif %}

{% if productGrossValue > 0 and payment_zagiel_shop_id and payment_zagiel_shop_variation %}
<a href="https://wniosek.eraty.pl/symulator/oblicz/numerSklepu/{{payment_zagiel_shop_id}}/wariantSklepu/{{payment_zagiel_shop_variation}}/typProduktu/0/wartoscTowarow/{{productGrossValue}}" 
    data-sum-href="https://wniosek.eraty.pl/symulator/oblicz/numerSklepu/{{payment_zagiel_shop_id}}/wariantSklepu/{{payment_zagiel_shop_variation}}/typProduktu/0/wartoscTowarow/{{productGrossValue}}" 
    target="_blank" rel="noopener" class="d-block">
    <img
        class="mr-xs-1"
        src="https://dcsaascdn.net/storefront/img/payments/santander_installments_calculator_button.svg"
        alt="{{ translate('Open Santander installments calculator') }}"
    />
</a>
{% endif %}

Module configuration schema

[]

ObjectApi methods reference