{% extends '::baseAjaxProductDetail.html.twig' %} {% block ajax_body %} {# HERE_WE_CHANGE_CODE #} {% set colorSection = 0 %} {% set section_counter = 1 %} {% set at_least_one_color = 0 %} {% if "color" in allowed_section %} {% if product_detail.attributes|length>0 %} {% if default_color_id is defined and default_color_id!=null %} {% set defaultSelected = default_color_id %} {% else %} {% set defaultSelected = (product_detail.images[0].actual_color_id is defined) ? product_detail.images[0].actual_color_id : null %} {% endif %} {% 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') %}
1. Select Color {% for index,color in attr.values %} {% if loop.first %} ({{color}}) {% endif %} {%endfor %}
{% else %} {% for attr in product_detail.attributes if attr.id == config.color_attribute_id %} {% set colorSection = 1 %}
1. Select Color {# for ETS supplier flow #} {% if product_detail.supplier.supplier_id==457 %} {% if attr.values[defaultSelected] is defined %} ({{attr.values[defaultSelected] | capitalize }}) {% else %} {% for index,color in attr.values %} {% if loop.first %} ({{color}}) {% endif %} {% endfor %} {% endif %} {% else %} {% if attr.values[defaultSelected] is defined %} ({{attr.values[defaultSelected] | capitalize }}) {% else %} {% for index,color in attr.values %} {% if loop.first %} ({{color}}) {% endif %} {% endfor %} {% endif %} {% endif %}
{% if "quantity_price" in allowed_section %}
{% if product_detail.price_type is defined and product_detail.price_type != 'call_for_price' and product_detail.pricing | length>0 %} 2. Select Quantity (See how much you can save!) {% else %} 2. Select Quantity {% endif %}
{% if product_detail.price_type is defined and product_detail.price_type != 'call_for_price' and product_detail.pricing | length>0 %}
{% endif %} {% if product_detail.pricing | length>0 %}
{% block ajax_quantity_box %} {% if ob_project_transaction_configuration_rule.shopping_cart.start_from_imprint_method.status == 0 %} {% set price_type_from_api = 'decorative' %} {% if product_detail.decorative_pricing is defined and product_detail.decorative_pricing and product_detail.decorative_pricing == 1 %} {% set price_type_from_api = 'decorative' %} {% elseif product_detail.blank_pricing is defined and product_detail.blank_pricing and product_detail.blank_pricing == 1 %} {% set price_type_from_api = 'blank' %} {% endif %} {% set price_unit = (product_detail.price_unit is defined and product_detail.price_unit!='') ? product_detail.price_unit : '' %} {% include ob_project_instance_theme_path~':'~ob_project_instance_theme~':ProductDetail/Elements/quantityWisePricePanel.html.twig' with {'show_heading':false , 'price_array_type':order_type, 'price_type' : product_detail.price_type,'price_array':product_detail.pricing, 'price_unit': price_unit, 'show_print_price_table': false} %} {% else %} {% if "print_position" not in allowed_section %} {% if product_detail.blank_imprint_method_id is defined %} {{ render(controller('OfficeBrainOrderBundle:Order:getQuantityPriceAsImprintMethod', { 'product_id': product_detail.product_id, 'imprint_method_id':product_detail.blank_imprint_method_id })) }} {% endif %} {% else %} {{ render(controller('OfficeBrainOrderBundle:Order:getQuantityPriceAsImprintMethod', { 'product_id': product_detail.product_id, 'imprint_method_id':imprint_method_id })) }} {% endif %} {% endif %} {% endblock ajax_quantity_box %}
{% endif %} {% if product_detail.price_type is defined and product_detail.price_type != 'call_for_price' and product_detail.pricing | length>0 %}
Save $
with I.D. Me Promotions!
{% endif %}
{% if "print_position" in allowed_section %} {% if product_detail.imprint_position_and_methods|length>0 %}
Select Imprint Options:
Imprint locations and colors
< Edit Product Color and Quantty {% set imprint_method_id = '' %} {% if ob_project_transaction_configuration_rule.shopping_cart.start_from_imprint_method.status == 1 %} {% if product_detail.imprint_methods is defined and product_detail.imprint_methods|length>0 %}
{% for id,method in product_detail.imprint_methods %} {% set checked_method = '' %} {% if loop.first %} {% set imprint_method_id = id %} {% set checked_method = 'checked=checked' %} {% endif %} {% if id!=product_detail.blank_imprint_method_id %}
{% endif %} {% endfor %}
{% endif %} {% endif %}
{% endif %} {% endif %} {% if product_detail.imprint_position_and_methods|length==0 %} {% endif %}
{% if product_detail.imprint_position_and_methods|length>0 %}
Extra Charge:$ 0.00
{% endif %}
{% if product_detail.imprint_position_and_methods|length>0 %} {% endif %} {% if product_detail.imprint_methods is defined and product_detail.imprint_methods|length>0 %} {% endif %} {% if "shipping_method" in allowed_section %} {% if colorSection == 1 %}
{#
{% if "sample" not in allowed_section %}
{% endif %}
{% set section_counter = section_counter + 1 %} {% endif %} {% endif %}
{% if product_detail.price_type is defined and product_detail.price_type != 'call_for_price' and product_detail.pricing | length>0 %} {% if is_shipping_allow=="no" %} Product Weight Missing. {% else %} Add To Cart {% endif %} {% else %} Call For Price {% endif %} {# {% if is_shipping_allow=="no" %} No FOB info. {% else %} {% if product_detail.price_type is defined and product_detail.price_type != 'call_for_price' and product_detail.pricing | length>0 %} Add To Cart {% else %} Call For Price {% endif %} {% endif %} #}
Not Ready To Place Order? Request Sample or Ask Question
{{include('OfficeBrainCustomBundleThemeBundle:IdmeTheme:ProductDetail/Elements/actionList.html.twig')}}
{% endif %} {% set section_counter = section_counter + 1 %} {% endfor %} {% endif %} {% endif %}
{% endif %} {# HERE_WE_CHANGE_CODE #} {% block ajax_content %} {% if "shipping_method" in allowed_section %} {% if colorSection == 11 %}
{% if "sample" not in allowed_section %}
{% endif %}
{% set section_counter = section_counter + 1 %} {% endif %} {% endif %} {% if "speacial_instruction" in allowed_section %}
{#

{{ section_counter }} {{ 'order.special_instructions'|trans }}

#} {% endif %} {% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.status==1 %} {% if ob_project_setting.user_id>0 %} {% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.show==1 and ob_project_user_setting.user_data.userType in ob_project_transaction_configuration_rule.shopping_cart.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 %}

{{ section_counter }} {{ 'order.preferred_distributor'|trans }}

{% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.option.state==1 %}

{{ 'order.state'|trans }} :

{% endif %} {% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.option.distributor==1 %}

{{ 'order.distributor'|trans }} :

{% endif %}
{% elseif ob_project_user_setting.user_data.userType in ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.user_type %} {% endif %} {% else %} {% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.show==1 %} {% set locatedDistId = 0 %} {% set locatedDistState = '' %} {% set locatedDistEmail = NULL %} {% set section_counter = section_counter + 1 %}

{{ section_counter }} {{ 'order.preferred_distributor'|trans }}

{% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.option.state==1 %}

{{ 'order.state'|trans }} :

{% endif %} {% if ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.option.distributor==1 %}

{{ 'order.distributor'|trans }} :

{% endif %}
{% elseif ob_project_transaction_configuration_rule.shopping_cart.preferred_distributor.option.show==0 %} {% endif %} {% endif %}{% endif %} {% javascripts '@OfficeBrainPageBundle/Resources/public/js/bundle/owl_carousel_slider.js' %} {% endjavascripts %}{% endblock ajax_content %}{% endblock ajax_body %}