{% extends 'OfficeBrainCustomBundleThemeBundle:'~ app.request.get('project_setting').instance_theme ~':themeModalBase.html.twig' %} {% block modal_extra_class %}print-product{% endblock modal_extra_class %} {% block modal_header_icon %}{% endblock modal_header_icon %} {% block modal_header_title %}{{ 'print_preview'| trans({},"app") }}{% endblock modal_header_title %} {% block modal_body %} {#% block header %#}
{#% endblock header %#}

{{ product_title|raw }}

{# {% if ob_project_access_rule.search.option.search_filter.option.filter_rating.status == 1 %}#} {% if feed_back_list.average_rating is defined and feed_back_list.average_rating > 0 %}
{#
#} {# {{ rating|rating|raw }}#} {#
#} {# {% set average_rating = (feed_back_list.average_rating is defined)? feed_back_list.average_rating : '' %}#} {# {% set total_record = (feed_back_list.total_record is defined)? feed_back_list.total_record : '' %}#} {# {% set review_list %}#} {# {% if feed_back_list.average_rating is defined and feed_back_list.average_rating > 0 %}#} {# {% for review in feed_back_list.record_set %}#} {#
#} {#
#} {# {{ review.user_first_name }} {{ review.user_last_name }}#} {# {{ review.created_at?(review.created_at|dateCreate):'-' }}#} {#
#} {#
#} {#
#} {#
#} {# {{ review.ratings|rating|raw }}#} {#
#} {#
#} {#
#} {#

{{ review.comment }}

#} {#
#} {# {% endfor %}#} {# {% endif %}#} {# {% endset %}#}
{% if feed_back_list.average_rating is defined and feed_back_list.average_rating > 0 %}
{% if ob_project_configuration_rule.search.product_detail.review_rating.option.display_rating.status == 1 %} {{ feed_back_list.average_rating }} {% endif %}
{% if feed_back_list.average_rating is defined and ob_project_configuration_rule.search.product_detail.review_rating.option.display_rating.status == 1 %} {{ feed_back_list.average_rating|rating|raw }} {% endif %}
{% if feed_back_list.total_record is defined and ob_project_configuration_rule.search.product_detail.review_rating.option.display_rating.status == 1 %}{{ feed_back_list.total_record }} {% endif %} {{ 'total'|trans({},'app') }}
{% if ob_project_configuration_rule.search.product_detail.review_rating.option.display_review.status == 1 %} {% for review in feed_back_list.record_set %}
{{ review.user_first_name }} {{ review.user_last_name }} {{ review.created_at?(review.created_at|dateCreate):'-' }}
{{ review.ratings|rating|raw }}

{{ review.comment }}

{% endfor %} {% endif %}
{% endif %}
{% endif %} {# {% endif %}#}
{% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/colorPanel.html.twig' with {'print_product':true} %}
{#
{{ 'products_detail.less_order_quantity_note'|trans }}
#} {% if ob_project_search_configuration_rule.search_page.quick_view.option.product_column_qty_price.status == 1 %} {% set price_type_from_api = 'decorative' %} {% if decorative_pricing is defined and decorative_pricing and decorative_pricing == 1 %} {% set price_type_from_api = 'decorative' %} {% elseif blank_pricing is defined and blank_pricing and blank_pricing == 1 %} {% set price_type_from_api = 'blank' %} {% endif %} {# decide the final pricing started #} {% if price_type is defined and price_type == 'variations' %} {% set final_pricing = variation_pricing_for_other_country %} {% else %} {% set final_pricing = pricing_for_other_country %} {% endif %} {% set custom_locale = (app.request.cookies.get('CUSTOM_SITE_CULTURE') is defined and app.request.cookies.get('CUSTOM_SITE_CULTURE') != "")?app.request.cookies.get('CUSTOM_SITE_CULTURE'):app.request.getLocale() %} {# decide the final pricing ended #} {% set countryPrice = custom_locale|split("_") %} {% set bothCountryTrue = false %} {# TODO: if set to true then price for both country will be shown on print page #} {% if bothCountryTrue == false %} {% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/quantityWisePricePanel.html.twig' with {'show_heading':true , 'price_array_type':price_type_from_api, 'price_type' : price_type ,'price_array':final_pricing[countryPrice[1]], 'show_print_price_table':true , 'culture': custom_locale } %} {% else %} {% if final_pricing['us'] is defined %} {% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/quantityWisePricePanel.html.twig' with {'show_heading':true , 'price_array_type':price_type_from_api, 'price_type' : price_type ,'price_array':final_pricing['us'], 'show_print_price_table':true , 'culture': 'en_us' } %} {% endif %} {% if final_pricing['ca'] is defined %} {% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/quantityWisePricePanel.html.twig' with {'show_heading':true , 'price_array_type':price_type_from_api, 'price_type' : price_type ,'price_array':final_pricing['ca'], 'show_print_price_table':true , 'culture': 'en_ca' } %} {% endif %} {% endif %} {% endif %} {#}

{{ 'products_detail.purchase_order_print_note'|trans }}

#}
{% if basic_information.special_price_valid_up_to is defined and basic_information.special_price_valid_up_to != '' and basic_information.special_price_valid_up_to != null %} {% if manualSpecialPricingNotExpired %}
{{ 'special_pricing_expires'|trans({},'goldstar') }}: {{basic_information.special_price_valid_up_to|replace({ ('-'): '/' })}}
{% endif %} {% endif %}
{% if imprint_methods is defined and imprint_methods is not empty %}
{% for methods in imprint_methods %} {% if loop.first %} {{ methods }} {% else %} , {{ methods }} {% endif %} {% endfor %}
{% endif %} {% if imprint_information.standard_imprint_color_information is defined and imprint_information.standard_imprint_color_information is not empty %}
{% set sici = '-' %} {% if imprint_information.standard_imprint_color_information is defined and imprint_information.standard_imprint_color_information !="" %} {% for colors in imprint_information.standard_imprint_color_information %} {% if loop.first %} {{ colors }} {% else %} , {{ colors }} {% endif %} {% endfor %} {% set sici = '' %} {% endif %} {{ sici }}
{% endif %} {% set imprint_area_flag = false %} {% set imprint_area = '-' %} {% set imprint_size = '-' %} {% for key,val in feature_details %} {% if val.label == 'Imprint Area' %} {% set temp_data = val.value|split('-', 2) %} {% set imprint_area = temp_data[0] %} {% set imprint_size = (temp_data[1] is defined and temp_data[1]!='undefined')?temp_data[1]:'-' %} {% endif %} {% endfor %} {% if imprint_size is defined and imprint_size !='' %}
{{ imprint_size }}
{% endif %} {% if imprint_area is defined and imprint_area !='' %}
{{ imprint_area }}
{% endif %}
{% set alc = '-' %} {% if imprint_information.imprint_method_information !="" %} {% for key,val in imprint_information.imprint_method_information if val != "" %} {% if val.charges != "" and val.charges['ADDITIONAL_LOCATION_CHARGE'] is defined %} {# {{ ob_project_currency_code }}#} {% for key1,val1 in imprint_methods if key1 == key %} {% if loop.first %} {# {{ (val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'] is defined)?val.charges['ADDITIONAL_LOCATION_CHARGE']['charge']:"" ~' '~(val.charges['ADDITIONAL_LOCATION_CHARGE']['code'] is defined)?val.charges['ADDITIONAL_LOCATION_CHARGE']['code']:"" }}#} {% if val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'] is defined %} {% if (val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'] is iterable) %} {% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/imprintAdditionalQtyWisePricePanel.html.twig' with {'show_heading':true , 'price_type' : price_type ,'price_array':val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'], 'show_print_price_table':false,'show_table':false } %} {% else %} {{ ob_project_currency_code }} {{ (val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'] is defined)?val.charges['ADDITIONAL_LOCATION_CHARGE']['charge']:"" }} {% endif %} {% endif %} {% else %} , {{ val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'] ~' '~val.charges['ADDITIONAL_LOCATION_CHARGE']['code'] }} {% endif %} {% endfor %} {% set alc = '' %} {% endif %} {% endfor %} {% endif %} {{ alc }}
{% set acc = '-' %} {% if imprint_information.imprint_method_information !="" %} {% for key,val in imprint_information.imprint_method_information if val != "" %} {% if val.charges != "" and val.charges['ADDITIONAL_COLOR_CHARGE'] is defined %} {% for key1,val1 in imprint_methods if key1 == key %} {% if loop.first %} {# {{ (val.charges['ADDITIONAL_COLOR_CHARGE']['charge'] is defined)?val.charges['ADDITIONAL_COLOR_CHARGE']['charge']:"" ~' '~(val.charges['ADDITIONAL_COLOR_CHARGE']['code'] is defined)?val.charges['ADDITIONAL_COLOR_CHARGE']['code']:"" }}#} {% if val.charges['ADDITIONAL_COLOR_CHARGE']['charge'] is defined %} {% if (val.charges['ADDITIONAL_COLOR_CHARGE']['charge'] is iterable) %} {% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/imprintAdditionalQtyWisePricePanel.html.twig' with {'show_heading':true , 'price_type' : price_type ,'price_array':val.charges['ADDITIONAL_COLOR_CHARGE']['charge'], 'show_print_price_table':false,'show_table':false } %} {% else %} {{ ob_project_currency_code }} {{ (val.charges['ADDITIONAL_COLOR_CHARGE']['charge'] is defined)?val.charges['ADDITIONAL_COLOR_CHARGE']['charge']:"" }} {% endif %} {% endif %} {% else %} , {{ val.charges['ADDITIONAL_COLOR_CHARGE']['charge'] ~' '~val.charges['ADDITIONAL_COLOR_CHARGE']['code'] }} {% endif %} {% endfor %} {% set acc = '' %} {% endif %} {% endfor %} {% endif %} {{ acc }}
{% for key,val in imprint_information.imprint_method_information %} {% for key1,val1 in imprint_methods if key1 == key %} {% if val.full_color != "" %} {# {% set full_color_val = val.full_color %}#} {% set full_color_val = "YES" %} {% else %} {% set full_color_val = "NO" %} {% endif %} {% if loop.first %} {% if full_color_val == "YES" %} {{ full_color_val }} ({{ '1-5 spot colors or full color process. PMS color match at no charge' }}) {% else %} {{ full_color_val }} {% endif %} {% else %} , {{ full_color_val }} {% endif %} {% endfor %} {% endfor %}
{% if imprint_information.imprint_method_information !="" %} {% for key,val in imprint_information.imprint_method_information if val != "" %} {% if val.charges != "" and val.charges['SETUP_CHARGE'] is defined %} {% for key1,val1 in imprint_methods if key1 == key %} {% if loop.first %} {% if val.charges['SETUP_CHARGE']['charge'] is defined %} {% if (val.charges['SETUP_CHARGE']['charge'] is iterable) %} {% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/imprintAdditionalQtyWisePricePanel.html.twig' with {'show_heading':true , 'price_type' : price_type ,'price_array':val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'], 'show_print_price_table':false,'show_table':false } %} {% else %} {{ ob_project_currency_code }} {{ (val.charges['SETUP_CHARGE']['charge'] is defined)?val.charges['SETUP_CHARGE']['charge']:"" }} {% endif %} {% endif %} {% else %} , {{ val.charges['SETUP_CHARGE']['charge'] ~' '~val.charges['SETUP_CHARGE']['code'] }} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}
{% for key,val in feature_details %} {% if val.label =='Repeat setup charge' and val.value !='' %}
{{ val.value }}
{% endif %} {% endfor %}

{% for key,val in imprint_information.imprint_method_information %} {% for key1,val1 in imprint_methods if key1 == key %} {% if loop.first %} {{ val.production_days ~' '~val.production_unit }} {% else %} , {{ val.production_days ~' '~val.production_unit }} {% endif %} {% endfor %} {% endfor %}
{% if shipping_information.free_on_board is defined and shipping_information.free_on_board !=""%}
{{ shipping_information.free_on_board }}
{% endif %} {% if shipping_information.quantity_in_carton is defined and shipping_information.quantity_in_carton !=""%}
{{ shipping_information.quantity_in_carton }}
{% endif %} {% if shipping_information.carton is defined %}
    {% for key,value in shipping_information.carton %} {% if value.param is defined and value.param != '' %}
  • {{ key }} = {{ value.param }} {{ value.unit }}
  • {% endif %} {% endfor %}
{% endif %} {% if shipping_information.product is defined %}
    {% for key,value in shipping_information.product %} {% if value.param is defined and value.param != '' %}
  • {{ key }} = {{ value.param }} {{ value.unit }}
  • {% endif %} {% endfor %}
{% endif %} {% set rush_service = 'No' %} {% set rush_time = '' %} {% for key,val in feature_details %} {% if val.label == 'Rush' and val.value !=''%} {% set rush_service = 'Yes' %} {% set rush_time = val.value %} {% endif %} {% endfor %} {% if rush_service is defined and rush_service !='' %}
{{ rush_service }}
{% endif %} {% if rush_time !='' %}
{{ rush_time }}
{% endif %}
{#}#}
{#% block java_script %} {% javascripts '@OfficeBrainProductBundle/Resources/public/js/productDetailPrint.js' %} {% endjavascripts %} {% endblock java_script %#} {% endblock modal_body %}