{% set setup_charges_display = 'goldstar_theme.products_detail.no_charge'|trans({},'goldstar') %} {# {% set ink_color_display = '' %}#} {# {% set product_time_display = '' %}#} {# {% set weight_display = '' %}#} {# {% set imprint_area_flag = false %}#} {# {% set imprint_area = '-' %}#} {# {% set imprint_size = '-' %}#} {# {% for key,val in 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 %}#} {# {% if attributes is defined and attributes | length > 0 %}#} {# {% for attr in 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 %}#} {# {% for key,val in imprint_information.imprint_method_information if val.production_days != ''%}#} {# {% for key1,val1 in 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 shipping_information.product is defined %}#} {# {% for key,value in shipping_information.product if key == 'weight'%}#} {# {% if value.param is defined and value.param != '' %}#} {# {% set weight_display = value.param ~value.unit %}#} {# {% endif %}#} {# {% endfor %}#} {# {% endif %}#}

{{ 'goldstar_theme.detail'|trans({},'goldstar') }}

{# {% if imprint_area is defined and imprint_area != '-' %}#} {# #} {# #} {# #} {# #} {# {% endif %}#} {# {% if ink_color_display != '' %}#} {# #} {# #} {# #} {# #} {# {% endif %}#} {# {% if product_time_display != '' %}#} {# #} {# #} {# #} {# #} {# {% endif %}#} {% if feature_details is defined and feature_details | length > 0 %} {% for feature in feature_details %} {% if feature.label | lower != 'rush charges' and feature.label != '' %} {% endif %} {% endfor %} {% endif %} {% if attributes is defined and attributes | length > 0 and false %} {% set trimColorVals = [] %} {% set barrelColorVals = [] %} {% set inkColorVals = [] %} {% set values = [] %} {% for attr in attributes %} {% if attr.values is defined and attr.values | length > 0 %} {% for val in attr.values%} {% if attr.id == trim_attr_color_id %} {% set val = val|trim|lower %} {% set trimColorVals = trimColorVals|merge([val]) %} {% endif %} {% if attr.id == barrel_attr_color_id %} {% set val = val|trim|lower %} {% set barrelColorVals = barrelColorVals|merge([val]) %} {% endif %} {% if attr.id == ink_attr_color_id %} {% set val = val|trim|lower %} {% set inkColorVals = inkColorVals|merge([val]) %} {% endif %} {% if attr.id == ob_project_transaction_configuration_rule.shopping_cart.color_attribute_id %} {% set val = val|trim|lower %} {% set values = values|merge([val]) %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% for attr in attributes %} {% set clr_str = '' %} {% if attr.values is defined and attr.values | length > 0 %} {% if attr.id == ob_project_transaction_configuration_rule.shopping_cart.color_attribute_id %} {% set flag = 0 %} {% for key, value in attr.values %} {% set val = value|trim|lower %} {% if val not in barrelColorVals and val not in trimColorVals and val not in inkColorVals %} {% if flag == 0 %} {% set flag = 1 %} {# {{ value|title }}#} {% set clr_str = clr_str ~ '' ~ value|title ~ '' %} {% else %} {# , {{ value|title }}#} {% set clr_str = clr_str ~ ', ' ~ value|title ~ '' %} {% endif %} {% endif %} {% endfor %} {% set clr_str = clr_str ~ '' %} {% elseif attr.id == barrel_attr_color_id %} {% set flag = 0 %} {% for key, value in values %} {% if value in barrelColorVals %} {% if flag == 0 %} {% set flag = 1 %} {# {{ value|title }}#} {% set clr_str = clr_str ~ '' ~ value|title ~ '' %} {% else %} {# , {{ value|title }}#} {% set clr_str = clr_str ~ ', ' ~ value|title ~ '' %} {% endif %} {% endif %} {% endfor %} {% set clr_str = clr_str ~ '' %} {% elseif attr.id == trim_attr_color_id %} {% set flag = 0 %} {% for key, value in values %} {% if value in trimColorVals %} {% if flag == 0 %} {% set flag = 1 %} {# {{ value|title }}#} {% set clr_str = clr_str ~ '' ~ value|title ~ '' %} {% else %} {# , {{ value|title }}#} {% set clr_str = clr_str ~ ', ' ~ value|title ~ '' %} {% endif %} {% endif %} {% endfor %} {% set clr_str = clr_str ~ '' %} {% else %} {% for key, value in attr.values %} {# {{ value }}#} {% set clr_str = clr_str ~ '' ~ value ~ '' %} {% if not loop.last %} {# ,#} {% set clr_str = clr_str ~ ', ' %} {% endif %} {% endfor %} {% set clr_str = clr_str ~ '' %} {% endif %} {% endif %} {% if clr_str != '' %} {% endif %} {% endfor %} {% endif %} {# {% if weight_display != '' %}#} {# #} {# #} {# #} {# #} {# {% endif %}#}
{{ 'goldstar_theme.products_detail.setup'|trans({},'goldstar') }} {% if imprint_information.imprint_method_information !="" %} {% for key,val in imprint_information.imprint_method_information if val != "" %} {% if val.charges != "" and val.charges['SETUP_CHARGE'] is defined %} {% for key1,val1 in imprint_methods if key1 == key %} {% if val.charges['SETUP_CHARGE']['charge'] is defined and val.charges['SETUP_CHARGE']['charge']!='0.000' and val.charges['SETUP_CHARGE']['charge']!='' %} {% if setup_charges_display == '' %} {% set setup_charges_display = val.name ~' : '~ ob_project_currency_code ~ val.charges['SETUP_CHARGE']['charge'] %} {% else %} {% set setup_charges_display = setup_charges_display ~', '~ val.name ~' : '~ ob_project_currency_code ~ val.charges['SETUP_CHARGE']['charge'] %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {{ setup_charges_display }}
{{ 'goldstar_theme.products_detail.imprint_area'|trans({},'goldstar') }}{{ imprint_area }}
{{ 'goldstar_theme.products_detail.ink_color'|trans({},'goldstar') }}{{ ink_color_display }}
{{ 'goldstar_theme.products_detail.production_time'|trans({},'goldstar') }}{{ product_time_display }}
{{ feature.label }} {{ feature.value|html_entities|raw|nl2br }}
{{ (attr.label == 'Ink')?'Ink Color':attr.label }} {{ clr_str|raw }}
{{ 'goldstar_theme.products_detail.weight'|trans({},'goldstar') }}#} {# {{ weight_display }}