{% if feature.label is defined %} {{ feature.label }} {% endif %}
{% if feature.value is defined %} {{ feature.value | raw }} {% endif %}
{% endfor %}
{% endif %}
{% if data.attributes|length > 0 %}
{{ 'admin_product_detail.ATTRIBUTES'|trans }}
{% for attribute in data.attributes %}
{{ (attribute.label is defined) ? attribute.label : ''}}
{{ (attribute.values is defined) ? attribute.values|join(' , ') : ''}}
{% endfor %}
{% endif %}
{% if data.matrix_details|length > 0 %}
{{ 'admin_product_detail.MATRIX_TYPE'|trans }}
{% for key, matrix_details in data.matrix_details %}
{{ (matrix_details.name is defined) ? matrix_details.name : ''}}
{% if matrix_details.values|length > 0 %}
{% for matrix_value in matrix_details.values %}
{{ matrix_value.from_qty }}
{{ matrix_value.to_qty }}
{{ matrix_value.rate }}
{{ matrix_value.code }}
{% endfor %}
{% else %}
{% endif %}
{% endfor %}
{{ (data.matrix_vat_details.vat is defined) ? data.matrix_vat_details.vat : ''}}
{{ (data.matrix_vat_details.vat_unit is defined) ? data.matrix_vat_details.vat_unit : ''}}
{% endif %}
{% if data.sample_product is defined %}
{{ 'admin_product_detail.sample_product'|trans }}
{{ (data.sample_product.price is defined) ? data.sample_product.price : ''}}
{{ (data.sample_product.max_quantity is defined) ? data.sample_product.max_quantity : ''}}
{% endif %}
{% if data.images|length > 1 %}
{{ 'admin_product_detail.OTHER_IMAGES'|trans }}
{% for image in data.images %}
{% if image.is_default != 1 %}
{% endif %}
{% endfor %}
{% endif %}
{% if data.pricing is defined and API_VERSION.view_product_admin == 'v1' %}
{{ data.price_type_label }}
{% if data.price_unit is defined %}
{{ 'admin_product_detail.PRICE_UNIT'|trans }}
{{ data.price_unit }}
{% endif %}
{% if data.price_type == 'regular' %}
{% for priceType,prices in data.pricing %}
{% for index,price in prices %}
{{ price.from }}
{{ price.to }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% if data.price_type == 'piece_wise' %}
{% for priceType,prices in data.pricing %}
{% for index,price in prices %}
{{ price.from }}
{{ price.rate }}
{{ price.code }}
{% endfor %}
{% endfor %}
{% endif %}
{% if data.price_type == 'variations' %}
{% if data.variation_pricing is defined and data.variation_pricing != '' %}
{% for pricing in data.variation_pricing %}
{% for priceType,price in pricing.pricing %}
{% for priceIndex,priceValue in price %}
{{ priceValue.from_qty }}
{{ priceValue.to_qty }}
{{ priceValue.rate }}
{% if priceValue.rate_orig is defined or priceValue.code_orig is defined %}
Net
{% else %}
{{ priceValue.code }}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{# variation_price#}
{% if data.price_type == 'call_for_price' %}
{% for priceType,prices in data.pricing %}
{% if(data.imprint_information.imprint_image is defined and data.imprint_information.imprint_image) %} {% endif %}
{% if data.imprint_information.standard_imprint_color_information is defined and data.imprint_information.standard_imprint_color_information%}
{{ 'admin_product_detail.IMPRINT_COLOR'|trans }}
{% for information_key,standard_imprint_information in data.imprint_information.standard_imprint_color_information %}
{{ standard_imprint_information }}
{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
{% for information_key,imprint_method_information in data.imprint_information.imprint_method_information %}
{{ 'admin_product_detail.IMPRINT_METHOD'|trans }}
{{ imprint_method_information.name }}
{% if data.imprint_position_and_methods is defined %}
{% for pos_index, pos_value in data.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 %}