{% extends 'admin/layouts/base.html.twig' %} {% block title %}View Product{% endblock %} {% set active = 'app_admin_product' %} {% set breadcrumbs = [ { 'link': path('app_admin_dashboard'), 'title': 'Home' }, { 'title':'Product Management', }, { 'link': path('app_admin_product'), 'title': 'Products', }, { 'title': 'View', } ]%} {% block content %}

Product Details

{##} {#{% if product.wordpressproductid is not null %} {% endif %}#} {% if product.images %} {% endif %}
Id {{ product.id }}
Name {% if product.name is empty %} N/A {% else %} {{ product.name }} {% endif %}
Description {% if product.description is empty %} N/A {% else %} {{ product.description }} {% endif %}
Short Description {% if short_description_array is empty %} N/A {% else %} {{ short_description_array|join(' , ') }} {% endif %}
Regular Price {% if product.regularprice is empty %} N/A {% else %} {{ product.regularprice|number_format('2', ',', '.') }} {% endif %}
Sale Price {% if product.saleprice is empty %} N/A {% else %} {{ product.saleprice|number_format('2', ',', '.') }} {% endif %}
SKU {% if product.sku is empty %} N/A {% else %} {{ product.sku }} {% endif %}
Category {% if product.category.name is empty %} N/A {% else %} {{ product.category.name }} {% endif %}
Status {% if product.status is empty %} N/A {% else %} {% if product.status == 1 %} PUBLISH {% elseif product.status == 0 %} UNPUBLISH {% endif %} {% endif %}
Wordpress Product {{ product.wordpressproductid ? "Yes" : 'No'}}
Wordpress Subscription Duration Id {{ product.wordpressproductid }}
Images:
{% for image in product.images %} Product Image {% endfor %}
{% endblock %} {% block javascripts %} {% endblock %}