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