{% if data.global_pricing is defined and API_VERSION.view_product_admin == 'v1' %} {% for glb_pricing_key, glb_pricing in data.global_pricing %} {% if global_pricing_arr[glb_pricing_key] is defined %} {#% if glb_pricing.price_type is defined and (glb_pricing.price_type == 'regular' or glb_pricing.price_type == 'piece_wise' or glb_pricing.price_type == 'call_for_price' or (glb_pricing.price_type == 'variations' and glb_pricing.variation_pricing is defined and glb_pricing.variation_pricing != '' ) ) %#}
{{ data.price_type_label ~ ' (' ~ glb_pricing_key ~ ')' }}
{% if glb_pricing.price_unit is defined %}
{{ 'admin_product_detail.PRICE_UNIT'|trans }} {{ glb_pricing.price_unit }}
{% endif %} {% if glb_pricing.price_type is defined and glb_pricing.price_type == 'regular' %} {% for priceType,prices in glb_pricing.pricing %} {% for index,price in prices %} {% endfor %}
{{ price.from }} {{ price.to }} {{ price.rate }} {{ price.code }}
{% endfor %} {% endif %} {% if glb_pricing.price_type is defined and glb_pricing.price_type == 'piece_wise' %} {% for priceType,prices in glb_pricing.pricing %} {% for index,price in prices %} {% endfor %}
{{ price.from }} {{ price.rate }} {{ price.code }}
{% endfor %} {% endif %} {% if data.price_type == 'variations' %} {% if glb_pricing.variation_pricing is defined and glb_pricing.variation_pricing != '' %} {% for pricing in glb_pricing.variation_pricing %}
{% for priceType,price in pricing.pricing %} {% for priceIndex,priceValue in price %} {% endfor %} {% endfor %}
{{ priceValue.from_qty }} {{ priceValue.to_qty }} {{ priceValue.rate }} {{ priceValue.code }}
{% endfor %} {% else %} {{ 'No data found' }} {% endif %} {% endif %} {# variation_price#} {% if glb_pricing.price_type is defined and glb_pricing.price_type == 'call_for_price' %} {% for priceType,prices in glb_pricing.pricing %} {% for index,price in prices %} {% endfor %}
{{ price.from }}
{% endfor %} {% endif %}
{% endif %} {% endfor %} {% endif %}