<?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;
/* @SyliusShop/Product/Box/_content.html.twig */
class __TwigTemplate_d672d9e3d08768ee560ad839c5e05812 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/Box/_content.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/Box/_content.html.twig"));
// line 1
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/Product/Box/_content.html.twig", 1)->unwrap();
// line 2
$context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 2, $this->source); })()));
// line 3
$context["productIsInWishlist"] = false;
// line 4
if (( !array_key_exists("wishlist", $context) || (null === (isset($context["wishlist"]) || array_key_exists("wishlist", $context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.', 4, $this->source); })())))) {
// line 5
echo " ";
$context["wishlist"] = $this->extensions['App\Twig\Extensions\Wishlist\WishlistExtension']->getWishlist();
}
// line 7
if ((array_key_exists("wishlist", $context) && (isset($context["wishlist"]) || array_key_exists("wishlist", $context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.', 7, $this->source); })()))) {
// line 8
echo " ";
$context["productIsInWishlist"] = twig_get_attribute($this->env, $this->source, (isset($context["wishlist"]) || array_key_exists("wishlist", $context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.', 8, $this->source); })()), "hasProduct", [0 => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 8, $this->source); })())], "method", false, false, false, 8);
}
// line 10
if ( !(null === (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 10, $this->source); })()))) {
// line 11
echo " ";
$context["channelpricing"] = twig_get_attribute($this->env, $this->source, (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 11, $this->source); })()), "getChannelPricingForChannel", [0 => 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.', 11, $this->source); })()), "channel", [], "any", false, false, false, 11)], "method", false, false, false, 11);
// line 12
echo " ";
$context["percentage"] = twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 12, $this->source); })()), "getDiscountedPercentage", [], "any", false, false, false, 12);
}
// line 14
$context["stockAvailable"] = false;
// line 15
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 15, $this->source); })()), "variants", [], "any", false, false, false, 15));
foreach ($context['_seq'] as $context["_key"] => $context["productVariant"]) {
// line 16
echo " ";
if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()($context["productVariant"])) {
// line 17
echo " ";
$context["stockAvailable"] = true;
// line 18
echo " ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productVariant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo "<article class=\"articleBit h-100\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product");
echo ">
<div class=\"bg-art-w h-100 d-flex flex-column\">
<div class=\"articleBit-ima\">
<a href=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => 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.', 23, $this->source); })()), "slug", [], "any", false, false, false, 23), "_locale" => 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.', 23, $this->source); })()), "translation", [], "any", false, false, false, 23), "locale", [], "any", false, false, false, 23)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, 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.', 23, $this->source); })()), "name", [], "any", false, false, false, 23), "html", null, true);
echo "\">
";
// line 24
$this->loadTemplate("@SyliusShop/Product/_mainImage.html.twig", "@SyliusShop/Product/Box/_content.html.twig", 24)->display(twig_array_merge($context, ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 24, $this->source); })()), "class" => "card-img-top"]));
// line 25
echo " </a>
";
// line 26
if (( !(null === 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); })()), "callouts", [], "any", false, false, false, 26)) && (twig_length_filter($this->env, 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); })()), "callouts", [], "any", false, false, false, 26)) > 0))) {
// line 27
echo " ";
$this->loadTemplate("@SetonoSyliusCalloutPlugin/Shop/Product/Callout/_callouts.html.twig", "@SyliusShop/Product/Box/_content.html.twig", 27)->display(twig_array_merge($context, ["callouts" => $this->extensions['Setono\SyliusCalloutPlugin\Twig\Extension\CalloutExtension']->filterCallouts(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.', 27, $this->source); })()), "callouts", [], "any", false, false, false, 27)), "spot" => "box"]));
// line 28
echo " ";
}
// line 29
echo " ";
if ( !(null === (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 29, $this->source); })()))) {
// line 30
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 30, $this->source); })()), "discountedPrice", [], "any", false, false, false, 30) && (twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 30, $this->source); })()), "discountedPrice", [], "any", false, false, false, 30) != twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 30, $this->source); })()), "price", [], "any", false, false, false, 30))) && $this->extensions['App\Twig\Extensions\Channel\ChannelPricingExtension']->checkPromotionPrice((isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 30, $this->source); })())))) {
// line 31
echo " <div class=\"picto-promo\"><span data-js-product-percentage>-";
echo twig_escape_filter($this->env, twig_round((isset($context["percentage"]) || array_key_exists("percentage", $context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.', 31, $this->source); })()), 0), "html", null, true);
echo "%</span></div>
";
}
// line 33
echo " ";
}
// line 34
echo "
";
// line 35
if ((array_key_exists("product", $context) && 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.', 35, $this->source); })()), "brand", [], "any", false, false, false, 35))) {
// line 36
echo " ";
if ((twig_first($this->env, 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.', 36, $this->source); })()), "brand", [], "any", false, false, false, 36), "images", [], "any", false, false, false, 36)) != false)) {
// line 37
echo " ";
$context["path"] = $this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_first($this->env, 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.', 37, $this->source); })()), "brand", [], "any", false, false, false, 37), "images", [], "any", false, false, false, 37)), "path", [], "any", false, false, false, 37), ((array_key_exists("filter", $context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter", $context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.', 37, $this->source); })()), "sylius_shop_product_original")) : ("sylius_shop_product_original")));
// line 38
echo " <div class=\"brand-logo\"><img src=\"";
echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 38, $this->source); })()), "html", null, true);
echo "\" ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
echo " class=\"\" /></div>
";
}
// line 40
echo " ";
}
// line 41
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => 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.', 41, $this->source); })()), "slug", [], "any", false, false, false, 41), "_locale" => 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.', 41, $this->source); })()), "translation", [], "any", false, false, false, 41), "locale", [], "any", false, false, false, 41)]), "html", null, true);
echo "\" class=\"btn-details-hover\" title=\"\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.details"), "html", null, true);
echo "</span></a>
";
// line 43
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "user", [], "any", false, false, false, 43)) {
// line 44
echo " <div class=\"eti-fav categ-fav\" data-id=\"";
echo twig_escape_filter($this->env, 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.', 44, $this->source); })()), "id", [], "any", false, false, false, 44), "html", null, true);
echo "\">
";
// line 46
echo " <a data-remove-url=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_wishlist_remove_product", ["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.', 46, $this->source); })()), "id", [], "any", false, false, false, 46)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.add_to_wishlist"), "html", null, true);
echo "\" ";
if ((isset($context["productIsInWishlist"]) || array_key_exists("productIsInWishlist", $context) ? $context["productIsInWishlist"] : (function () { throw new RuntimeError('Variable "productIsInWishlist" does not exist.', 46, $this->source); })())) {
echo "class=\"addfav toggle-fav myfavoris\"";
} else {
echo "class=\"addfav toggle-fav addfav-link\"";
}
echo " data-option=\"";
echo twig_escape_filter($this->env, 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.', 46, $this->source); })()), "id", [], "any", false, false, false, 46), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_wishlist_add_product", ["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.', 46, $this->source); })()), "id", [], "any", false, false, false, 46)]), "html", null, true);
echo "\"></a>
<span class=\"c1-a\"><img src=\"";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/icon_dejafav.svg", "bootstrapTheme"), "html", null, true);
echo "\"></span>
<span class=\"c2-a\"><img src=\"";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/icon_dejafav.svg", "bootstrapTheme"), "html", null, true);
echo "\"></span>
</div>
";
}
// line 51
echo "
</div>
<div class=\"flex-grow-l position-relative_ d-flex flex-column \">
<div class=\"max-art flex-grow-l d-flex flex-column justify-content-between \">
<h3 class=\"articleBit-lib\" ";
// line 56
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-name", 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.', 56, $this->source); })()), "name", [], "any", false, false, false, 56));
echo ">
<a href=\"";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => 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.', 57, $this->source); })()), "slug", [], "any", false, false, false, 57), "_locale" => 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.', 57, $this->source); })()), "translation", [], "any", false, false, false, 57), "locale", [], "any", false, false, false, 57)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, 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.', 57, $this->source); })()), "name", [], "any", false, false, false, 57), "html", null, true);
echo "</a>
</h3>
<div class=\"articleBit-desc pt-1\">
Ref: ";
// line 60
echo twig_escape_filter($this->env, 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.', 60, $this->source); })()), "code", [], "any", false, false, false, 60), "html", null, true);
echo "
</div>
";
// line 62
if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()((isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 62, $this->source); })()))) {
// line 63
echo " ";
$context["stock_product"] = (twig_get_attribute($this->env, $this->source, (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 63, $this->source); })()), "OnHand", [], "any", false, false, false, 63) - twig_get_attribute($this->env, $this->source, (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 63, $this->source); })()), "OnHold", [], "any", false, false, false, 63));
// line 64
echo " <div class=\"color-primary-s pt-1 text-lowercase font-14\">
";
// line 65
echo twig_escape_filter($this->env, (isset($context["stock_product"]) || array_key_exists("stock_product", $context) ? $context["stock_product"] : (function () { throw new RuntimeError('Variable "stock_product" does not exist.', 65, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.in_stock"), "html", null, true);
echo "
</div>
";
} else {
// line 69
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 69, $this->source); })()), "user", [], "any", false, false, false, 69)) {
// line 70
echo " <div class=\"text-danger pt-1 \">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.out_of_stock"), "html", null, true);
echo "</div>
";
}
// line 72
echo " ";
}
// line 73
echo " </div>
<div class=\"row no-gutters align-items-center pt-2 flex-md-nowrap\">
<div class=\"articleBit-price col mb-md-0 d-block\">
";
// line 76
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 76, $this->source); })()), "user", [], "any", false, false, false, 76)) {
// line 77
echo " ";
if ( !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.', 77, $this->source); })()), "variants", [], "any", false, false, false, 77), "empty", [], "method", false, false, false, 77)) {
// line 78
echo " <div class=\"price-old\" data-js-product-original-price ";
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-price", twig_call_macro($macros["money"], "macro_calculatePrice", [$this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 78, $this->source); })()))], 78, $context, $this->getSourceContext()));
echo ">
";
// line 79
if (((twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 79, $this->source); })()), "discountedPrice", [], "any", false, false, false, 79) && (twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 79, $this->source); })()), "discountedPrice", [], "any", false, false, false, 79) != twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 79, $this->source); })()), "price", [], "any", false, false, false, 79))) && $this->extensions['App\Twig\Extensions\Channel\ChannelPricingExtension']->checkPromotionPrice((isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 79, $this->source); })())))) {
// line 80
echo " ";
echo twig_call_macro($macros["money"], "macro_convertAndFormat", [twig_get_attribute($this->env, $this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing", $context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.', 80, $this->source); })()), "price", [], "any", false, false, false, 80)], 80, $context, $this->getSourceContext());
echo " <small>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.incl_tax"), "html", null, true);
echo "</small>
";
}
// line 82
echo " </div>
<strong class=\"price-promo\" ";
// line 83
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-price");
echo "> ";
echo twig_call_macro($macros["money"], "macro_calculatePrice", [$this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 83, $this->source); })()))], 83, $context, $this->getSourceContext());
echo " <small>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.incl_tax"), "html", null, true);
echo "</small></strong>
";
}
// line 86
echo " ";
}
// line 87
echo " </div>
";
// line 88
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 88, $this->source); })()), "user", [], "any", false, false, false, 88)) {
// line 89
echo " <div class=\"col-lg-auto pt-lg-0 pt-3 col-12\">
";
// line 90
if ( !(null === (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 90, $this->source); })()))) {
// line 91
echo " ";
if ( !$this->env->getFunction('sylius_inventory_is_available')->getCallable()((isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 91, $this->source); })()))) {
// line 92
echo "
<div class=\"text-danger\">";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.out_of_stock"), "html", null, true);
echo "</div>
";
} else {
// line 96
echo " ";
// line 97
echo " ";
$this->loadTemplate("@SyliusShop/Product/Show/_addToCartBox.html.twig", "@SyliusShop/Product/Box/_content.html.twig", 97)->display(twig_array_merge($context, ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 97, $this->source); })())]));
// line 98
echo " ";
// line 99
echo " ";
}
// line 100
echo " ";
}
// line 101
echo " </div>
";
}
// line 103
echo " </div>
</div>
</div>
</article>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/Box/_content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 327 => 103, 323 => 101, 320 => 100, 317 => 99, 315 => 98, 312 => 97, 310 => 96, 304 => 93, 301 => 92, 298 => 91, 296 => 90, 293 => 89, 291 => 88, 288 => 87, 285 => 86, 275 => 83, 272 => 82, 264 => 80, 262 => 79, 257 => 78, 254 => 77, 252 => 76, 247 => 73, 244 => 72, 238 => 70, 235 => 69, 226 => 65, 223 => 64, 220 => 63, 218 => 62, 213 => 60, 205 => 57, 201 => 56, 194 => 51, 188 => 48, 184 => 47, 167 => 46, 162 => 44, 160 => 43, 152 => 41, 149 => 40, 141 => 38, 138 => 37, 135 => 36, 133 => 35, 130 => 34, 127 => 33, 121 => 31, 118 => 30, 115 => 29, 112 => 28, 109 => 27, 107 => 26, 104 => 25, 102 => 24, 96 => 23, 89 => 20, 82 => 18, 79 => 17, 76 => 16, 72 => 15, 70 => 14, 66 => 12, 63 => 11, 61 => 10, 57 => 8, 55 => 7, 51 => 5, 49 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% set variant = product|sylius_resolve_variant %}
{% set productIsInWishlist = false %}
{% if wishlist is not defined or wishlist is null %}
{% set wishlist = app_get_wishlist() %}
{% endif %}
{% if wishlist is defined and wishlist %}
{% set productIsInWishlist = wishlist.hasProduct(product) %}
{% endif %}
{% if variant is not null %}
{% set channelpricing = variant.getChannelPricingForChannel(sylius.channel) %}
{% set percentage = channelpricing.getDiscountedPercentage %}
{% endif %}
{% set stockAvailable = false %}
{% for productVariant in product.variants %}
{% if sylius_inventory_is_available(productVariant) %}
{% set stockAvailable = true %}
{% endif %}
{% endfor %}
<article class=\"articleBit h-100\" {{ sylius_test_html_attribute('product') }}>
<div class=\"bg-art-w h-100 d-flex flex-column\">
<div class=\"articleBit-ima\">
<a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\" title=\"{{ product.name }}\">
{% include '@SyliusShop/Product/_mainImage.html.twig' with {'product': product, 'class': 'card-img-top'} %}
</a>
{% if product.callouts is not null and product.callouts|length > 0 %}
{% include \"@SetonoSyliusCalloutPlugin/Shop/Product/Callout/_callouts.html.twig\" with {'callouts' : product.callouts|setono_callouts, 'spot': \"box\"} %}
{% endif %}
{% if variant is not null %}
{% if channelpricing.discountedPrice and channelpricing.discountedPrice != channelpricing.price and channelpricing|app_check_promotion_price %}
<div class=\"picto-promo\"><span data-js-product-percentage>-{{ percentage|round(0) }}%</span></div>
{% endif %}
{% endif %}
{% if product is defined and product.brand %}
{% if product.brand.images|first != false %}
{% set path = product.brand.images|first.path|imagine_filter(filter|default('sylius_shop_product_original')) %}
<div class=\"brand-logo\"><img src=\"{{ path }}\" {{ sylius_test_html_attribute('main-image') }} class=\"\" /></div>
{% endif %}
{% endif %}
<a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\" class=\"btn-details-hover\" title=\"\"><span>{{'sylius.ui.details'|trans}}</span></a>
{% if app.user %}
<div class=\"eti-fav categ-fav\" data-id=\"{{product.id}}\">
{#<a data-remove-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_remove_product_variant', { wishlistId: wishlist.id, variantId: variant.id}) }}\" title=\"{{ 'app.ui.add_to_wishlist'|trans }}\" {% if productIsInWishlist %}class=\"addfav toggle-fav myfavoris\"{% else %}class=\"addfav toggle-fav addfav-link\"{% endif %} data-option=\"{{ product.id }}\" data-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_add_product', {'productId': product.id}) }}\"></a>#}
<a data-remove-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_remove_product', {'productId': product.id}) }}\" title=\"{{ 'app.ui.add_to_wishlist'|trans }}\" {% if productIsInWishlist %}class=\"addfav toggle-fav myfavoris\"{% else %}class=\"addfav toggle-fav addfav-link\"{% endif %} data-option=\"{{ product.id }}\" data-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_add_product', {'productId': product.id}) }}\"></a>
<span class=\"c1-a\"><img src=\"{{ asset('images/icon_dejafav.svg', 'bootstrapTheme') }}\"></span>
<span class=\"c2-a\"><img src=\"{{ asset('images/icon_dejafav.svg', 'bootstrapTheme') }}\"></span>
</div>
{% endif %}
</div>
<div class=\"flex-grow-l position-relative_ d-flex flex-column \">
<div class=\"max-art flex-grow-l d-flex flex-column justify-content-between \">
<h3 class=\"articleBit-lib\" {{ sylius_test_html_attribute('product-name', product.name) }}>
<a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\">{{ product.name }}</a>
</h3>
<div class=\"articleBit-desc pt-1\">
Ref: {{ product.code }}
</div>
{% if sylius_inventory_is_available(variant) %}
{% set stock_product = variant.OnHand - variant.OnHold %}
<div class=\"color-primary-s pt-1 text-lowercase font-14\">
{{stock_product}} {{'app.product.in_stock'|trans}}
</div>
{% else %}
{% if not app.user %}
<div class=\"text-danger pt-1 \">{{ 'app.product.out_of_stock' | trans }}</div>
{% endif %}
{% endif %}
</div>
<div class=\"row no-gutters align-items-center pt-2 flex-md-nowrap\">
<div class=\"articleBit-price col mb-md-0 d-block\">
{% if app.user%}
{% if not product.variants.empty() %}
<div class=\"price-old\" data-js-product-original-price {{ sylius_test_html_attribute('product-price', money.calculatePrice(product|sylius_resolve_variant)) }}>
{% if channelpricing.discountedPrice and channelpricing.discountedPrice != channelpricing.price and channelpricing|app_check_promotion_price %}
{{ money.convertAndFormat(channelpricing.price )}} <small>{{'app.ui.incl_tax'|trans}}</small>
{% endif %}
</div>
<strong class=\"price-promo\" {{ sylius_test_html_attribute('product-price') }}> {{ money.calculatePrice(product|sylius_resolve_variant) }} <small>{{'app.ui.incl_tax'|trans}}</small></strong>
{% endif %}
{% endif %}
</div>
{% if app.user %}
<div class=\"col-lg-auto pt-lg-0 pt-3 col-12\">
{% if variant is not null %}
{% if not sylius_inventory_is_available(variant) %}
<div class=\"text-danger\">{{ 'app.product.out_of_stock' | trans }}</div>
{% else %}
{#{% if product.retired == false %}#}
{% include '@SyliusShop/Product/Show/_addToCartBox.html.twig' with {'product': product } %}
{#{% endif %}#}
{% endif %}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</article>
", "@SyliusShop/Product/Box/_content.html.twig", "/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Box/_content.html.twig");
}
}