{% extends app.request.get('project_setting').instance_theme_path~":AdminTheme:base.html.twig" %} {% block breadcrumb %}
  • {{ 'PRODUCT_LIST.PRODUCT'|trans }} /
  • {{ 'product_add_edit.view_product'|trans }}
  • {% endblock breadcrumb %} {% block main_page_title %}

    {{ data.basic_information.title }}

    {% endblock main_page_title %} {% block main_content %}
    {% if(data.basic_information.general_information is defined and data.basic_information.general_information != '') %} {% endif %} {% if(data.basic_information.video_url is defined) %} {% endif %} {% if(data.basic_information.distributor_central_url is defined) %} {% endif %} {% if(data.basic_information.valid_up_to is defined) %} {% endif %} {% if(ob_project_configuration_rule.product.add_update.pricing.pricing_type.special) %} {% endif %} {% if data.size_chart_url|length > 0 %} {% endif %}
    {% if(data.basic_information.active == '1') %} {% else %} {% endif %}
    {{ data.basic_information.sku_number }}
    {{ data.basic_information.product_source }}
    {{ data.basic_information.slug }}
    {{ (data.basic_information.description is defined) ? data.basic_information.description|raw : ''}}
    {{ (data.brand.name is defined) ? data.brand.name : ''}}
    {{ data.basic_information.video_url|raw }}
    {{ data.basic_information.distributor_central_url|raw }}
    {{ data.basic_information.valid_up_to|raw }}
    {{ data.basic_information.special_price_valid_up_to|raw }}
    {% if data.category|length > 0 %} {#
      #} {# {% for cat in data.category %}#} {# {{ cat }}#} {# {% endfor %}#} {#
    #} {{ data.category|join(' , ') }} {% endif %}
    {{ data.keyword }}
    {% if data.feature_details|length > 0 %}
    {{ 'admin_product_detail.feature_details'|trans }}
    {% for feature in data.feature_details %} {% endfor %}
    {% if feature.label is defined %} {{ feature.label }} {% endif %} {% if feature.value is defined %} {{ feature.value | raw }} {% endif %}
    {% endif %} {% if data.attributes|length > 0 %}
    {{ 'admin_product_detail.ATTRIBUTES'|trans }}
    {% for attribute in data.attributes %} {% endfor %}
    {{ (attribute.label is defined) ? attribute.label : ''}} {{ (attribute.values is defined) ? attribute.values|join(' , ') : ''}}
    {% endif %} {% if data.matrix_details|length > 0 %}
    {{ 'admin_product_detail.MATRIX_TYPE'|trans }}
    {% for key, matrix_details in data.matrix_details %} {% endfor %}
    {{ (matrix_details.name is defined) ? matrix_details.name : ''}}
    {% if matrix_details.values|length > 0 %} {% for matrix_value in matrix_details.values %} {% endfor %} {% else %} {% endif %}
    {{ matrix_value.from_qty }} {{ matrix_value.to_qty }} {{ matrix_value.rate }} {{ matrix_value.code }}
    {{ (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 %} {% endfor %}
    {{ price.from }} {{ price.to }} {{ price.rate }} {{ price.code }}
    {% endfor %} {% endif %} {% if data.price_type == 'piece_wise' %} {% for priceType,prices in data.pricing %} {% for index,price in prices %} {% endfor %}
    {{ price.from }} {{ price.rate }} {{ price.code }}
    {% 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 %} {% if priceValue.rate_orig is defined or priceValue.code_orig is defined %} {% else %} {% endif %} {% endfor %} {% endfor %}
    {{ priceValue.from_qty }} {{ priceValue.to_qty }} {{ priceValue.rate }}Net {{ priceValue.code }}
    {% endfor %} {% endif %} {% endif %} {# variation_price#} {% if data.price_type == 'call_for_price' %} {% for priceType,prices in data.pricing %} {% for index,price in prices %} {% endfor %}
    {{ price.from }}
    {% endfor %} {% endif %}
    {% endif %} {% include('OfficeBrainProductBundle:ProductAdmin:viewGlobalPricing.html.twig') %} {% if data.imprint_information.imprint_method_information|length > 0 %}
    {{ 'admin_product_detail.IMPRINT_INFORMATION'|trans }}
    {% 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 %} {% if data.imprint_position_and_methods is defined %} {% endif %} {% if imprint_method_information.full_color is defined and imprint_method_information.full_color %} {% elseif imprint_method_information.color_included_in_price is defined or imprint_method_information.maximum_selectable_color is defined%} {% endif %} {% if imprint_method_information.location_included_in_price is defined %} {% endif %} {% if imprint_method_information.maximum_selectable_location is defined %} {% endif %} {% if imprint_method_information.imprint_color is defined %} {% endif %}
    {{ 'admin_product_detail.IMPRINT_METHOD'|trans }} {{ imprint_method_information.name }}
    {{ 'admin_product_detail.IMPRINT_POSITION'|trans }} {% 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 %}
    {{ 'admin_product_detail.production_time'|trans }} {% 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 %}
    {{ 'admin_product_detail.full_color'|trans }} Yes
    {{ 'admin_product_detail.color_included_in_price'|trans }} {{ imprint_method_information.color_included_in_price }}
    {{ 'admin_product_detail.maximum_color'|trans }} {{ imprint_method_information.maximum_selectable_color }}
    {{ 'admin_product_detail.location_included_in_price'|trans }} {{ imprint_method_information.location_included_in_price }}
    {{ 'admin_product_detail.maximum_selectable_location'|trans }} {{ imprint_method_information.maximum_selectable_location }}
    {{ 'admin_product_detail.imprint_color'|trans }} {{ imprint_method_information.imprint_color }}
    {% if imprint_method_information.price.pricing.decorative is defined and API_VERSION.view_product_admin == 'v2' %}
    {{ 'admin_product_detail.pricing'|trans }}
    {% for prices in imprint_method_information.price.pricing.decorative %} {% endfor %}
    {{ prices.from }} {% if prices.to != "" %}{{ prices.to }}{% else %}-{% endif %} {{ prices.rate }} {{ prices.code }}
    {% endif %}
    {% if imprint_method_information.imprint_matrix is defined and imprint_method_information.imprint_matrix | length > 0 %} {% endif %}
    {{ (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_values.color }}
    {% for matrix_value in matrix_values.values %} {% endfor %} {% for matrix_value in matrix_values.values %} {% endfor %}
    {{ matrix_value.from_qty }} {% if matrix_value.to_qty %} - {{ matrix_value.to_qty }} {% endif %}
    {{ matrix_value.rate }}{% if matrix_value.code %}({{ matrix_value.code }}){% endif %}
    {% endfor %} {% endif %}
    {% for charge_code,charges in imprint_method_information.charges %}
    {{ charges.label }}
    {% if charges.charge is iterable %} {% for charg in charges.charge %} {% endfor %} {% else %} {% endif %}
    {{ charg.from }} {{ charg.to }} {{ charg.rate }} {{ charg.code }}
    - - {{ charges.charge }} {{ charges.code }}
    {% endfor %}
    {% endfor %}
    {% endif %} {% if data.packaging_type_charges|length > 0 %}
    {{ 'admin_product_detail.packaging_type'|trans }}
    {% for packaging_charges in data.packaging_type_charges %} {% endfor %}
    {{ (packaging_charges.packaging_type is defined) ? packaging_charges.packaging_type : ''}} {{ (packaging_charges.price is defined) ? packaging_charges.price : ''}}({{ (packaging_charges.code is defined) ? packaging_charges.code : ''}})
    {% endif %} {% if data.shipping_information is defined %} {% set shipping = data.shipping_information %}
    {{ 'admin_product_detail.SHIPPING_IMFORMATION'|trans }}
    {% if shipping.quantity_in_carton is defined %} {% endif %}
    {{ 'admin_product_detail.FREE_ON_BOARD'|trans }} {{ shipping.free_on_board }}{{ (shipping.city is defined) ? ' '~shipping.city : '' }}
    {{ 'admin_product_detail.QUANTITY_IN_CARTON'|trans }} {{ shipping.quantity_in_carton }}
    {% if shipping.carton.width.param is defined %} {% endif %} {% if shipping.carton.height.param is defined %} {% endif %} {% if shipping.carton.length.param is defined %} {% endif %} {% if shipping.carton.weight.param is defined %} {% endif %}
    {{ 'admin_product_detail.WIDTH'|trans }} {{ shipping.carton.width.param }} {{ shipping.carton.width.unit }}
    {{ 'admin_product_detail.HEIGHT'|trans }} {{ shipping.carton.height.param }} {{ shipping.carton.height.unit }}
    {{ 'admin_product_detail.LENGTH'|trans }} {{ shipping.carton.length.param }} {{ shipping.carton.length.unit }}
    {{ 'admin_product_detail.WEIGHT'|trans }} {{ shipping.carton.weight.param }} {{ shipping.carton.weight.unit }}
    {% if shipping.product.width.param is defined %} {% endif %} {% if shipping.product.height.param is defined %} {% endif %} {% if shipping.product.length.param is defined %} {% endif %} {% if shipping.product.weight.param is defined %} {% endif %}
    {{ 'admin_product_detail.WIDTH'|trans }} {{ shipping.product.width.param }} {{ shipping.product.width.unit }}
    {{ 'admin_product_detail.HEIGHT'|trans }} {{ shipping.product.height.param }} {{ shipping.product.height.unit }}
    {{ 'admin_product_detail.LENGTH'|trans }} {{ shipping.product.length.param }} {{ shipping.product.length.unit }}
    {{ 'admin_product_detail.WEIGHT'|trans }} {{ shipping.product.weight.param }} {{ shipping.product.weight.unit }}
    {% endif %}
    {% endblock main_content %}