{% set itemPrice = item.price|number_format(2) %} {% set currencyCode = item.currency_code ?? 'USD' %} {% if item.isPremium() %} {% set isPurchased = item.isPurchasedBy(customer.customer_id ?? 0) %}
{% if isPurchased %} {{lang.translate('You have access to this content')}} {% else %} {{lang.translate('Purchase required to access this content')}} {% endif %}