{% endif %}
{% if proddata.pricing is defined and API_VERSION.view_product_admin == 'v1' %}
{% if proddata.price_unit is defined %}
{{ 'admin_product_detail.PRICE_UNIT'|trans }}
{{ proddata.price_unit }}
{% endif %}
{% if proddata.price_type == 'regular' %}
{% for priceType,prices in proddata.pricing %}
{% for index,price in prices %}
{{ price.from }}
{{ price.to }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% if proddata.price_type == 'piece_wise' %}
{% for priceType,prices in proddata.pricing %}
{% for index,price in prices %}
{{ price.from }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% if proddata.price_type == 'variations' %}
{% if proddata.variation_pricing is defined and proddata.variation_pricing != '' %}
{% for pricing in proddata.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 %}
{% endif %}
{% endif %}
{# variation_price#}
{% if proddata.price_type == 'call_for_price' %}
{% for priceType,prices in proddata.pricing %}
{% for index,price in prices %}
{{ price.from }}
{% endfor %}
{% endfor %}
{% endif %}
{% if distdata.pricing is defined and API_VERSION.view_product_admin == 'v1' %}
{% if distdata.price_unit is defined %}
{{ 'admin_product_detail.PRICE_UNIT'|trans }}
{{ distdata.price_unit }}
{% endif %}
{% if distdata.price_type == 'regular' %}
{% for priceType,prices in distdata.pricing %}
{% for index,price in prices %}
{{ price.from }}
{{ price.to }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% if distdata.price_type == 'piece_wise' %}
{% for priceType,prices in distdata.pricing %}
{% for index,price in prices %}
{{ price.from }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% if distdata.price_type == 'variations' %}
{% if distdata.variation_pricing is defined and distdata.variation_pricing != '' %}
{% for pricing in proddata.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 %}
{% endif %}
{% endif %}
{# variation_price#}
{% if distdata.price_type == 'call_for_price' %}
{% for priceType,prices in distdata.pricing %}
{% endif %}
{# below code for new split decorative and balnk pricing code #}
{# {% if proddata.new_pricing is defined and API_VERSION.view_product_admin == 'v1' %}
{% for pricingType,priceData in proddata.new_pricing %}
{{ pricingType }}
{% if priceData.price_unit is defined and priceData.price_unit != '' %}
{{ 'admin_product_detail.PRICE_UNIT'|trans }}
{{ priceData.price_unit }}
{% endif %}
{% if priceData.price_type == 'regular' %}
{% for index,price in priceData.pricing %}
{{ price.from }}
{{ price.to }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endif %}
{% if priceData.price_type == 'piece_wise' %}
{% for price in priceData.pricing %}
{{ price.from }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endif %}
{% if priceData.price_type == 'call_for_price' %}
{% for index,price in priceData.pricing %}
{{ price.from }}
{% endfor %}
{% endif %}
{% if priceData.price_type == 'variations' %}
{% if priceData.variation_pricing is defined and priceData.variation_pricing != '' %}
{% for pricing in priceData.variation_pricing %}
{% for priceIndex,priceValue in pricing.pricing %}
{{ priceValue.from_qty }}
{{ priceValue.to_qty }}
{{ priceValue.rate }}
{{ priceValue.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% if distdata.new_pricing is defined and API_VERSION.view_product_admin == 'v1' %}
{% for pricingType,priceData in distdata.new_pricing %}
{{ pricingType }}
{% if priceData.price_unit is defined and priceData.price_unit != '' %}
{{ 'admin_product_detail.PRICE_UNIT'|trans }}
{{ priceData.price_unit }}
{% endif %}
{% if priceData.price_type == 'regular' %}
{% for index,price in priceData.pricing %}
{{ price.from }}
{{ price.to }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endif %}
{% if priceData.price_type == 'piece_wise' %}
{% for price in priceData.pricing %}
{{ price.from }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endif %}
{% if priceData.price_type == 'call_for_price' %}
{% for index,price in priceData.pricing %}
{{ price.from }}
{% endfor %}
{% endif %}
{% if priceData.price_type == 'variations' %}
{% if priceData.variation_pricing is defined and priceData.variation_pricing != '' %}
{% for pricing in priceData.variation_pricing %}
{% for priceIndex,priceValue in pricing.pricing %}
{% endif %} #}
{% if proddata.imprint_information.imprint_method_information is defined and proddata.imprint_information.imprint_method_information|length > 0 %}
{% if proddata.imprint_information.standard_imprint_color_information is defined and proddata.imprint_information.standard_imprint_color_information%}
{{ 'admin_product_detail.IMPRINT_COLOR'|trans }}
{% for information_key,standard_imprint_information in proddata.imprint_information.standard_imprint_color_information %}
{{ standard_imprint_information }}
{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
{% for information_key,imprint_method_information in proddata.imprint_information.imprint_method_information %}
{{ 'admin_product_detail.IMPRINT_METHOD'|trans }}
{{ imprint_method_information.name }}
{% if proddata.imprint_position_and_methods is defined %}
{% for pos_index, pos_value in proddata.imprint_position_and_methods %}
{% if information_key in pos_value.imprint_method|keys %}
{{ pos_value.position_area }}
{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
{% if imprint_method_information.production_days is defined and imprint_method_information.production_unit is defined %}{{ imprint_method_information.production_days }}   {{ imprint_method_information.production_unit }} {% endif %}
{% if imprint_method_information.full_color is defined and imprint_method_information.full_color %}
{{ 'admin_product_detail.full_color'|trans }}
Yes
{% elseif imprint_method_information.color_included_in_price is defined or imprint_method_information.maximum_selectable_color is defined%}
{% if imprint_method_information.imprint_matrix is defined and imprint_method_information.imprint_matrix | length > 0 %}
{{ (imprint_method_information.imprint_matrix.name is defined) ? imprint_method_information.imprint_matrix.name : ''}}
{% if imprint_method_information.imprint_matrix.values is defined and imprint_method_information.imprint_matrix.values|length > 0 %}
{% for matrix_values in imprint_method_information.imprint_matrix.values %}
{{ matrix_value.rate }}{% if matrix_value.code %}({{ matrix_value.code }}){% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% for charge_code,charges in imprint_method_information.charges %}
{{ charges.label }}
{% if charges.charge is iterable %}
{% for charg in charges.charge %}
{{ charg.from }}
{{ charg.to }}
{{ charg.rate }}
{{ charg.code }}
{% endfor %}
{% else %}
-
-
{{ charges.charge }}
{{ charges.code }}
{% endif %}
{% endfor %}
{% endfor %}
{% if distdata.imprint_information.imprint_method_informati is defined and distdata.imprint_information.imprint_method_information|length > 0 %}
{% if distdata.imprint_information.standard_imprint_color_information is defined and distdata.imprint_information.standard_imprint_color_information%}
{{ 'admin_product_detail.IMPRINT_COLOR'|trans }}
{% for information_key,standard_imprint_information in distdata.imprint_information.standard_imprint_color_information %}
{{ standard_imprint_information }}
{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
{% for information_key,imprint_method_information in distdata.imprint_information.imprint_method_information %}
{{ 'admin_product_detail.IMPRINT_METHOD'|trans }}
{{ imprint_method_information.name }}
{% if distdata.imprint_position_and_methods is defined %}
{% for pos_index, pos_value in proddata.imprint_position_and_methods %}
{% if information_key in pos_value.imprint_method|keys %}
{{ pos_value.position_area }}
{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
{% if imprint_method_information.production_days is defined and imprint_method_information.production_unit is defined %}{{ imprint_method_information.production_days }}   {{ imprint_method_information.production_unit }} {% endif %}
{% if imprint_method_information.full_color is defined and imprint_method_information.full_color %}
{{ 'admin_product_detail.full_color'|trans }}
Yes
{% elseif imprint_method_information.color_included_in_price is defined or imprint_method_information.maximum_selectable_color is defined%}
{% if imprint_method_information.imprint_matrix is defined and imprint_method_information.imprint_matrix | length > 0 %}
{{ (imprint_method_information.imprint_matrix.name is defined) ? imprint_method_information.imprint_matrix.name : ''}}
{% if imprint_method_information.imprint_matrix.values is defined and imprint_method_information.imprint_matrix.values|length > 0 %}
{% for matrix_values in imprint_method_information.imprint_matrix.values %}
{% endif %}
{% if proddata.shipping_information is defined and API_VERSION.view_product_admin == 'v1' %}
{% set shipping = proddata.shipping_information %}