{% 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 != '' ) ) %#}
{% 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 %}
{{ price.from }}
{{ price.to }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% 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 %}
{{ price.from }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% 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 %}
{{ priceValue.from_qty }}
{{ priceValue.to_qty }}
{{ priceValue.rate }}
{{ priceValue.code }}
{% endfor %}
{% endfor %}
{% 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 %}