{% 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 %} {% block product_image_title %} {% set no_of_compare_product = ob_project_setting.configuration_rule.transaction.compare_product.inline_view.option.no_of_product %} {% set remaining_compare_product=no_of_compare_product-total_record %} {{ 'product_compare.more_product'|trans({'%remaining_compare_product%':remaining_compare_product})| raw }} {% for row in record_set %} {% if (page_type is defined and page_type == 'LIST_COMPARE_PRODUCT') %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.button_remove.status==1%} {% endif %} {% endif %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_image.status==1%}
{% if (page_type is defined and page_type == 'LIST_COMPARE_PRODUCT') %} {% else %} {% endif %}
{% endif %}
{% if (page_type is defined and page_type == 'LIST_COMPARE_PRODUCT') %} {{ row.basic_information.title }} {% else %} {{ row.basic_information.title }} {% endif %}
{% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_image.status == 1 %}
{% endif %} {% if (page_type is defined and page_type == 'LIST_COMPARE_PRODUCT') %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.button_add_product.status == 1 %}
{{ 'product_compare.add_products'|trans }}
{% endif %} {% endif %} {% endfor %} {% endblock product_image_title %} {% block product_price_quantity %} {% set currentCountry = app.request.getLocale()|currentCounty %} {% set m=0%} {% for row in record_set %}
{% set priceFor = country[currentCountry].name %} {% set priceCurrency = country[currentCountry].currency.currency %} {% if (page_type is defined and page_type == 'LIST_COMPARE_PRODUCT') %} {% if row.price_type =='call_for_price' %} {{ 'call_for_price'| trans({},"app") }} {% else %} {% set productRegularPrice = row.regular_price|currency %} {% set productRegularPriceCurrency = row.currency.currency %} {% if row.ca_regular_price is defined and row.ca_regular_price != null and currentCountry=='ca' %} {% set productRegularPrice = row.ca_regular_price|currency %} {% endif %} {% if row.us_regular_price is defined and row.us_regular_price != null and currentCountry=='us' %} {% set productRegularPrice = row.us_regular_price|currency %} {% endif %} {{ priceCurrency }} ({{ row.currency.symbol }}) {{ productRegularPrice|currency }}{% if prefix == 'coded_' %} {{ 'goldstar_theme.products_detail.net'|trans({}, 'goldstar') }}{% endif %} {% endif %} {#class="priceProd"#}
{#{{ 'product_compare.qty'|trans }}#}Qty. {%else%} {% if priceProd[m] is defined and priceProd[m] > 0 %} {{ priceCurrency }} ({{ row.currency.symbol }}){{priceProd[m]|raw}} {% else %} {{ 'call_for_price'| trans({},"app") }} {% endif %}
{{ 'product_compare.qty'|trans }}. {{QtyValues[m]}} {%endif%}
{% set m= m+1%} {% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}
{% endfor %} {% endblock product_price_quantity %} {% block product_transaction_button %} {% if (page_type is defined and page_type == 'LIST_COMPARE_PRODUCT') %} {{ 'compare_products.feature'|trans({},'goldstar') }} {% for row in record_set %}
{%if row.price_type is defined %} {{ 'compare_products.product_pricing'|trans({},'goldstar') }} {%endif%}
{% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}   {% endfor %} {% endif %} {% endblock product_transaction_button %} {% block product_sku %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_sku.status ==1 %} {{ 'product_compare.item_code'|trans }} {% for row in record_set %} {#{{ 'product_compare.item_code'|trans }} :#}{{ row.basic_information.sku_number }} {% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}   {% endfor %} {% endif %} {% endblock product_sku %} {% block product_brand %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_brand.status ==1 %} {{ 'product_compare.brand'|trans }} {# {% for row in record_set %}#} {# {{ 'product_compare.brand'|trans }} :{{ row.brand.name }}#} {# {% endfor %}#} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0%}   {% endfor %} {% endif %} {% endblock product_brand %} {% block product_color %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_color.status ==1%} {{ 'product_compare.color'|trans }} {% for row in record_set %} {# {{ 'product_compare.color'|trans }} :#} {% if row.attributes|length>0 %} {% for attr in row.attributes %} {% if attr.id=="10" %} {% for index,color in attr.values %} {#
#} {# #} {#
#}
{# #}
{% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}   {% endfor %} {% endif %} {% endblock product_color %} {% block product_rating %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_rating.status ==1 %} {{ 'product_compare.rating'|trans }} {% for row in record_set %} {#{{ 'product_compare.rating'|trans }} : #}{{ row.rating|rating|raw }} {% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}   {% endfor %} {% endif %} {% endblock product_rating %} {# {% block product_feature %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_features.status ==1%} {{ 'product_compare.features'|trans }} {% if record_set|length %} {% for row in record_set %} {{ 'product_compare.features'|trans }} : {% if row.feature_details|length != 0 %} {% for attribute in row.feature_details %} {{ attribute.value }}
{% endfor %} {% else %} -- {%endif%} {% endfor %} {% else %} -- {%endif%} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}   {% endfor %} {% endif %} {% endblock product_feature %} #} {% block product_description %} {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_description.status ==1%} {{ 'product_compare.summary'|trans }} {% for row in record_set %} {#{{ 'product_compare.summary'|trans }} :#}{{ row.basic_information.description|raw|nl2br|striptags }} {% endfor %} {% set i=1 %} {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}   {% endfor %} {% endif %} {% endblock product_description %} {# {% block product_quantity_availability %}#} {# {% if ob_project_transaction_configuration_rule.compare_product.list.option.product_availability.status ==1%}#} {# #} {# {{ 'product_compare.available'|trans }}#} {# {% for row in record_set %}#} {# #} {#
{{ 'product_compare.in_stock'|trans }}
#} {# #} {# {% endfor %}#} {# {% set i=1 %}#} {# {% for i in range(1, remaining_compare_product) if remaining_compare_product >0 %}#} {#  #} {# {% endfor %}#} {# #} {# {% endif %}#} {# {% endblock product_quantity_availability %}#}