Last updated: Jul 20, 2018

getButton

Get a specific PayPal button to handle it in your templates.

{% set button = craft.paypalButton.getButton('backup') %}


{# GETTING VARIANTS #}
{% set pricedOptionsBlock = button.enupalPaypalPricedVariants.first() %}

{% for row in pricedOptionsBlock.options %}
    {% if loop.first %}
        <h2>{{ pricedOptionsBlock.variantName|t }}:</h2> 
    {% endif %}
    Handle: {{ row.handle }}
    <br>	
    Label: {{ row.optionLabel|t }}
    
    <br>
    Price: {{row.price}}
    <br>
    ----------------------------
    <br>
{% endfor %}