{% if (ob_project_user_type == 'guest' and ob_project_transaction_configuration_rule.wish_list.guest_user.status == 1) %} {% set prefix = '' %} {% elseif (ob_project_user_type == 'registered' and ob_project_transaction_configuration_rule.wish_list.registered_user.status == 1) %} {% set prefix = 'coded_' %} {% endif %} {% 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 ob_project_instance_theme_path~':'~ob_project_instance_theme~':Quote/pricingQuantityTableLayoutDiv.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' %} {% if price_charges is defined %} {% for variations_charges in price_charges %} {% endfor %} {% endif %} {% 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 %} {% for price_ranges in variation_data.pricing.decorative %} {% endfor %} {% else %} {% for price_ranges in variation_data.pricing.decorative %} {% endfor %} {% 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 = [] %} {% if price_charges is defined %} {% for variations_charges in price_charges %} {% if variations_charges.code !="" %} {% set discountCode = discountCode|merge([variations_charges.code]) %} {% endif %} {% endfor %} {% endif %} {% 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 %} {% if prefix == "" and discountOrigCode is defined and discountOrigCode|length >0 %} ({{ discountOrigCode|characterCount|trim }}) {% else %} {{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }} {% endif %}
{% 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 %} {% if prefix == "" and 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 %} {% 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 %} {% if prefix == "" and 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") }}*{{ ob_project_currency_code }} {{ 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 }}){{ ob_project_currency_code }} {{ variations_charges.rate | currency }}({{ discountCode|characterCount|trim }}) {{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{{ 'price'| trans({},"app") }} ({{ ob_project_setting.currency_code|upper }}){{ ob_project_currency_code }} {{ variations_charges.rate | currency }}({{ discountCode|characterCount|trim }}) {{ 'goldstar_theme.products_detail.net'|trans({},"goldstar") }}
{% endif %} {% endblock ajax_body %}