{% from 'utils.html.twig' import ico, btnAddCart %}
{# JÁ NO CARRINHO #}
{% if isInCart and not infoOffer.userHasProduct and productOffer.getSaleIsOpen() %}
<a class="btn-go-cart" href="{{ path('cart') }}">
{{ getLanguage('go_cart', 'product') }} {{ ico('external-link') }}
</a>
{% else %}
{# ADICIONAR AO CARRINHO #}
{% if
not infoOffer.isFree and
not infoOffer.saleChannelOption and
infoOffer.allowBuyNow and
not infoOffer.userHasProduct and
emptyProductSuggestion
%}
<button class="btn-add btnAddCart"
data-offer-id="{{ productOffer.id }}"
data-offer-name="{{ productOffer.product.title }}"
data-offer-currency="{{ productOffer.currencyCode }}"
data-offer-value="{{ productOffer.getPriceRealCopy() }}"
data-offer-link="{{ path('cart') }}"
data-offer-link-class="btn-go-cart"
data-offer-link-text="{{ getLanguage('go_cart', 'product') }}"
requestLink="{{
path('cartAdd', {
poID: productOffer.id,
pcID: (productCoupon ? productCoupon.id : 0),
isAjaxRequest: 1
})
}}?{{ utmsUrl }}">
<div class="btn--cart">
<span>{{ getLanguage('add_to_cart', 'product') }}</span>
<span>{{ getLanguage('adding', 'product') }} …</span>
</div>
<i class="loader">{{ ico('loader-wish') }}</i>
</button>
{% endif %}
{# COMPRAR AGORA #}
{{
btnAddCart(
getLanguage(infoOffer.text, 'product'),
productOffer,
infoOffer,
'btn-buy',
'',
productCoupon,
false,
utmsUrl
)
}}
{% endif %}
{# <p>deu</p> #}
{# @!!! #}