{% extends '::baseAjax.html.twig' %} {% block ajax_body %} {% set show_heading = (show_heading is defined) ? show_heading : null %} {% set show_table = (show_table is defined) ? show_table : null %} {% set is_solr_data = (is_solr_data is defined) ? is_solr_data : null %} {% if is_solr_data == null %} {% if price_type == 'variations' %} {% set price_charges = (price_array is defined) ? price_array : null %} {% elseif price_type == 'regular' %} {% if price_array_type == 'decorative' %} {% set price_charges = (price_array.decorative is defined) ? price_array.decorative : null %} {% elseif price_array_type == 'blank' %} {% set price_charges = (price_array.blank is defined) ? price_array.blank : null %} {% else %} {% set price_charges = null %} {% endif %} {% endif %} {% endif %} {% if show_table == null %} {% include 'OfficeBrainQuoteBundle:QuoteAdmin:pricingQuantityTableDiv.html.twig' %} {% else %}

{{ 'admin.quote_info.quote_size_quantities'|trans }}

{% if price_type == 'variations' %} {% for variation_id,variation_data in price_charges %} {% if loop.first and variation_data.pricing.decorative is defined %} {% for quantity_ranges in variation_data.pricing.decorative %} {% endfor %} {% endif %} {% endfor %} {% elseif price_type == 'regular' or price_type == 'call_for_price' %} {% for variations_charges in price_charges %} {% endfor %} {% endif %} {% if price_type == 'variations' %} {% for variation_id,variation_data in price_charges %} {% set discountCode = [] %} {% set discountOrigCode = [] %} {% if variation_data.pricing.decorative.0.rate_orig is defined %} {% for price_ranges in variation_data.pricing.decorative %} {% endfor %} {% if discountOrigCode is defined and discountOrigCode|length >0 %} {% else %} {% endif %} {% for price_ranges in variation_data.pricing.decorative %} {% endfor %} {% if discountCode is defined and discountCode|length >0 %} {% else %} {% endif %} {% else %} {% for price_ranges in variation_data.pricing.decorative %} {% endfor %} {% if discountCode is defined and discountCode|length >0 %} {% else %} {% endif %} {% endif %} {% endfor %} {% elseif price_type == 'regular' or price_type == 'call_for_price' %} {% if price_charges.0.rate_orig is defined %} {% set discountCode = [] %} {% set discountOrigCode = [] %} {% for variations_charges in price_charges %} {% if variations_charges.code_orig !="" %} {% set discountOrigCode = discountOrigCode|merge([variations_charges.code_orig]) %} {% endif %} {% endfor %} {% if discountOrigCode is defined and discountOrigCode|length >0 %} {% else %} {% endif %} {% for variations_charges in price_charges %} {% if variations_charges.code !="" %} {% set discountCode = discountCode|merge([variations_charges.code]) %} {% endif %} {% endfor %} {% if discountCode is defined and discountCode|length >0 %} {% else %} {% endif %} {% else %} {% set discountCode = [] %} {% for variations_charges in price_charges %} {% if variations_charges.code !="" %} {% set discountCode = discountCode|merge([variations_charges.code]) %} {% endif %} {% endfor %} {% if discountCode is defined and discountCode|length >0 %} {% else %} {% endif %} {% endif %} {% endif %}
{{ 'quantity'| trans({},"app") }} {{ quantity_ranges.from }}{% if quantity_ranges.to is defined and quantity_ranges.to != '' %}{#}-{{ quantity_ranges.to }}{#}{% else %}+{% endif %}   {{ variations_charges.from }}{% if variations_charges.to is defined and variations_charges.to != '' %}{#}-{{ variations_charges.to }}{#}{% else %}+{% endif %}  
{% if variation_data.variation_title is defined %} {{ variation_data.variation_title }} {{ 'products_detail.price_old'|trans({"%price_currency%":ob_project_setting.currency_name|upper},'goldstar') }} {% endif %} {% if price_ranges.rate_orig != 'N/A' %}{{ ob_project_currency_code }}{% endif %} {{ price_ranges.rate_orig | currency }} {% if price_ranges.code_orig !="" %} {% set discountOrigCode = discountOrigCode|merge([price_ranges.code_orig]) %} {% endif %} ({{ discountOrigCode|characterCount|trim }}){{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{% if variation_data.variation_title is defined %} {{ variation_data.variation_title }} {{ 'products_detail.special'|trans({},'goldstar') }}({{ ob_project_setting.currency_name|upper }}) {% endif %} {% if price_ranges.rate != 'N/A' %}{{ ob_project_currency_code }}{% endif %} {{ price_ranges.rate | currency }} {% if price_ranges.code !="" %} {% set discountCode = discountCode|merge([price_ranges.code]) %} {% endif %} ({{ discountCode|characterCount|trim }}){{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{% if variation_data.variation_title is defined %} {{ variation_data.variation_title }} {{ 'products_detail.price_old'|trans({"%price_currency%":ob_project_setting.currency_name|upper},'goldstar') }} {% endif %} {% if price_ranges.rate != 'N/A' %}{{ ob_project_currency_code }}{% endif %} {{ price_ranges.rate | currency }} {% if price_ranges.code !="" %} {% set discountCode = discountCode|merge([price_ranges.code]) %} {% endif %} ({{ discountCode|characterCount|trim }}){{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{{ 'products_detail.price_old'| trans({"%price_currency%":ob_project_setting.currency_name|upper},"goldstar") }} {% if variations_charges.rate_orig != 'N/A' %}{{ ob_project_currency_code }}{% endif %} {{ variations_charges.rate_orig | currency }}({{ discountOrigCode|characterCount|trim }}){{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{{ 'products_detail.special'|trans({},'goldstar') }} ({{ ob_project_setting.currency_name|upper }}) {% if variations_charges.rate != 'N/A' %}{{ ob_project_currency_code }}{% endif %} {{ variations_charges.rate | currency }}({{ discountCode|characterCount|trim }}){{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{{ 'price'| trans({},"app") }} ({{ ob_project_setting.currency_code|upper }}){{ variations_charges.rate | currency }}({{ discountCode|characterCount|trim }}){{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{% endif %} {% endblock ajax_body %}