{% extends app.request.get('project_setting').instance_theme_path~':'~ app.request.get('project_setting').instance_theme ~':RequestQuote/loadRequestQuoteLayout.html.twig' %} {% block product_price_quantity_box %} {% if data.price_type is defined %} {% set price_type = data.price_type %} {% elseif price_type is defined %} {% set price_type = price_type %} {% else %} {% set price_type = 'NOT_EXIST' %} {% endif %} {% 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 %} {# {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':ProductDetail/Elements/quantityWisePricePanel.html.twig' with {'show_heading':true , 'price_array_type':'decorative', 'price_type' : product_detail.price_type ,'price_array':product_detail.pricing } %}#} {% include ob_project_instance_theme_path~':'~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':pricing } %} {% endblock product_price_quantity_box %} {% block request_quote_form %} {% set color_section = 0 %} {% set section_counter = 1 %} {% set choose_color_section = 1 %} {% set at_least_one_color = 0 %} {% if attributes|length>0 %} {% if (color_info.is_trim_color == '1' or color_info.is_ink_color == '1' or color_info.is_barrel_color == '1') and (color_info.is_standard_color == '1') %}

{{ section_counter }}{#{ attr.label }#}{{ 'products_detail.color_lable'|trans ({},'goldstar') }}

{% set choose_color_section = 0 %} {% set display_main_title = 1 %} {% if color_info.is_trim_color == '1' and color_info_val.trim_color_val is defined and color_info_val.trim_color_val|length > 0 %} {% set color_section_title = 'trim_colors'|trans({},'goldstar') %} {% set color_array = color_info_val.trim_color_val %} {% set color_class = 'trim_color_class' %} {% for attr in attributes if attr.id == color_info.trim_color_id %} {% set at_least_one_color = 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/colorBoxAttrLayout.html.twig' %} {% endfor %} {% set display_main_title = 0 %} {% endif %} {% if color_info.is_barrel_color == '1' and color_info_val.barrel_color_val is defined and color_info_val.barrel_color_val|length > 0 %} {% set color_section_title = 'barrel_colors'|trans({},'goldstar') %} {% set color_array = color_info_val.barrel_color_val %} {% set color_class = 'barrel_color_class' %} {% for attr in attributes if attr.id == color_info.barrel_color_id %} {% set at_least_one_color = 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/colorBoxAttrLayout.html.twig' %} {% endfor %} {% set display_main_title = 0 %} {% endif %} {% if color_info.is_ink_color == '1' and color_info_val.ink_color_val is defined and color_info_val.ink_color_val|length > 0 %} {% set color_section_title = 'ink_colors'|trans({},'goldstar') %} {% set color_array = color_info_val.ink_color_val %} {% set color_class = 'ink_color_class' %} {% for attr in attributes if attr.id == color_info.ink_color_id %} {% set at_least_one_color = 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/colorBoxAttrLayout.html.twig' %} {% endfor %} {% set display_main_title = 0 %} {% endif %} {% for attr in attributes if attr.id == '10' %} {% set color_section = 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/colorBoxLayout.html.twig' %} {% endfor %} {% set section_counter = section_counter + 1 %} {% else %} {% set at_least_one_color = 2 %} {% for attr in attributes if attr.id == '10' %} {% set color_section = 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/colorBoxLayout.html.twig' %} {% set section_counter = section_counter + 1 %} {% endfor %} {% endif %} {% endif %}
{% if color_section == 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/sizeQuantityBoxLayout.html.twig' %} {% set section_counter = section_counter + 1 %} {% if (ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.imprint_section.option.guest_user.status==1 and ob_project_setting.user_id == 0 ) or (ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.imprint_section.option.register_user.status==1 and ob_project_setting.user_id > 0) or (ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.imprint_section.option.register_user.ignore_section_status_n_validation ==1 and ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.imprint_section.option.register_user.status==0) or (ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.imprint_section.option.guest_user.ignore_section_status_n_validation ==1 and ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.imprint_section.option.guest_user.status==0) %} {% if imprint_position_and_methods|length>0 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/imprintPositionBoxLayout.html.twig' %} {% set section_counter = section_counter + 1 %} {% endif %} {% endif %} {% if (ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.shipping_section.option.guest_user.status==1 and ob_project_setting.user_id == 0 ) or (ob_project_transaction_configuration_rule.request_quote.product_detail_popup.option.shipping_section.option.register_user.status==1 and ob_project_setting.user_id > 0) %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/shippingMethodBoxLayout.html.twig' %} {% set section_counter = section_counter + 1 %} {% endif %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/specialInstructionsBoxLayout.html.twig' %} {% if ob_project_transaction_configuration_rule.request_quote.preferred_distributor.status==1 %} {% if ob_project_setting.user_id>0 %} {% if ob_project_transaction_configuration_rule.request_quote.preferred_distributor.option.show==1 and ob_project_user_setting.user_data.userType in ob_project_transaction_configuration_rule.request_quote.preferred_distributor.option.user_type %} {% set locatedDistId = ob_project_user_setting.user_data.locatedDistributorId %} {% set locatedDistState = '' %} {% set locatedDistEmail = NULL %} {% for dist in all_distributor %} {% if locatedDistId==dist.id %} {% set locatedDistEmail = dist.firstName %} {% endif %} {% endfor %} {% set section_counter = section_counter + 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/preferredDistributorBoxLayout.html.twig' %} {% elseif ob_project_user_setting.user_data.userType in ob_project_transaction_configuration_rule.request_quote.preferred_distributor.option.user_type %} {% endif %} {% else %} {% if ob_project_transaction_configuration_rule.request_quote.preferred_distributor.option.show==1 %} {% set locatedDistId = 0 %} {% set locatedDistState = '' %} {% set locatedDistEmail = NULL %} {% set section_counter = section_counter + 1 %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/preferredDistributorBoxLayout.html.twig' %} {% elseif ob_project_transaction_configuration_rule.request_quote.preferred_distributor.option.show==0 %} {# #} {% endif %} {% endif %} {% endif %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':RequestQuote/LoadForm/sendRequestQuoteButtonLayout.html.twig' %} {% endif %} {% javascripts '@OfficeBrainPageBundle/Resources/public/js/bundle/owl_carousel_slider.js' %} {% endjavascripts %} {% endblock request_quote_form %}