{% extends 'admin/layouts/base.html.twig' %} {% 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': 'New' } ]%} {% block content %} {% if categories is empty or paymentSettingDataStripe is empty or paymentSettingDataPaypal is empty %}
Before creating a product, create a category ( {{ app.request.schemeAndHttpHost ~ "/admin" ~ "/category" ~"/new"}}) and set the payment settings( {{ app.request.schemeAndHttpHost ~ "/admin" ~ "/payment-setting"}}).