{% set setup_charges_display = '' %}
{% set ink_color_display = '' %}
{% set weight_display = '' %}
{% set product_time_display = '' %}
{% for key,val in item.imprint_information.imprint_method_information if val.production_days != ''%}
{% for key1,val1 in item.imprint_methods if key1 == key %}
{% if loop.first %}
{% set product_time_display = val.production_days ~' '~val.production_unit%}
{% else %}
{% set product_time_display = product_time_display ~',' ~val.production_days ~' '~val.production_unit%}
{% endif %}
{% endfor %}
{% endfor %}
{% if item.shipping_information.product is defined %}
{% for key,value in item.shipping_information.product if key == 'weight'%}
{% if value.param is defined and value.param != '' %}
{% set weight_display = value.param ~value.unit %}
{% endif %}
{% endfor %}
{% endif %}
{% if item.attributes is defined and item.attributes | length > 0 %}
{% for attr in item.attributes if attr.label == 'Ink' %}
{% if attr.values is defined and attr.values | length > 0 %}
{% for key, value in attr.values %}
{% if loop.first %}
{% set ink_color_display = value %}
{% else %}
{% set ink_color_display = ink_color_display ~', '~value %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% set imprint_area_flag = false %}
{% set imprint_area = '-' %}
{% set imprint_size = '-' %}
{% for key,val in item.feature_details %}
{% if val.label == 'Imprint Area' %}
{% set temp_data = val.value|split('-', 2) %}
{% set imprint_area = temp_data[0] %}
{% set imprint_size = (temp_data[1]!='undefined')?temp_data[1]:'-' %}
{% endif %}
{% endfor %}
|
|
|
| Product Description |
|
| {% block productname_block %}{% endblock productname_block %} |
|
| {{ 'quick_quote.item_code'| trans ({},'goldstar') }} : # {% block productsku_block %}{% endblock productsku_block %} |
| Details : | {% block productdescription%}{% endblock productdescription%} |
|
|
|
|
| COLORS |
{% if item.attributes|length>0 %}
{% for attr in item.attributes %}
{% if attr.label=="Colors" %}
{% for index,color in attr.values %}
{# #}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
|
{% set regular_variations_charges = item.pricing.decorative %}
{% set price_type = item.price_type %}
{% set pricing = item.pricing %}
{#% set pricing_for_other_country = item.pricing_for_other_country %#}
{% if item.variation_pricing_for_other_country is defined %}
{% set variation_pricing_for_other_country = item.variation_pricing_for_other_country %}
{% endif %}
{% if item.pricing_for_other_country is defined %}
{% set pricing_for_other_country = item.pricing_for_other_country %}
{% endif %}
{% if item.variation_pricing_country_available is defined %}
{% set variation_pricing_country_available = item.variation_pricing_country_available %}
{% endif %}
{% if item.country_available is defined %}
{% set country_available = item.country_available %}
{% endif %}
{% if item.product_id is defined %}
{% set product_id = item.product_id %}
{% endif %}
| {% set fromQuickQuote = 'yes' %}
{{ include('OfficeBrainCustomBundleThemeBundle:IdmeTheme:ProductDetail/Elements/productPriceGrid.html.twig') }}
|
|
{# #}
{# | #}
{# #}
{# {% if app.request.getLocale() == 'en_ca' %}#}
{# {{ 'display_product_price_currency_message_cdn'|trans({},'goldstar') }} #}
{# {% endif %}#}
{# {% if app.request.getLocale() == 'en_us' %}#}
{# {{ 'display_product_price_currency_message'|trans({},'goldstar') }} #}
{# {% endif %}#}
{# #}
{# | #}
{# #}
|
| Product Features |
|
|
|
| {{ 'goldstar_theme.products_detail.setup'|trans({},'goldstar') }} |
{% if item.imprint_information.imprint_method_information !="" %}
{% for key,val in item.imprint_information.imprint_method_information if val != "" %}
{% if val.charges != "" and val.charges['SETUP_CHARGE'] is defined %}
{% for key1,val1 in item.imprint_methods if key1 == key %}
{% if loop.first %}
{#} {{ (val.charges['SETUP_CHARGE']['charge'] is defined)?val.charges['SETUP_CHARGE']['charge']:"" ~' '~(val.charges['SETUP_CHARGE']['code'] is defined)?val.charges['SETUP_CHARGE']['code']:"" }}#}
{% if val.charges['SETUP_CHARGE']['charge'] is defined %}
{% if (val.charges['SETUP_CHARGE']['charge'] is iterable) %}
{% include 'OfficeBrainCustomBundleThemeBundle:'~ob_project_instance_theme~':ProductDetail/Elements/imprintAdditionalQtyWisePricePanel.html.twig' with {'show_heading':true , 'price_type' : price_type ,'price_array':val.charges['ADDITIONAL_LOCATION_CHARGE']['charge'], 'show_print_price_table':false,'show_table':false } %}
{% else %}
{% set setup_charges_display = ob_project_currency_code ~(val.charges['SETUP_CHARGE']['charge'] is defined)?val.charges['SETUP_CHARGE']['charge']:"" %}
{% endif %}
{% endif %}
{% else %}
{% set setup_charges_display = setup_charges_display ~ ','~ val.charges['SETUP_CHARGE']['charge'] ~' '~val.charges['SETUP_CHARGE']['code'] %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{{ setup_charges_display }}
|
{% if imprint_area is defined and imprint_area != '-' %}
| {{ 'goldstar_theme.products_detail.imprint_area'|trans({},'goldstar') }} |
{{ imprint_area }} |
{% endif %}
{% if ink_color_display != '' %}
| {{ 'goldstar_theme.products_detail.ink_color'|trans({},'goldstar') }} |
{{ ink_color_display }} |
{% endif %}
{% if weight_display != '' %}
| {{ 'goldstar_theme.products_detail.weight'|trans({},'goldstar') }} |
{{ weight_display }} |
{% endif %}
{% if product_time_display != '' %}
| {{ 'goldstar_theme.products_detail.production_time'|trans({},'goldstar') }} |
{{ product_time_display }} |
{% endif %}
|
|
|
|
|
|
|
|
|
|