Files
taome/var/cache/dev/twig/4c/4c374aec6e5f08a0ed5782fd392d951b796b428bd174282b7ec361e82c5f2d3d.php
2020-10-07 10:37:15 +02:00

1599 lines
97 KiB
PHP

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @PrestaShop/Admin/Product/ProductPage/product.html.twig */
class __TwigTemplate_d0921d1324d7ef0e8e6533c1ef6b470323e0859da9ef85c7431ded95eec5f917 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 25
$this->parent = $this->loadTemplate("@PrestaShop/Admin/layout.html.twig", "@PrestaShop/Admin/Product/ProductPage/product.html.twig", 25);
$this->blocks = [
'content' => [$this, 'block_content'],
'product_header' => [$this, 'block_product_header'],
'product_tabs_container' => [$this, 'block_product_tabs_container'],
'product_panel_essentials' => [$this, 'block_product_panel_essentials'],
'product_panel_combinations' => [$this, 'block_product_panel_combinations'],
'product_panel_shipping' => [$this, 'block_product_panel_shipping'],
'product_panel_pricing' => [$this, 'block_product_panel_pricing'],
'product_panel_seo' => [$this, 'block_product_panel_seo'],
'product_panel_options' => [$this, 'block_product_panel_options'],
'product_panel_modules' => [$this, 'block_product_panel_modules'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
return "@PrestaShop/Admin/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Product/ProductPage/product.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Product/ProductPage/product.html.twig"));
// line 331
$context["js_translatable"] = twig_array_merge(["Are you sure to disable variations ? they will all be deleted" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This will delete all the combinations. Do you wish to proceed?", [], "Admin.Catalog.Notification")], // line 333
($context["js_translatable"] ?? $this->getContext($context, "js_translatable")));
// line 335
$context["js_translatable"] = twig_array_merge(["Form update success" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Settings updated.", [], "Admin.Notifications.Success"), "Form update errors" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Unable to update settings.", [], "Admin.Notifications.Error"), "Delete" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Delete", [], "Admin.Actions"), "ToLargeFile" => twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("The file is too large. Maximum size allowed is: [1]. The file you are trying to upload is [2].", [], "Admin.Notifications.Error"), ["[1]" => "{{maxFilesize}}", "[2]" => "{{filesize}}"]), "Drop images here" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Drop images here", [], "Admin.Catalog.Feature"), "or select files" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("or select files", [], "Admin.Catalog.Feature"), "files recommandations" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Recommended size 800 x 800px for default theme.", [], "Admin.Catalog.Feature"), "files recommandations2" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("JPG, GIF or PNG format.", [], "Admin.Catalog.Feature"), "Cover" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cover", [], "Admin.Catalog.Feature"), "Are you sure to delete this?" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Are you sure to delete this?", [], "Admin.Notifications.Warning"), "This will delete the specific price. Do you wish to proceed?" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This will delete the specific price. Do you wish to proceed?", [], "Admin.Catalog.Notification"), "Quantities" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Quantities", [], "Admin.Catalog.Feature"), "Combinations" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Combinations", [], "Admin.Catalog.Feature"), "Virtual product" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Virtual product", [], "Admin.Catalog.Feature"), "tax incl." => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("tax incl.", [], "Admin.Catalog.Feature"), "tax excl." => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("tax excl.", [], "Admin.Catalog.Feature"), "You can't create pack product with variations. Are you sure to disable variations ? they will all be deleted." => (($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A pack of products can't have combinations.", [], "Admin.Catalog.Notification") . " ") . $this->getAttribute( // line 352
($context["js_translatable"] ?? $this->getContext($context, "js_translatable")), "Are you sure to disable variations ? they will all be deleted", [], "array")), "You can't create virtual product with variations. Are you sure to disable variations ? they will all be deleted." => (($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("A virtual product can't have combinations.", [], "Admin.Catalog.Notification") . " ") . $this->getAttribute( // line 353
($context["js_translatable"] ?? $this->getContext($context, "js_translatable")), "Are you sure to disable variations ? they will all be deleted", [], "array"))], // line 354
($context["js_translatable"] ?? $this->getContext($context, "js_translatable")));
// line 25
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 27
public function block_content($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 28
echo "
<form name=\"form\" id=\"form\" method=\"post\" class=\"form-horizontal product-page row justify-content-md-center\" novalidate=\"novalidate\">
";
// line 31
if ( !($context["editable"] ?? $this->getContext($context, "editable"))) {
echo " <fieldset disabled id=\"field-disabled\"> ";
}
// line 32
echo " ";
// line 33
echo " ";
$this->displayBlock('product_header', $context, $blocks);
// line 44
echo "
<div class=\"col-md-10\">
<div id=\"form_bubbling_errors\">
";
// line 47
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? $this->getContext($context, "form")), 'errors');
echo "
</div>
</div>
<div id=\"form-loading\" class=\"col-xxl-10\">
";
// line 53
echo " ";
$this->displayBlock('product_tabs_container', $context, $blocks);
// line 56
echo " <div id=\"form_content\" class=\"tab-content\">
";
// line 59
echo " ";
$this->displayBlock('product_panel_essentials', $context, $blocks);
// line 80
echo "
";
// line 82
echo " ";
$this->displayBlock('product_panel_combinations', $context, $blocks);
// line 104
echo "
";
// line 106
echo " ";
$this->displayBlock('product_panel_shipping', $context, $blocks);
// line 125
echo "
";
// line 127
echo " ";
$this->displayBlock('product_panel_pricing', $context, $blocks);
// line 134
echo "
";
// line 136
echo " ";
$this->displayBlock('product_panel_seo', $context, $blocks);
// line 142
echo "
";
// line 144
echo " ";
$this->displayBlock('product_panel_options', $context, $blocks);
// line 150
echo "
";
// line 152
echo " ";
$this->displayBlock('product_panel_modules', $context, $blocks);
// line 248
echo " </div>
";
// line 250
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "id_product", []), 'widget');
echo "
";
// line 251
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "_token", []), 'widget');
echo "
</div>
";
// line 255
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Blocks/footer.html.twig", ["preview_link" => // line 256
($context["preview_link"] ?? $this->getContext($context, "preview_link")), "preview_link_deactivate" => // line 257
($context["preview_link_deactivate"] ?? $this->getContext($context, "preview_link_deactivate")), "is_shop_context" => // line 258
($context["is_shop_context"] ?? $this->getContext($context, "is_shop_context")), "editable" => // line 259
($context["editable"] ?? $this->getContext($context, "editable")), "is_active" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute( // line 260
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "vars", []), "value", []), "active", []), "productId" => // line 261
($context["id_product"] ?? $this->getContext($context, "id_product"))]);
// line 262
echo "
";
// line 263
if ( !($context["editable"] ?? $this->getContext($context, "editable"))) {
echo " </fieldset> ";
}
// line 264
echo " </form>
";
// line 267
$this->loadTemplate("@PrestaShop/Admin/Product/ProductPage/product.html.twig", "@PrestaShop/Admin/Product/ProductPage/product.html.twig", 267, "938235133")->display(twig_array_merge($context, ["id" => "confirmation_modal", "title" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Warning", [], "Admin.Notifications.Warning"), "closable" => false, "actions" => [0 => ["type" => "button", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("No", [], "Admin.Global"), "class" => "btn btn-outline-secondary btn-lg cancel"], 1 => ["type" => "button", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Yes", [], "Admin.Global"), "class" => "btn btn-primary btn-lg continue"]]]));
// line 288
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 33
public function block_product_header($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_header"));
// line 34
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Blocks/header.html.twig", ["formName" => $this->getAttribute($this->getAttribute( // line 35
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "name", []), "formType" => $this->getAttribute($this->getAttribute( // line 36
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "type_product", []), "is_multishop_context" => // line 37
($context["is_multishop_context"] ?? $this->getContext($context, "is_multishop_context")), "languages" => // line 38
($context["languages"] ?? $this->getContext($context, "languages")), "help_link" => // line 39
($context["help_link"] ?? $this->getContext($context, "help_link")), "stats_link" => // line 40
($context["stats_link"] ?? $this->getContext($context, "stats_link"))]);
// line 42
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 53
public function block_product_tabs_container($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_tabs_container"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_tabs_container"));
// line 54
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Blocks/tabs.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 59
public function block_product_panel_essentials($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_essentials"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_essentials"));
// line 60
echo " ";
$context["formQuantityShortcut"] = (($this->getAttribute($this->getAttribute(($context["form"] ?? null), "step1", [], "any", false, true), "qty_0_shortcut", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "step1", []), "qty_0_shortcut", [])) : (null));
// line 61
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Panels/essentials.html.twig", ["formPackItems" => $this->getAttribute($this->getAttribute( // line 62
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "inputPackItems", []), "productId" => // line 63
($context["id_product"] ?? $this->getContext($context, "id_product")), "images" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute( // line 64
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "vars", []), "value", []), "images", []), "formShortDescription" => $this->getAttribute($this->getAttribute( // line 65
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "description_short", []), "formDescription" => $this->getAttribute($this->getAttribute( // line 66
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "description", []), "formFeatures" => $this->getAttribute($this->getAttribute( // line 67
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "features", []), "formManufacturer" => $this->getAttribute($this->getAttribute( // line 68
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "id_manufacturer", []), "formRelatedProducts" => $this->getAttribute($this->getAttribute( // line 69
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "related_products", []), "is_combination_active" => // line 70
($context["is_combination_active"] ?? $this->getContext($context, "is_combination_active")), "has_combinations" => // line 71
($context["has_combinations"] ?? $this->getContext($context, "has_combinations")), "formReference" => $this->getAttribute($this->getAttribute( // line 72
($context["form"] ?? $this->getContext($context, "form")), "step6", []), "reference", []), "formQuantityShortcut" => // line 73
($context["formQuantityShortcut"] ?? $this->getContext($context, "formQuantityShortcut")), "formPriceShortcut" => $this->getAttribute($this->getAttribute( // line 74
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "price_shortcut", []), "formPriceShortcutTTC" => $this->getAttribute($this->getAttribute( // line 75
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "price_ttc_shortcut", []), "formCategories" => $this->getAttribute( // line 76
($context["form"] ?? $this->getContext($context, "form")), "step1", [])]);
// line 78
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 82
public function block_product_panel_combinations($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_combinations"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_combinations"));
// line 83
echo " ";
$context["formStockQuantity"] = (($this->getAttribute($this->getAttribute(($context["form"] ?? null), "step3", [], "any", false, true), "qty_0", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute(($context["form"] ?? $this->getContext($context, "form")), "step3", []), "qty_0", [])) : (null));
// line 84
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Panels/combinations.html.twig", ["formDependsOnStocks" => $this->getAttribute($this->getAttribute( // line 85
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "depends_on_stock", []), "productId" => // line 86
($context["id_product"] ?? $this->getContext($context, "id_product")), "formStockQuantity" => // line 87
($context["formStockQuantity"] ?? $this->getContext($context, "formStockQuantity")), "formStockMinimalQuantity" => $this->getAttribute($this->getAttribute( // line 88
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "minimal_quantity", []), "formLowStockThreshold" => $this->getAttribute($this->getAttribute( // line 89
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "low_stock_threshold", []), "formLocation" => $this->getAttribute($this->getAttribute( // line 90
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "location", []), "formLowStockAlert" => $this->getAttribute($this->getAttribute( // line 91
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "low_stock_alert", []), "formVirtualProduct" => $this->getAttribute($this->getAttribute( // line 92
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "virtual_product", []), "asm_globally_activated" => // line 93
($context["asm_globally_activated"] ?? $this->getContext($context, "asm_globally_activated")), "formType" => $this->getAttribute($this->getAttribute( // line 94
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "type_product", []), "formAdvancedStockManagement" => $this->getAttribute($this->getAttribute( // line 95
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "advanced_stock_management", []), "formPackStockType" => $this->getAttribute($this->getAttribute( // line 96
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "pack_stock_type", []), "formStep3" => $this->getAttribute( // line 97
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "formCombinations" => // line 98
($context["formCombinations"] ?? $this->getContext($context, "formCombinations")), "has_combinations" => // line 99
($context["has_combinations"] ?? $this->getContext($context, "has_combinations")), "max_upload_size" => // line 100
($context["max_upload_size"] ?? $this->getContext($context, "max_upload_size"))]);
// line 102
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 106
public function block_product_panel_shipping($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_shipping"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_shipping"));
// line 107
echo " <div role=\"tabpanel\" class=\"form-contenttab tab-pane\" id=\"step4\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"container-fluid\">
<div class=\"row\">
";
// line 112
echo twig_include($this->env, $context, "@Product/ProductPage/Forms/form_shipping.html.twig", ["form" => $this->getAttribute( // line 113
($context["form"] ?? $this->getContext($context, "form")), "step4", []), "asm_globally_activated" => // line 114
($context["asm_globally_activated"] ?? $this->getContext($context, "asm_globally_activated")), "isNotVirtual" => ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute( // line 115
($context["form"] ?? $this->getContext($context, "form")), "step1", []), "type_product", []), "vars", []), "value", []) != "2"), "isChecked" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute( // line 116
($context["form"] ?? $this->getContext($context, "form")), "step3", []), "advanced_stock_management", []), "vars", []), "checked", []), "warehouses" => // line 117
($context["warehouses"] ?? $this->getContext($context, "warehouses"))]);
// line 118
echo "
</div>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 127
public function block_product_panel_pricing($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_pricing"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_pricing"));
// line 128
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Panels/pricing.html.twig", ["pricingForm" => $this->getAttribute( // line 129
($context["form"] ?? $this->getContext($context, "form")), "step2", []), "is_multishop_context" => // line 130
($context["is_multishop_context"] ?? $this->getContext($context, "is_multishop_context")), "productId" => // line 131
($context["id_product"] ?? $this->getContext($context, "id_product"))]);
// line 132
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 136
public function block_product_panel_seo($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_seo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_seo"));
// line 137
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Panels/seo.html.twig", ["seoForm" => $this->getAttribute( // line 138
($context["form"] ?? $this->getContext($context, "form")), "step5", []), "productId" => // line 139
($context["id_product"] ?? $this->getContext($context, "id_product"))]);
// line 140
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 144
public function block_product_panel_options($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_options"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_options"));
// line 145
echo " ";
echo twig_include($this->env, $context, "@Product/ProductPage/Panels/options.html.twig", ["optionsForm" => $this->getAttribute( // line 146
($context["form"] ?? $this->getContext($context, "form")), "step6", []), "productId" => // line 147
($context["id_product"] ?? $this->getContext($context, "id_product"))]);
// line 148
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 152
public function block_product_panel_modules($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_modules"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_panel_modules"));
// line 153
echo " ";
if (($this->env->getExtension('PrestaShopBundle\Twig\HookExtension')->hookCount("displayAdminProductsExtra") > 0)) {
// line 154
echo " <div role=\"tabpanel\" class=\"form-contenttab tab-pane\" id=\"hooks\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"container-fluid\">
<div class=\"row\">
";
// line 161
echo " <div class=\"col-md-12\">
";
// line 162
$context["hooks"] = $this->env->getExtension('PrestaShopBundle\Twig\HookExtension')->renderHooksArray("displayAdminProductsExtra", ["id_product" => ($context["id_product"] ?? $this->getContext($context, "id_product"))]);
// line 163
echo "
<div class=\"row module-selection\" style=\"display: none;\">
<div class=\"col-md-12 col-lg-7\">
";
// line 166
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["hooks"] ?? $this->getContext($context, "hooks")));
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 167
echo " <div class=\"module-render-container module-";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "name", []), "html", null, true);
echo "\">
<div>
<img class=\"top-logo\" src=\"";
// line 169
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "img", []), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "displayName", []), "html", null, true);
echo "\">
<h2 class=\"text-ellipsis module-name-grid\">
";
// line 171
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "displayName", []), "html", null, true);
echo "
</h2>
<div class=\"text-ellipsis small-text module-version\">
";
// line 174
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "version", []), "html", null, true);
echo " by ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "author", []), "html", null, true);
echo "
</div>
</div>
<div class=\"small no-padding\">
";
// line 178
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "description", []), "html", null, true);
echo "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 182
echo " </div>
<div class=\"col-md-12 col-lg-5\">
<h2>";
// line 184
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Module to configure", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</h2>
<select class=\"modules-list-select\" data-toggle=\"select2\">
";
// line 186
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["hooks"] ?? $this->getContext($context, "hooks")));
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 187
echo " <option value=\"module-";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "name", []), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "displayName", []), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 189
echo " </select>
</div>
</div>
<div class=\"module-render-container all-modules\">
<p>
<h2>";
// line 195
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Choose a module to configure", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</h2>
";
// line 196
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("These modules are relative to the product page of your shop.", [], "Admin.Catalog.Feature"), "html", null, true);
echo "<br />
";
// line 197
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("To manage all your modules go to the [1]Installed module page[/1]", [], "Admin.Catalog.Feature"), ["[1]" => (("<a href=\"" . $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_module_manage")) . "\">"), "[/1]" => "</a>"]);
echo "
</p>
<div class=\"row\">
";
// line 200
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["hooks"] ?? $this->getContext($context, "hooks")));
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 201
echo " <div class=\"col-md-12 col-lg-6 col-xl-4\">
<div class=\"module-item-wrapper-grid\">
<div class=\"module-item-heading-grid\">
<img class=\"module-logo-thumb-grid\" src=\"";
// line 204
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "img", []), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "displayName", []), "html", null, true);
echo "\">
<h3 class=\"text-ellipsis module-name-grid\">
";
// line 206
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "displayName", []), "html", null, true);
echo "
</h3>
<div class=\"text-ellipsis small-text module-version-author-grid\">
";
// line 209
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "version", []), "html", null, true);
echo " by ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "author", []), "html", null, true);
echo "
</div>
</div>
<div class=\"module-quick-description-grid small no-padding\">
";
// line 213
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "description", []), "html", null, true);
echo "
</div>
<div class=\"module-container\">
<div class=\"module-quick-action-grid clearfix\">
<button class=\"modules-list-button btn btn-outline-primary pull-xs-right\" data-target=\"module-";
// line 217
echo twig_escape_filter($this->env, $this->getAttribute($context["module"], "id", []), "html", null, true);
echo "\">
";
// line 218
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Configure", [], "Admin.Actions"), "html", null, true);
echo "
</button>
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 225
echo " </div>
</div>
";
// line 228
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["hooks"] ?? $this->getContext($context, "hooks")));
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 229
echo " <div
id=\"module_";
// line 230
echo twig_escape_filter($this->env, $this->getAttribute($context["module"], "id", []), "html", null, true);
echo "\"
class=\"module-render-container module-";
// line 231
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", []), "name", []), "html", null, true);
echo "\"
style=\"display: none;\"
>
<div>
";
// line 235
echo $this->getAttribute($context["module"], "content", []);
echo "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 239
echo " </div>
</div>
</div>
</div>
</div>
</div>
";
}
// line 247
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 291
public function block_javascripts($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 292
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 294
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/product/form.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 295
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/new-theme/public/catalog_product.bundle.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 297
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/product/product-manufacturer.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 298
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/product/product-related.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 299
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/product/product-category-tags.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 300
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/product/default-category.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 301
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/product/product-combinations.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 302
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/category-tree.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 303
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/module/module_card.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 304
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/modal-confirmation.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 305
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/new-theme/public/product_page.bundle.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 306
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("../js/tiny_mce/tiny_mce.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 307
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("../js/admin/tinymce.inc.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 308
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("../js/admin/tinymce_loader.js"), "html", null, true);
echo "\"></script>
<script>
\$(function() {
var editable = '";
// line 312
echo twig_escape_filter($this->env, ($context["editable"] ?? $this->getContext($context, "editable")), "html", null, true);
echo "';
if (editable !== '1'){
\$('#field-disabled').find(\"select\").each(function() {
\$(this).removeClass('select2-hidden-accessible');
});
\$('#field-disabled').find(\"span.select2\").each(function() {
\$(this).hide();
});
\$('#field-disabled').find(\"a.pstaggerClosingCross\").each(function() {
\$(this).attr(\"disabled\", \"disabled\").on(\"click\", function() {
return false;
});
});
}
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Product/ProductPage/product.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 750 => 312, 743 => 308, 739 => 307, 735 => 306, 731 => 305, 727 => 304, 723 => 303, 719 => 302, 715 => 301, 711 => 300, 707 => 299, 703 => 298, 699 => 297, 694 => 295, 690 => 294, 684 => 292, 675 => 291, 665 => 247, 655 => 239, 645 => 235, 638 => 231, 634 => 230, 631 => 229, 627 => 228, 622 => 225, 609 => 218, 605 => 217, 598 => 213, 589 => 209, 583 => 206, 576 => 204, 571 => 201, 567 => 200, 561 => 197, 557 => 196, 553 => 195, 545 => 189, 534 => 187, 530 => 186, 525 => 184, 521 => 182, 511 => 178, 502 => 174, 496 => 171, 489 => 169, 483 => 167, 479 => 166, 474 => 163, 472 => 162, 469 => 161, 461 => 154, 458 => 153, 449 => 152, 438 => 148, 436 => 147, 435 => 146, 433 => 145, 424 => 144, 413 => 140, 411 => 139, 410 => 138, 408 => 137, 399 => 136, 388 => 132, 386 => 131, 385 => 130, 384 => 129, 382 => 128, 373 => 127, 357 => 118, 355 => 117, 354 => 116, 353 => 115, 352 => 114, 351 => 113, 350 => 112, 343 => 107, 334 => 106, 323 => 102, 321 => 100, 320 => 99, 319 => 98, 318 => 97, 317 => 96, 316 => 95, 315 => 94, 314 => 93, 313 => 92, 312 => 91, 311 => 90, 310 => 89, 309 => 88, 308 => 87, 307 => 86, 306 => 85, 304 => 84, 301 => 83, 292 => 82, 281 => 78, 279 => 76, 278 => 75, 277 => 74, 276 => 73, 275 => 72, 274 => 71, 273 => 70, 272 => 69, 271 => 68, 270 => 67, 269 => 66, 268 => 65, 267 => 64, 266 => 63, 265 => 62, 263 => 61, 260 => 60, 251 => 59, 238 => 54, 229 => 53, 218 => 42, 216 => 40, 215 => 39, 214 => 38, 213 => 37, 212 => 36, 211 => 35, 209 => 34, 200 => 33, 189 => 288, 187 => 267, 182 => 264, 178 => 263, 175 => 262, 173 => 261, 172 => 260, 171 => 259, 170 => 258, 169 => 257, 168 => 256, 166 => 255, 160 => 251, 156 => 250, 152 => 248, 149 => 152, 146 => 150, 143 => 144, 140 => 142, 137 => 136, 134 => 134, 131 => 127, 128 => 125, 125 => 106, 122 => 104, 119 => 82, 116 => 80, 113 => 59, 109 => 56, 106 => 53, 98 => 47, 93 => 44, 90 => 33, 88 => 32, 84 => 31, 79 => 28, 70 => 27, 60 => 25, 58 => 354, 57 => 353, 56 => 352, 55 => 335, 53 => 333, 52 => 331, 22 => 25,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source(" {#**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% block content %}
<form name=\"form\" id=\"form\" method=\"post\" class=\"form-horizontal product-page row justify-content-md-center\" novalidate=\"novalidate\">
{% if not editable %} <fieldset disabled id=\"field-disabled\"> {% endif %}
{# PRODUCT HEADER #}
{% block product_header %}
{{ include('@Product/ProductPage/Blocks/header.html.twig', {
'formName': form.step1.name,
'formType': form.step1.type_product,
'is_multishop_context': is_multishop_context,
'languages': languages,
'help_link': help_link,
'stats_link': stats_link
})
}}
{% endblock %}
<div class=\"col-md-10\">
<div id=\"form_bubbling_errors\">
{{ form_errors(form) }}
</div>
</div>
<div id=\"form-loading\" class=\"col-xxl-10\">
{# FORM TABS CONTAINER #}
{% block product_tabs_container %}
{{ include('@Product/ProductPage/Blocks/tabs.html.twig') }}
{% endblock %}
<div id=\"form_content\" class=\"tab-content\">
{# PANEL ESSENTIALS #}
{% block product_panel_essentials %}
{% set formQuantityShortcut = form.step1.qty_0_shortcut is defined ? form.step1.qty_0_shortcut : null %}
{{ include('@Product/ProductPage/Panels/essentials.html.twig', {
'formPackItems': form.step1.inputPackItems,
'productId': id_product,
'images': form.step1.vars.value.images,
'formShortDescription': form.step1.description_short,
'formDescription': form.step1.description,
'formFeatures': form.step1.features,
'formManufacturer': form.step1.id_manufacturer,
'formRelatedProducts': form.step1.related_products,
'is_combination_active': is_combination_active,
'has_combinations': has_combinations,
'formReference': form.step6.reference,
'formQuantityShortcut': formQuantityShortcut,
'formPriceShortcut': form.step1.price_shortcut,
'formPriceShortcutTTC': form.step1.price_ttc_shortcut,
'formCategories': form.step1,
})
}}
{% endblock %}
{# PANEL COMBINATIONS #}
{% block product_panel_combinations %}
{% set formStockQuantity = form.step3.qty_0 is defined ? form.step3.qty_0 : null %}
{{ include('@Product/ProductPage/Panels/combinations.html.twig', {
'formDependsOnStocks': form.step3.depends_on_stock,
'productId': id_product,
'formStockQuantity': formStockQuantity,
'formStockMinimalQuantity': form.step3.minimal_quantity,
'formLowStockThreshold': form.step3.low_stock_threshold,
'formLocation': form.step3.location,
'formLowStockAlert': form.step3.low_stock_alert,
'formVirtualProduct': form.step3.virtual_product,
'asm_globally_activated': asm_globally_activated,
'formType': form.step1.type_product,
'formAdvancedStockManagement': form.step3.advanced_stock_management,
'formPackStockType': form.step3.pack_stock_type,
'formStep3': form.step3,
'formCombinations': formCombinations,
'has_combinations': has_combinations,
'max_upload_size': max_upload_size
})
}}
{% endblock %}
{# PANEL SHIPPING #}
{% block product_panel_shipping %}
<div role=\"tabpanel\" class=\"form-contenttab tab-pane\" id=\"step4\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"container-fluid\">
<div class=\"row\">
{{ include('@Product/ProductPage/Forms/form_shipping.html.twig', {
'form' : form.step4,
'asm_globally_activated': asm_globally_activated,
'isNotVirtual': form.step1.type_product.vars.value != \"2\",
'isChecked': form.step3.advanced_stock_management.vars.checked,
'warehouses': warehouses
}) }}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{# PANEL PRICING #}
{% block product_panel_pricing %}
{{ include('@Product/ProductPage/Panels/pricing.html.twig', {
'pricingForm': form.step2,
'is_multishop_context': is_multishop_context,
'productId': id_product
}) }}
{% endblock %}
{# PANEL SEO #}
{% block product_panel_seo %}
{{ include('@Product/ProductPage/Panels/seo.html.twig', {
'seoForm': form.step5,
'productId': id_product
}) }}
{% endblock %}
{# PANEL OPTIONS #}
{% block product_panel_options %}
{{ include('@Product/ProductPage/Panels/options.html.twig', {
'optionsForm': form.step6,
'productId': id_product
}) }}
{% endblock %}
{# PANEL HOOKED MODULES #}
{% block product_panel_modules %}
{% if hookcount('displayAdminProductsExtra') > 0 %}
<div role=\"tabpanel\" class=\"form-contenttab tab-pane\" id=\"hooks\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"container-fluid\">
<div class=\"row\">
{# LEFT #}
<div class=\"col-md-12\">
{% set hooks = renderhooksarray('displayAdminProductsExtra', { 'id_product': id_product }) %}
<div class=\"row module-selection\" style=\"display: none;\">
<div class=\"col-md-12 col-lg-7\">
{% for module in hooks %}
<div class=\"module-render-container module-{{ module.attributes.name }}\">
<div>
<img class=\"top-logo\" src=\"{{ module.attributes.img }}\" alt=\"{{ module.attributes.displayName }}\">
<h2 class=\"text-ellipsis module-name-grid\">
{{ module.attributes.displayName }}
</h2>
<div class=\"text-ellipsis small-text module-version\">
{{ module.attributes.version }} by {{ module.attributes.author }}
</div>
</div>
<div class=\"small no-padding\">
{{ module.attributes.description }}
</div>
</div>
{% endfor %}
</div>
<div class=\"col-md-12 col-lg-5\">
<h2>{{ 'Module to configure'|trans({}, 'Admin.Catalog.Feature') }}</h2>
<select class=\"modules-list-select\" data-toggle=\"select2\">
{% for module in hooks %}
<option value=\"module-{{ module.attributes.name }}\">{{ module.attributes.displayName }}</option>
{% endfor %}
</select>
</div>
</div>
<div class=\"module-render-container all-modules\">
<p>
<h2>{{ 'Choose a module to configure'|trans({}, 'Admin.Catalog.Feature') }}</h2>
{{ 'These modules are relative to the product page of your shop.'|trans({}, 'Admin.Catalog.Feature') }}<br />
{{ 'To manage all your modules go to the [1]Installed module page[/1]'|trans({}, 'Admin.Catalog.Feature')|replace({'[1]': '<a href=\"' ~ path(\"admin_module_manage\") ~ '\">', '[/1]': '</a>'})|raw }}
</p>
<div class=\"row\">
{% for module in hooks %}
<div class=\"col-md-12 col-lg-6 col-xl-4\">
<div class=\"module-item-wrapper-grid\">
<div class=\"module-item-heading-grid\">
<img class=\"module-logo-thumb-grid\" src=\"{{ module.attributes.img }}\" alt=\"{{ module.attributes.displayName }}\">
<h3 class=\"text-ellipsis module-name-grid\">
{{ module.attributes.displayName }}
</h3>
<div class=\"text-ellipsis small-text module-version-author-grid\">
{{ module.attributes.version }} by {{ module.attributes.author }}
</div>
</div>
<div class=\"module-quick-description-grid small no-padding\">
{{ module.attributes.description }}
</div>
<div class=\"module-container\">
<div class=\"module-quick-action-grid clearfix\">
<button class=\"modules-list-button btn btn-outline-primary pull-xs-right\" data-target=\"module-{{ module.id }}\">
{{ 'Configure'|trans({}, 'Admin.Actions') }}
</button>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% for module in hooks %}
<div
id=\"module_{{ module.id }}\"
class=\"module-render-container module-{{ module.attributes.name }}\"
style=\"display: none;\"
>
<div>
{{ module.content|raw }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}
</div>
{{ form_widget(form.id_product) }}
{{ form_widget(form._token) }}
</div>
{# FOOTER #}
{{ include('@Product/ProductPage/Blocks/footer.html.twig', {
'preview_link': preview_link,
'preview_link_deactivate': preview_link_deactivate,
'is_shop_context': is_shop_context,
'editable': editable,
'is_active': form.step1.vars.value.active,
'productId': id_product
}) }}
{% if not editable %} </fieldset> {% endif %}
</form>
{% embed '@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig' with {
'id': 'confirmation_modal',
'title': \"Warning\"|trans({}, 'Admin.Notifications.Warning'),
'closable': false,
'actions': [
{
'type': 'button',
'label': \"No\"|trans({}, 'Admin.Global'),
'class': 'btn btn-outline-secondary btn-lg cancel'
},
{
'type': 'button',
'label': \"Yes\"|trans({}, 'Admin.Global'),
'class': 'btn btn-primary btn-lg continue'
}
],
} %}
{% block content %}
<div class=\"modal-body\"></div>
{% endblock %}
{% endembed %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('themes/default/js/bundle/product/form.js') }}\"></script>
<script src=\"{{ asset('themes/new-theme/public/catalog_product.bundle.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-manufacturer.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-related.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-category-tags.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/default-category.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-combinations.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/category-tree.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/module/module_card.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/modal-confirmation.js') }}\"></script>
<script src=\"{{ asset('themes/new-theme/public/product_page.bundle.js') }}\"></script>
<script src=\"{{ asset('../js/tiny_mce/tiny_mce.js') }}\"></script>
<script src=\"{{ asset('../js/admin/tinymce.inc.js') }}\"></script>
<script src=\"{{ asset('../js/admin/tinymce_loader.js') }}\"></script>
<script>
\$(function() {
var editable = '{{ editable }}';
if (editable !== '1'){
\$('#field-disabled').find(\"select\").each(function() {
\$(this).removeClass('select2-hidden-accessible');
});
\$('#field-disabled').find(\"span.select2\").each(function() {
\$(this).hide();
});
\$('#field-disabled').find(\"a.pstaggerClosingCross\").each(function() {
\$(this).attr(\"disabled\", \"disabled\").on(\"click\", function() {
return false;
});
});
}
});
</script>
{% endblock %}
{% set js_translatable = {
\"Are you sure to disable variations ? they will all be deleted\": \"This will delete all the combinations. Do you wish to proceed?\"|trans({}, 'Admin.Catalog.Notification'),
}|merge(js_translatable) %}
{% set js_translatable = {
\"Form update success\": \"Settings updated.\"|trans({}, 'Admin.Notifications.Success'),
\"Form update errors\": \"Unable to update settings.\"|trans({}, 'Admin.Notifications.Error'),
\"Delete\": \"Delete\"|trans({}, 'Admin.Actions'),
\"ToLargeFile\": \"The file is too large. Maximum size allowed is: [1]. The file you are trying to upload is [2].\"|trans({}, 'Admin.Notifications.Error')|replace({ '[1]': '{{maxFilesize}}', '[2]': '{{filesize}}' }),
\"Drop images here\": \"Drop images here\"|trans({}, 'Admin.Catalog.Feature'),
\"or select files\": \"or select files\"|trans({}, 'Admin.Catalog.Feature'),
\"files recommandations\": \"Recommended size 800 x 800px for default theme.\"|trans({}, 'Admin.Catalog.Feature'),
\"files recommandations2\": \"JPG, GIF or PNG format.\"|trans({}, 'Admin.Catalog.Feature'),
\"Cover\": \"Cover\"|trans({}, 'Admin.Catalog.Feature'),
\"Are you sure to delete this?\": \"Are you sure to delete this?\"|trans({}, 'Admin.Notifications.Warning'),
\"This will delete the specific price. Do you wish to proceed?\": \"This will delete the specific price. Do you wish to proceed?\"|trans({}, 'Admin.Catalog.Notification'),
\"Quantities\": \"Quantities\"|trans({}, 'Admin.Catalog.Feature'),
\"Combinations\": \"Combinations\"|trans({}, 'Admin.Catalog.Feature'),
\"Virtual product\": \"Virtual product\"|trans({}, 'Admin.Catalog.Feature'),
\"tax incl.\": \"tax incl.\"|trans({}, 'Admin.Catalog.Feature'),
\"tax excl.\": \"tax excl.\"|trans({}, 'Admin.Catalog.Feature'),
\"You can't create pack product with variations. Are you sure to disable variations ? they will all be deleted.\": \"A pack of products can't have combinations.\"|trans({}, \"Admin.Catalog.Notification\") ~ ' ' ~ js_translatable['Are you sure to disable variations ? they will all be deleted'],
\"You can't create virtual product with variations. Are you sure to disable variations ? they will all be deleted.\": \"A virtual product can't have combinations.\"|trans({}, \"Admin.Catalog.Notification\") ~ ' ' ~ js_translatable['Are you sure to disable variations ? they will all be deleted'],
}|merge(js_translatable) %}
", "@PrestaShop/Admin/Product/ProductPage/product.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/product.html.twig");
}
}
/* @PrestaShop/Admin/Product/ProductPage/product.html.twig */
class __TwigTemplate_d0921d1324d7ef0e8e6533c1ef6b470323e0859da9ef85c7431ded95eec5f917___938235133 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 267
$this->parent = $this->loadTemplate("@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig", "@PrestaShop/Admin/Product/ProductPage/product.html.twig", 267);
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
return "@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Product/ProductPage/product.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Product/ProductPage/product.html.twig"));
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 284
public function block_content($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 285
echo " <div class=\"modal-body\"></div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Product/ProductPage/product.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1207 => 285, 1198 => 284, 1169 => 267, 750 => 312, 743 => 308, 739 => 307, 735 => 306, 731 => 305, 727 => 304, 723 => 303, 719 => 302, 715 => 301, 711 => 300, 707 => 299, 703 => 298, 699 => 297, 694 => 295, 690 => 294, 684 => 292, 675 => 291, 665 => 247, 655 => 239, 645 => 235, 638 => 231, 634 => 230, 631 => 229, 627 => 228, 622 => 225, 609 => 218, 605 => 217, 598 => 213, 589 => 209, 583 => 206, 576 => 204, 571 => 201, 567 => 200, 561 => 197, 557 => 196, 553 => 195, 545 => 189, 534 => 187, 530 => 186, 525 => 184, 521 => 182, 511 => 178, 502 => 174, 496 => 171, 489 => 169, 483 => 167, 479 => 166, 474 => 163, 472 => 162, 469 => 161, 461 => 154, 458 => 153, 449 => 152, 438 => 148, 436 => 147, 435 => 146, 433 => 145, 424 => 144, 413 => 140, 411 => 139, 410 => 138, 408 => 137, 399 => 136, 388 => 132, 386 => 131, 385 => 130, 384 => 129, 382 => 128, 373 => 127, 357 => 118, 355 => 117, 354 => 116, 353 => 115, 352 => 114, 351 => 113, 350 => 112, 343 => 107, 334 => 106, 323 => 102, 321 => 100, 320 => 99, 319 => 98, 318 => 97, 317 => 96, 316 => 95, 315 => 94, 314 => 93, 313 => 92, 312 => 91, 311 => 90, 310 => 89, 309 => 88, 308 => 87, 307 => 86, 306 => 85, 304 => 84, 301 => 83, 292 => 82, 281 => 78, 279 => 76, 278 => 75, 277 => 74, 276 => 73, 275 => 72, 274 => 71, 273 => 70, 272 => 69, 271 => 68, 270 => 67, 269 => 66, 268 => 65, 267 => 64, 266 => 63, 265 => 62, 263 => 61, 260 => 60, 251 => 59, 238 => 54, 229 => 53, 218 => 42, 216 => 40, 215 => 39, 214 => 38, 213 => 37, 212 => 36, 211 => 35, 209 => 34, 200 => 33, 189 => 288, 187 => 267, 182 => 264, 178 => 263, 175 => 262, 173 => 261, 172 => 260, 171 => 259, 170 => 258, 169 => 257, 168 => 256, 166 => 255, 160 => 251, 156 => 250, 152 => 248, 149 => 152, 146 => 150, 143 => 144, 140 => 142, 137 => 136, 134 => 134, 131 => 127, 128 => 125, 125 => 106, 122 => 104, 119 => 82, 116 => 80, 113 => 59, 109 => 56, 106 => 53, 98 => 47, 93 => 44, 90 => 33, 88 => 32, 84 => 31, 79 => 28, 70 => 27, 60 => 25, 58 => 354, 57 => 353, 56 => 352, 55 => 335, 53 => 333, 52 => 331, 22 => 25,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source(" {#**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% block content %}
<form name=\"form\" id=\"form\" method=\"post\" class=\"form-horizontal product-page row justify-content-md-center\" novalidate=\"novalidate\">
{% if not editable %} <fieldset disabled id=\"field-disabled\"> {% endif %}
{# PRODUCT HEADER #}
{% block product_header %}
{{ include('@Product/ProductPage/Blocks/header.html.twig', {
'formName': form.step1.name,
'formType': form.step1.type_product,
'is_multishop_context': is_multishop_context,
'languages': languages,
'help_link': help_link,
'stats_link': stats_link
})
}}
{% endblock %}
<div class=\"col-md-10\">
<div id=\"form_bubbling_errors\">
{{ form_errors(form) }}
</div>
</div>
<div id=\"form-loading\" class=\"col-xxl-10\">
{# FORM TABS CONTAINER #}
{% block product_tabs_container %}
{{ include('@Product/ProductPage/Blocks/tabs.html.twig') }}
{% endblock %}
<div id=\"form_content\" class=\"tab-content\">
{# PANEL ESSENTIALS #}
{% block product_panel_essentials %}
{% set formQuantityShortcut = form.step1.qty_0_shortcut is defined ? form.step1.qty_0_shortcut : null %}
{{ include('@Product/ProductPage/Panels/essentials.html.twig', {
'formPackItems': form.step1.inputPackItems,
'productId': id_product,
'images': form.step1.vars.value.images,
'formShortDescription': form.step1.description_short,
'formDescription': form.step1.description,
'formFeatures': form.step1.features,
'formManufacturer': form.step1.id_manufacturer,
'formRelatedProducts': form.step1.related_products,
'is_combination_active': is_combination_active,
'has_combinations': has_combinations,
'formReference': form.step6.reference,
'formQuantityShortcut': formQuantityShortcut,
'formPriceShortcut': form.step1.price_shortcut,
'formPriceShortcutTTC': form.step1.price_ttc_shortcut,
'formCategories': form.step1,
})
}}
{% endblock %}
{# PANEL COMBINATIONS #}
{% block product_panel_combinations %}
{% set formStockQuantity = form.step3.qty_0 is defined ? form.step3.qty_0 : null %}
{{ include('@Product/ProductPage/Panels/combinations.html.twig', {
'formDependsOnStocks': form.step3.depends_on_stock,
'productId': id_product,
'formStockQuantity': formStockQuantity,
'formStockMinimalQuantity': form.step3.minimal_quantity,
'formLowStockThreshold': form.step3.low_stock_threshold,
'formLocation': form.step3.location,
'formLowStockAlert': form.step3.low_stock_alert,
'formVirtualProduct': form.step3.virtual_product,
'asm_globally_activated': asm_globally_activated,
'formType': form.step1.type_product,
'formAdvancedStockManagement': form.step3.advanced_stock_management,
'formPackStockType': form.step3.pack_stock_type,
'formStep3': form.step3,
'formCombinations': formCombinations,
'has_combinations': has_combinations,
'max_upload_size': max_upload_size
})
}}
{% endblock %}
{# PANEL SHIPPING #}
{% block product_panel_shipping %}
<div role=\"tabpanel\" class=\"form-contenttab tab-pane\" id=\"step4\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"container-fluid\">
<div class=\"row\">
{{ include('@Product/ProductPage/Forms/form_shipping.html.twig', {
'form' : form.step4,
'asm_globally_activated': asm_globally_activated,
'isNotVirtual': form.step1.type_product.vars.value != \"2\",
'isChecked': form.step3.advanced_stock_management.vars.checked,
'warehouses': warehouses
}) }}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{# PANEL PRICING #}
{% block product_panel_pricing %}
{{ include('@Product/ProductPage/Panels/pricing.html.twig', {
'pricingForm': form.step2,
'is_multishop_context': is_multishop_context,
'productId': id_product
}) }}
{% endblock %}
{# PANEL SEO #}
{% block product_panel_seo %}
{{ include('@Product/ProductPage/Panels/seo.html.twig', {
'seoForm': form.step5,
'productId': id_product
}) }}
{% endblock %}
{# PANEL OPTIONS #}
{% block product_panel_options %}
{{ include('@Product/ProductPage/Panels/options.html.twig', {
'optionsForm': form.step6,
'productId': id_product
}) }}
{% endblock %}
{# PANEL HOOKED MODULES #}
{% block product_panel_modules %}
{% if hookcount('displayAdminProductsExtra') > 0 %}
<div role=\"tabpanel\" class=\"form-contenttab tab-pane\" id=\"hooks\">
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"container-fluid\">
<div class=\"row\">
{# LEFT #}
<div class=\"col-md-12\">
{% set hooks = renderhooksarray('displayAdminProductsExtra', { 'id_product': id_product }) %}
<div class=\"row module-selection\" style=\"display: none;\">
<div class=\"col-md-12 col-lg-7\">
{% for module in hooks %}
<div class=\"module-render-container module-{{ module.attributes.name }}\">
<div>
<img class=\"top-logo\" src=\"{{ module.attributes.img }}\" alt=\"{{ module.attributes.displayName }}\">
<h2 class=\"text-ellipsis module-name-grid\">
{{ module.attributes.displayName }}
</h2>
<div class=\"text-ellipsis small-text module-version\">
{{ module.attributes.version }} by {{ module.attributes.author }}
</div>
</div>
<div class=\"small no-padding\">
{{ module.attributes.description }}
</div>
</div>
{% endfor %}
</div>
<div class=\"col-md-12 col-lg-5\">
<h2>{{ 'Module to configure'|trans({}, 'Admin.Catalog.Feature') }}</h2>
<select class=\"modules-list-select\" data-toggle=\"select2\">
{% for module in hooks %}
<option value=\"module-{{ module.attributes.name }}\">{{ module.attributes.displayName }}</option>
{% endfor %}
</select>
</div>
</div>
<div class=\"module-render-container all-modules\">
<p>
<h2>{{ 'Choose a module to configure'|trans({}, 'Admin.Catalog.Feature') }}</h2>
{{ 'These modules are relative to the product page of your shop.'|trans({}, 'Admin.Catalog.Feature') }}<br />
{{ 'To manage all your modules go to the [1]Installed module page[/1]'|trans({}, 'Admin.Catalog.Feature')|replace({'[1]': '<a href=\"' ~ path(\"admin_module_manage\") ~ '\">', '[/1]': '</a>'})|raw }}
</p>
<div class=\"row\">
{% for module in hooks %}
<div class=\"col-md-12 col-lg-6 col-xl-4\">
<div class=\"module-item-wrapper-grid\">
<div class=\"module-item-heading-grid\">
<img class=\"module-logo-thumb-grid\" src=\"{{ module.attributes.img }}\" alt=\"{{ module.attributes.displayName }}\">
<h3 class=\"text-ellipsis module-name-grid\">
{{ module.attributes.displayName }}
</h3>
<div class=\"text-ellipsis small-text module-version-author-grid\">
{{ module.attributes.version }} by {{ module.attributes.author }}
</div>
</div>
<div class=\"module-quick-description-grid small no-padding\">
{{ module.attributes.description }}
</div>
<div class=\"module-container\">
<div class=\"module-quick-action-grid clearfix\">
<button class=\"modules-list-button btn btn-outline-primary pull-xs-right\" data-target=\"module-{{ module.id }}\">
{{ 'Configure'|trans({}, 'Admin.Actions') }}
</button>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% for module in hooks %}
<div
id=\"module_{{ module.id }}\"
class=\"module-render-container module-{{ module.attributes.name }}\"
style=\"display: none;\"
>
<div>
{{ module.content|raw }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}
</div>
{{ form_widget(form.id_product) }}
{{ form_widget(form._token) }}
</div>
{# FOOTER #}
{{ include('@Product/ProductPage/Blocks/footer.html.twig', {
'preview_link': preview_link,
'preview_link_deactivate': preview_link_deactivate,
'is_shop_context': is_shop_context,
'editable': editable,
'is_active': form.step1.vars.value.active,
'productId': id_product
}) }}
{% if not editable %} </fieldset> {% endif %}
</form>
{% embed '@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig' with {
'id': 'confirmation_modal',
'title': \"Warning\"|trans({}, 'Admin.Notifications.Warning'),
'closable': false,
'actions': [
{
'type': 'button',
'label': \"No\"|trans({}, 'Admin.Global'),
'class': 'btn btn-outline-secondary btn-lg cancel'
},
{
'type': 'button',
'label': \"Yes\"|trans({}, 'Admin.Global'),
'class': 'btn btn-primary btn-lg continue'
}
],
} %}
{% block content %}
<div class=\"modal-body\"></div>
{% endblock %}
{% endembed %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('themes/default/js/bundle/product/form.js') }}\"></script>
<script src=\"{{ asset('themes/new-theme/public/catalog_product.bundle.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-manufacturer.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-related.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-category-tags.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/default-category.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/product/product-combinations.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/category-tree.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/module/module_card.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/modal-confirmation.js') }}\"></script>
<script src=\"{{ asset('themes/new-theme/public/product_page.bundle.js') }}\"></script>
<script src=\"{{ asset('../js/tiny_mce/tiny_mce.js') }}\"></script>
<script src=\"{{ asset('../js/admin/tinymce.inc.js') }}\"></script>
<script src=\"{{ asset('../js/admin/tinymce_loader.js') }}\"></script>
<script>
\$(function() {
var editable = '{{ editable }}';
if (editable !== '1'){
\$('#field-disabled').find(\"select\").each(function() {
\$(this).removeClass('select2-hidden-accessible');
});
\$('#field-disabled').find(\"span.select2\").each(function() {
\$(this).hide();
});
\$('#field-disabled').find(\"a.pstaggerClosingCross\").each(function() {
\$(this).attr(\"disabled\", \"disabled\").on(\"click\", function() {
return false;
});
});
}
});
</script>
{% endblock %}
{% set js_translatable = {
\"Are you sure to disable variations ? they will all be deleted\": \"This will delete all the combinations. Do you wish to proceed?\"|trans({}, 'Admin.Catalog.Notification'),
}|merge(js_translatable) %}
{% set js_translatable = {
\"Form update success\": \"Settings updated.\"|trans({}, 'Admin.Notifications.Success'),
\"Form update errors\": \"Unable to update settings.\"|trans({}, 'Admin.Notifications.Error'),
\"Delete\": \"Delete\"|trans({}, 'Admin.Actions'),
\"ToLargeFile\": \"The file is too large. Maximum size allowed is: [1]. The file you are trying to upload is [2].\"|trans({}, 'Admin.Notifications.Error')|replace({ '[1]': '{{maxFilesize}}', '[2]': '{{filesize}}' }),
\"Drop images here\": \"Drop images here\"|trans({}, 'Admin.Catalog.Feature'),
\"or select files\": \"or select files\"|trans({}, 'Admin.Catalog.Feature'),
\"files recommandations\": \"Recommended size 800 x 800px for default theme.\"|trans({}, 'Admin.Catalog.Feature'),
\"files recommandations2\": \"JPG, GIF or PNG format.\"|trans({}, 'Admin.Catalog.Feature'),
\"Cover\": \"Cover\"|trans({}, 'Admin.Catalog.Feature'),
\"Are you sure to delete this?\": \"Are you sure to delete this?\"|trans({}, 'Admin.Notifications.Warning'),
\"This will delete the specific price. Do you wish to proceed?\": \"This will delete the specific price. Do you wish to proceed?\"|trans({}, 'Admin.Catalog.Notification'),
\"Quantities\": \"Quantities\"|trans({}, 'Admin.Catalog.Feature'),
\"Combinations\": \"Combinations\"|trans({}, 'Admin.Catalog.Feature'),
\"Virtual product\": \"Virtual product\"|trans({}, 'Admin.Catalog.Feature'),
\"tax incl.\": \"tax incl.\"|trans({}, 'Admin.Catalog.Feature'),
\"tax excl.\": \"tax excl.\"|trans({}, 'Admin.Catalog.Feature'),
\"You can't create pack product with variations. Are you sure to disable variations ? they will all be deleted.\": \"A pack of products can't have combinations.\"|trans({}, \"Admin.Catalog.Notification\") ~ ' ' ~ js_translatable['Are you sure to disable variations ? they will all be deleted'],
\"You can't create virtual product with variations. Are you sure to disable variations ? they will all be deleted.\": \"A virtual product can't have combinations.\"|trans({}, \"Admin.Catalog.Notification\") ~ ' ' ~ js_translatable['Are you sure to disable variations ? they will all be deleted'],
}|merge(js_translatable) %}
", "@PrestaShop/Admin/Product/ProductPage/product.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/product.html.twig");
}
}