<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;
/* @BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig */
class __TwigTemplate_d1b6a8b83e52a505cc082def736a493d8da53910195987f6c468c6acd9484c0d extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig"));
// line 1
$context["product"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 1, $this->source); })()), "variant", [], "any", false, false, false, 1), "product", [], "any", false, false, false, 1);
// line 2
echo "
";
// line 3
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 3, $this->source); })()), [0 => "@SyliusShop/Form/theme.html.twig"], true);
// line 4
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig", 4)->unwrap();
// line 5
echo "
";
// line 7
$context["configurator"] = false;
// line 8
echo "
";
// line 9
if ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 9, $this->source); })()), "isBundle", [], "any", false, false, false, 9) && twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 9, $this->source); })()), "productBundle", [], "any", false, false, false, 9))) {
// line 10
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 10, $this->source); })()), "productBundle", [], "any", false, false, false, 10), "productBundleItems", [], "any", false, false, false, 10));
foreach ($context['_seq'] as $context["_key"] => $context["productBundleItem"]) {
// line 11
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["productBundleItem"], "productVariant", [], "any", false, false, false, 11), "model", [], "any", false, false, false, 11)) {
// line 12
echo " ";
$context["configurator"] = true;
// line 13
echo " ";
}
// line 14
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productBundleItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 17
echo "
";
// line 18
if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 18, $this->source); })()), "variants", [], "any", false, false, false, 18), "first", [], "any", false, false, false, 18))) {
// line 19
echo "
<div id=\"availability-notifier\" ";
// line 20
if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 20, $this->source); })()), "variants", [], "any", false, false, false, 20), "first", [], "any", false, false, false, 20))) {
echo " class=\"d-none\" ";
}
echo " >
";
// line 21
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_partial_availability_notifier_create", ["productVariantId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 21, $this->source); })()), "variants", [], "any", false, false, false, 21), "first", [], "any", false, false, false, 21), "id", [], "any", false, false, false, 21), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
echo "
</div>
";
// line 24
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.before_add_to_cart", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 24, $this->source); })()), "order_item" => (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 24, $this->source); })())]);
echo "
";
// line 26
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 26, $this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sulius_product_bundle_shop_ajax_cart_add_product_bundle", ["productId" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 26, $this->source); })()), "id", [], "any", false, false, false, 26)]), "attr" => ["id" => "sylius-product-adding-to-cart", "data-product-id" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 26, $this->source); })()), "id", [], "any", false, false, false, 26), "data-js-add-to-cart" => "form", "class" => "product-bundle-adding-to-cart ui loadable form", "novalidate" => "novalidate", "data-redirect" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 26, $this->source); })()), "getRedirectRoute", [0 => "summary"], "method", false, false, false, 26))]]);
echo "
";
// line 28
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 28, $this->source); })()), 'errors');
echo "
<!-- error message -->
<div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\"
id=\"sylius-cart-validation-error\" ";
// line 32
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-validation-error");
echo "></div>
<!-- product bundle details -->
<div class=\"ui segment\" id=\"sylius-product-selecting-variant\">
<div class=\"ui red label bottom hidden sylius-validation-error\" id=\"sylius-cart-validation-error\"></div>
<div class=\"py-3\">
<h2 class=\"title-ss-regular color-purple-s mb-3\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_product_bundle.ui.products_in_bundle"), "html", null, true);
echo "</h2>
";
// line 39
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), "productBundleItems", [], "any", false, false, false, 39));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 40
echo " ";
$context["data"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 40), "data", [], "any", false, false, false, 40);
// line 41
echo " <div class=\"product-bundle-item icon-has-check pb-2\" data-itemId=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 41, $this->source); })()), "productBundleItem", [], "any", false, false, false, 41), "id", [], "any", false, false, false, 41), "html", null, true);
echo "\" data-variantId=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 41, $this->source); })()), "productVariant", [], "any", false, false, false, 41), "id", [], "any", false, false, false, 41), "html", null, true);
echo "\" data-variantName=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 41, $this->source); })()), "productVariant", [], "any", false, false, false, 41), "product", [], "any", false, false, false, 41), "name", [], "any", false, false, false, 41), "html", null, true);
echo "\">
<h3 class=\"font-seize mb-0\">";
// line 42
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 42, $this->source); })()), "quantity", [], "any", false, false, false, 42), "html", null, true);
echo " x ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 42, $this->source); })()), "productVariant", [], "any", false, false, false, 42), "name", [], "any", false, false, false, 42), "html", null, true);
echo "</h3>
";
// line 44
if (twig_get_attribute($this->env, $this->source, $context["item"], "productVariant", [], "any", true, true, false, 44)) {
// line 45
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, $context["item"], "productVariant", [], "any", false, false, false, 45), 'row');
echo "
";
}
// line 47
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " </div>
</div>
<!-- end product bundle details -->
<!-- configurator -->
";
// line 54
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 54, $this->source); })())) {
// line 55
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/Configurator/_configurator.html.twig", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig", 55)->display($context);
// line 56
echo " ";
}
// line 57
echo " <!-- end configurator -->
<!-- quantity -->
<div class=\"art-qte px-0 fiche-art-qty\">
<div class=\"contenu-qte-art qte-article-fiche\">
<div class=\"qte-panier sylius-quantity d-flex no-gutters align-items-center\">
<a role=\"button\" class=\"qte-moins-art col-auto\" title=\"";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.decrease_quantity"), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/moins.svg"), "html", null, true);
echo "\" class=\"d-block\" alt=\"-\"></a>
<div class=\"d-flex no-gutters col align-items-center px-2 bg-white\">
<div class=\"col-auto mb-0 label-qte\">";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.quantity"), "html", null, true);
echo " :</div>
<div class=\"col form-group-nomarg pl-1\"> ";
// line 66
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 66, $this->source); })()), "cartItem", [], "any", false, false, false, 66), "quantity", [], "any", false, false, false, 66), 'row');
echo "</div>
</div>
<a role=\"button\" class=\"qte-plus-art col-auto\" title=\"";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.increase_quantity"), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/plus.svg"), "html", null, true);
echo "\" class=\"d-block\" alt=\"+\"></a>
</div>
</div>
</div>
<!-- end quantity -->
<!-- price -->
<div class=\"col-sm pl-2 pt-2 pt-sm-0 art-price\">
<div class=\"prix-art-panier text-sm-right text-left pt-sm-0 pt-3\">
";
// line 76
$this->loadTemplate("@SyliusShop/Product/Show/_priceWidget.html.twig", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig", 76)->display($context);
// line 77
echo " </div>
</div>
<!-- end price -->
<!-- configurator -->
";
// line 82
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 82, $this->source); })())) {
// line 83
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/Configurator/_wrap_configurator.html.twig", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig", 83)->display($context);
// line 84
echo " ";
}
// line 85
echo " <!-- end configurator -->
";
// line 87
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.show.add_to_cart_form", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 87, $this->source); })()), "order_item" => (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 87, $this->source); })())]);
echo "
<div class=\"widgets-not-valid\" style=\"visibility: hidden;\">
";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.configurator.error.widgets_not_valid"), "html", null, true);
echo "
</div>
<!-- add to cart button -->
<div ";
// line 92
if ((array_key_exists("configurator", $context) && ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 92, $this->source); })()) == true))) {
echo "class=\"btn-panier-content mt-2 pt-3 pb-2 d-none\"";
} else {
echo "class=\"btn-panier-content mt-2 pt-3 pb-2\"";
}
echo ">
<button type=\"submit\" id=\"add-to-cart-btn\" class=\"btn-panier btn-add-panier transition-bgcolor d-none\" ";
// line 93
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add-to-cart-button");
echo "><i class=\"cart icon\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.add_to_cart"), "html", null, true);
echo "</button>
</div>
<!-- end add to cart button -->
";
// line 96
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 96, $this->source); })()), "_token", [], "any", false, false, false, 96), 'row');
echo "
";
// line 97
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 97, $this->source); })()), 'form_end', ["render_rest" => false]);
echo "
<!-- shipping info -->
<div class=\"etat-article text-left pt-2 pb-1\">
<div class=\"py-1\">";
// line 101
$context["missingAmountFranco"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
// line 102
echo " ";
if ((isset($context["missingAmountFranco"]) || array_key_exists("missingAmountFranco", $context) ? $context["missingAmountFranco"] : (function () { throw new RuntimeError('Variable "missingAmountFranco" does not exist.', 102, $this->source); })())) {
// line 103
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.cart.missing_x_for_franco"), "html", null, true);
echo " <span class=\"color-pink-s\">";
echo twig_call_macro($macros["money"], "macro_convertAndFormat", [(isset($context["missingAmountFranco"]) || array_key_exists("missingAmountFranco", $context) ? $context["missingAmountFranco"] : (function () { throw new RuntimeError('Variable "missingAmountFranco" does not exist.', 103, $this->source); })())], 103, $context, $this->getSourceContext());
echo "</span> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.cart.before_free_shipping"), "html", null, true);
echo "
";
}
// line 105
echo " </div>
";
// line 106
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 106, $this->source); })()), "channel", [], "any", false, false, false, 106), "displayDeliveryDate", [], "any", false, false, false, 106)) {
// line 107
echo " ";
$context["deliveryDate"] = $this->extensions['App\Twig\Extensions\ShippingDelay\CalculateShippingDelayExtension']->getDeliveryDate(null);
echo " ";
// line 108
echo " ";
$context["dispatchDateEstimated"] = $this->extensions['App\Twig\Extensions\ShippingDelay\CalculateShippingDelayExtension']->getDispatchDateWithMargin(null);
echo " ";
// line 109
echo " ";
$context["deliveryDateEstimated"] = $this->extensions['App\Twig\Extensions\ShippingDelay\CalculateShippingDelayExtension']->getDeliveryDateWithMargin(null);
echo " ";
// line 110
echo "
";
// line 111
if ( !(null === (isset($context["deliveryDate"]) || array_key_exists("deliveryDate", $context) ? $context["deliveryDate"] : (function () { throw new RuntimeError('Variable "deliveryDate" does not exist.', 111, $this->source); })()))) {
// line 112
echo " <div class=\"py-1\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.by_ordering_today"), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.shipping.date_estimated")), "html", null, true);
echo "<span class=\"color-pink-s\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["deliveryDate"]) || array_key_exists("deliveryDate", $context) ? $context["deliveryDate"] : (function () { throw new RuntimeError('Variable "deliveryDate" does not exist.', 112, $this->source); })()), "d/m/Y"), "html", null, true);
echo " </span></div>
";
}
// line 114
echo " ";
}
// line 115
echo " </div>
<!-- end shipping info -->
<!-- steps of shipping -->
";
// line 119
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 119, $this->source); })()), "channel", [], "any", false, false, false, 119), "displayDeliveryDate", [], "any", false, false, false, 119)) {
// line 120
echo " <div class=\"step-shipping pt-2 pb-4\">
<div class=\"row no-gutters\">
<div class=\"col\">
<div class=\"text-center\">
<div class=\"position-relative has-after-step\"><img src=\"";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/step_livr1.svg"), "html", null, true);
echo "\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
<div class=\"font-italic px-2 font-step\">
";
// line 126
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_date_format_filter($this->env, "now", "m/d/Y"), "medium", "medium", "dd MMMM", null, "gregorian", "fr"), "html", null, true);
echo "
<span class=\"d-block line-height-normal\">";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.passed_order"), "html", null, true);
echo "</span>
</div>
</div>
</div>
<div class=\"col\">
<div class=\"text-center\">
<div class=\"position-relative has-after-step\"><img src=\"";
// line 134
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/step_livr2.svg"), "html", null, true);
echo "\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
<div class=\"font-italic px-2 font-step\">
";
// line 136
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dispatchDateEstimated"]) || array_key_exists("dispatchDateEstimated", $context) ? $context["dispatchDateEstimated"] : (function () { throw new RuntimeError('Variable "dispatchDateEstimated" does not exist.', 136, $this->source); })()), "before", [], "array", false, false, false, 136), "m/d/Y"), "medium", "medium", "dd MMMM", null, "gregorian", "fr"), "html", null, true);
echo " -
";
// line 137
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dispatchDateEstimated"]) || array_key_exists("dispatchDateEstimated", $context) ? $context["dispatchDateEstimated"] : (function () { throw new RuntimeError('Variable "dispatchDateEstimated" does not exist.', 137, $this->source); })()), "after", [], "array", false, false, false, 137), "m/d/Y"), "medium", "medium", "dd MMMM", null, "gregorian", "fr"), "html", null, true);
echo "
<span class=\"d-block line-height-normal\">";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.order_sent"), "html", null, true);
echo "</span>
</div>
</div>
</div>
<div class=\"col\">
<div class=\"text-center\">
<div class=\"position-relative\"><img src=\"";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/step_livr3.svg"), "html", null, true);
echo "\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
<div class=\"font-italic px-2 font-step\">
";
// line 146
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["deliveryDateEstimated"]) || array_key_exists("deliveryDateEstimated", $context) ? $context["deliveryDateEstimated"] : (function () { throw new RuntimeError('Variable "deliveryDateEstimated" does not exist.', 146, $this->source); })()), "before", [], "array", false, false, false, 146), "m/d/Y"), "medium", "medium", "dd MMMM", null, "gregorian", "fr"), "html", null, true);
echo " -
";
// line 147
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["deliveryDateEstimated"]) || array_key_exists("deliveryDateEstimated", $context) ? $context["deliveryDateEstimated"] : (function () { throw new RuntimeError('Variable "deliveryDateEstimated" does not exist.', 147, $this->source); })()), "after", [], "array", false, false, false, 147), "m/d/Y"), "medium", "medium", "dd MMMM", null, "gregorian", "fr"), "html", null, true);
echo "
<span class=\"d-block line-height-normal\">";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.delivered"), "html", null, true);
echo " !</span>
</div>
</div>
</div>
</div>
</div>
";
}
// line 155
echo " <!-- end steps of shipping -->
<!-- begin error modal -->
";
// line 158
$this->loadTemplate("@SyliusShop/Product/Show/_popupQuantityError.html.twig", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig", 158)->display(twig_array_merge($context, ["item" => (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 158, $this->source); })())]));
// line 159
echo " <!-- end error modal -->
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 417 => 159, 415 => 158, 410 => 155, 400 => 148, 396 => 147, 392 => 146, 387 => 144, 378 => 138, 374 => 137, 370 => 136, 365 => 134, 355 => 127, 351 => 126, 346 => 124, 340 => 120, 338 => 119, 332 => 115, 329 => 114, 319 => 112, 317 => 111, 314 => 110, 310 => 109, 306 => 108, 302 => 107, 300 => 106, 297 => 105, 287 => 103, 284 => 102, 282 => 101, 275 => 97, 271 => 96, 263 => 93, 255 => 92, 249 => 89, 244 => 87, 240 => 85, 237 => 84, 234 => 83, 232 => 82, 225 => 77, 223 => 76, 210 => 68, 205 => 66, 201 => 65, 194 => 63, 186 => 57, 183 => 56, 180 => 55, 178 => 54, 171 => 49, 164 => 47, 158 => 45, 156 => 44, 149 => 42, 140 => 41, 137 => 40, 133 => 39, 129 => 38, 120 => 32, 113 => 28, 108 => 26, 103 => 24, 97 => 21, 91 => 20, 88 => 19, 86 => 18, 83 => 17, 76 => 14, 73 => 13, 70 => 12, 67 => 11, 62 => 10, 60 => 9, 57 => 8, 55 => 7, 52 => 5, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set product = order_item.variant.product %}
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{# INIT CONFIGURATOR #}
{% set configurator = false %}
{% if product.isBundle and product.productBundle %}
{% for productBundleItem in product.productBundle.productBundleItems %}
{% if productBundleItem.productVariant.model %}
{% set configurator = true %}
{% endif %}
{% endfor %}
{% endif %}
{# END CONFIGURATOR #}
{% if sylius_inventory_is_available(product.variants.first) %}
<div id=\"availability-notifier\" {% if sylius_inventory_is_available(product.variants.first) %} class=\"d-none\" {% endif %} >
{{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
</div>
{{ sonata_block_render_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}
{{ form_start(form, {'action': path('bitbag_sulius_product_bundle_shop_ajax_cart_add_product_bundle', {'productId': product.id}), 'attr': {'id': 'sylius-product-adding-to-cart', 'data-product-id': product.id, 'data-js-add-to-cart': 'form', 'class': 'product-bundle-adding-to-cart ui loadable form', 'novalidate': 'novalidate', 'data-redirect': path(configuration.getRedirectRoute('summary'))}}) }}
{{ form_errors(form) }}
<!-- error message -->
<div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\"
id=\"sylius-cart-validation-error\" {{ sylius_test_html_attribute('cart-validation-error') }}></div>
<!-- product bundle details -->
<div class=\"ui segment\" id=\"sylius-product-selecting-variant\">
<div class=\"ui red label bottom hidden sylius-validation-error\" id=\"sylius-cart-validation-error\"></div>
<div class=\"py-3\">
<h2 class=\"title-ss-regular color-purple-s mb-3\">{{ 'bitbag_sylius_product_bundle.ui.products_in_bundle'|trans }}</h2>
{% for item in form.productBundleItems %}
{% set data = item.vars.data %}
<div class=\"product-bundle-item icon-has-check pb-2\" data-itemId=\"{{ data.productBundleItem.id }}\" data-variantId=\"{{ data.productVariant.id }}\" data-variantName=\"{{ data.productVariant.product.name }}\">
<h3 class=\"font-seize mb-0\">{{ data.quantity }} x {{ data.productVariant.name }}</h3>
{% if item.productVariant is defined %}
{{ form_row(item.productVariant) }}
{% endif %}
</div>
{% endfor %}
</div>
</div>
<!-- end product bundle details -->
<!-- configurator -->
{% if configurator %}
{% include '@SyliusShop/Product/Show/Configurator/_configurator.html.twig' %}
{% endif %}
<!-- end configurator -->
<!-- quantity -->
<div class=\"art-qte px-0 fiche-art-qty\">
<div class=\"contenu-qte-art qte-article-fiche\">
<div class=\"qte-panier sylius-quantity d-flex no-gutters align-items-center\">
<a role=\"button\" class=\"qte-moins-art col-auto\" title=\"{{'app.product.decrease_quantity'|trans}}\"><img src=\"{{asset('images/moins.svg')}}\" class=\"d-block\" alt=\"-\"></a>
<div class=\"d-flex no-gutters col align-items-center px-2 bg-white\">
<div class=\"col-auto mb-0 label-qte\">{{ 'sylius.ui.quantity' |trans }} :</div>
<div class=\"col form-group-nomarg pl-1\"> {{ form_row(form.cartItem.quantity) }}</div>
</div>
<a role=\"button\" class=\"qte-plus-art col-auto\" title=\"{{'app.product.increase_quantity'|trans}}\"><img src=\"{{asset('images/plus.svg')}}\" class=\"d-block\" alt=\"+\"></a>
</div>
</div>
</div>
<!-- end quantity -->
<!-- price -->
<div class=\"col-sm pl-2 pt-2 pt-sm-0 art-price\">
<div class=\"prix-art-panier text-sm-right text-left pt-sm-0 pt-3\">
{% include '@SyliusShop/Product/Show/_priceWidget.html.twig' %}
</div>
</div>
<!-- end price -->
<!-- configurator -->
{% if configurator %}
{% include '@SyliusShop/Product/Show/Configurator/_wrap_configurator.html.twig' %}
{% endif %}
<!-- end configurator -->
{{ sonata_block_render_event('sylius.shop.product.show.add_to_cart_form', {'product': product, 'order_item': order_item}) }}
<div class=\"widgets-not-valid\" style=\"visibility: hidden;\">
{{ \"app.configurator.error.widgets_not_valid\"|trans }}
</div>
<!-- add to cart button -->
<div {% if configurator is defined and configurator == true %}class=\"btn-panier-content mt-2 pt-3 pb-2 d-none\"{% else %}class=\"btn-panier-content mt-2 pt-3 pb-2\"{% endif %}>
<button type=\"submit\" id=\"add-to-cart-btn\" class=\"btn-panier btn-add-panier transition-bgcolor d-none\" {{ sylius_test_html_attribute('add-to-cart-button') }}><i class=\"cart icon\"></i> {{ 'sylius.ui.add_to_cart'|trans }}</button>
</div>
<!-- end add to cart button -->
{{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
<!-- shipping info -->
<div class=\"etat-article text-left pt-2 pb-1\">
<div class=\"py-1\">{% set missingAmountFranco = app_get_missing_franco_port() %}
{% if missingAmountFranco %}
{{'app.cart.missing_x_for_franco'|trans}} <span class=\"color-pink-s\">{{ money.convertAndFormat(missingAmountFranco) }}</span> {{'app.cart.before_free_shipping'|trans}}
{% endif %}
</div>
{% if sylius.channel.displayDeliveryDate %}
{% set deliveryDate = app_get_delivery_date(null) %} {# estimation date de livraison #}
{% set dispatchDateEstimated = app_get_dispatch_date_with_margin(null) %} {# estimation fourchette date d'envoi #}
{% set deliveryDateEstimated = app_get_delivery_date_with_margin(null) %} {# estimation fourchette date de livraison #}
{% if deliveryDate is not null %}
<div class=\"py-1\">{{'app.product.by_ordering_today'|trans}}, {{'app.shipping.date_estimated'|trans|lower }}<span class=\"color-pink-s\">{{ deliveryDate|date(\"d/m/Y\") }} </span></div>
{% endif %}
{% endif %}
</div>
<!-- end shipping info -->
<!-- steps of shipping -->
{% if sylius.channel.displayDeliveryDate %}
<div class=\"step-shipping pt-2 pb-4\">
<div class=\"row no-gutters\">
<div class=\"col\">
<div class=\"text-center\">
<div class=\"position-relative has-after-step\"><img src=\"{{asset('images/step_livr1.svg')}}\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
<div class=\"font-italic px-2 font-step\">
{{ \"now\"|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
<span class=\"d-block line-height-normal\">{{'app.product.passed_order'|trans}}</span>
</div>
</div>
</div>
<div class=\"col\">
<div class=\"text-center\">
<div class=\"position-relative has-after-step\"><img src=\"{{asset('images/step_livr2.svg')}}\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
<div class=\"font-italic px-2 font-step\">
{{ dispatchDateEstimated['before']|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }} -
{{ dispatchDateEstimated['after']|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
<span class=\"d-block line-height-normal\">{{'app.product.order_sent'|trans}}</span>
</div>
</div>
</div>
<div class=\"col\">
<div class=\"text-center\">
<div class=\"position-relative\"><img src=\"{{asset('images/step_livr3.svg')}}\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
<div class=\"font-italic px-2 font-step\">
{{ deliveryDateEstimated['before']|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }} -
{{ deliveryDateEstimated['after']|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
<span class=\"d-block line-height-normal\">{{'app.product.delivered'|trans}} !</span>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<!-- end steps of shipping -->
<!-- begin error modal -->
{% include '@SyliusShop/Product/Show/_popupQuantityError.html.twig' with {'item': order_item} %}
<!-- end error modal -->
{% endif %}
", "@BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/BitBagSyliusProductBundlePlugin/Shop/Product/_addProductBundleToCart.html.twig");
}
}