^ Twig\Error\LoaderError {#559
#message: "Unable to find template "product-action-price/with_discount.twig" (looked into: /var/www/html/front/theme/snippets) in "product-action-price.twig" at line 28."
#code: 0
#file: "/var/www/html/front/theme/snippets/product-action-price.twig"
#line: 28
-lineno: 28
-rawMessage: "Unable to find template "product-action-price/with_discount.twig" (looked into: /var/www/html/front/theme/snippets)."
-source: Twig\Source {#560
-code: """
{% set discount = product.price_compare %}\n
\n
{% set billet = product.payments.billet %}\n
{% set creditcard = product.payments.creditcard %}\n
{% set pix = product.payments.pix %}\n
\n
{% set type = theme.settings.product_price_type ?: 'billet' %}\n
\n
{% if type == 'creditcard_icon' %}\n
\t{% set type = 'iconsmethods' %}\n
{% elseif type == 'creditcard_pix_icon'%}\n
{% set type = 'iconsmethods' %}\n
\t{% set billet = null %}\n
{% elseif type == 'creditcard_pix'%}\n
{% set type = 'creditcard' %}\n
{% set billet = null %}\n
{% endif %}\n
\n
\n
\n
{% set parcel = theme.settings.price_parcel ?: false %}\n
\n
{% if parcel %}\n
{% set creditcard = product.payments.creditcard.max_installment %}\n
{% endif %}\n
\n
<div class="product-action-price {{ type }} my-5">\n
{% include 'product-action-price/' ~ type ~ '.twig' %}\n
</div>
"""
-name: "product-action-price.twig"
-path: "/var/www/html/front/theme/snippets/product-action-price.twig"
}
-phpFile: "/var/www/html/front/vendor/twig/twig/src/Loader/FilesystemLoader.php"
-phpLine: 234
trace: {
/var/www/html/front/theme/snippets/product-action-price.twig:28 {
Twig\Loader\FilesystemLoader->findTemplate(string $name, bool $throw = true) …
› <div class="product-action-price {{ type }} my-5">
› {% include 'product-action-price/' ~ type ~ '.twig' %}
› </div>
}
/var/www/html/front/vendor/twig/twig/src/Loader/FilesystemLoader.php:138 {
Twig\Loader\FilesystemLoader->getCacheKey(string $name): string …
› {
› if (null === $path = $this->findTemplate($name)) {
› return '';
arguments: {
$name: "product-action-price/with_discount.twig"
}
}
/var/www/html/front/vendor/twig/twig/src/Environment.php:317 {
Twig\Environment->getTemplateClass(string $name, int $index = null): string …
› {
› $key = ($this->hotCache[$name] ?? $this->getLoader()->getCacheKey($name)).$this->optionsHash;
›
arguments: {
$name: "product-action-price/with_discount.twig"
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:290 {
Twig\Template->load(Twig\TemplateWrapper|array|string $template, int $line, int $index = null): self …
› } else {
› $class = $this->env->getTemplateClass($template);
› }
arguments: {
$name: "product-action-price/with_discount.twig"
}
}
/var/www/html/front/theme/snippets/product-action-price.twig:28 {
__TwigTemplate_358035d9ca098c2e0f0eec1517eca6d0->doDisplay(array $context, array $blocks = []): iterable …
› <div class="product-action-price {{ type }} my-5">
› {% include 'product-action-price/' ~ type ~ '.twig' %}
› </div>
arguments: {
$template: "product-action-price/with_discount.twig"
$line: 28
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: array:23 [ …23]
$blocks: []
}
}
/var/www/html/front/cache/103188/da/da65b051c02009d6c58478ffcd26adac.php:341 {
__TwigTemplate_dada87c7d08246e1de794cad72cced99->doDisplay(array $context, array $blocks = []): iterable …
› yield " ";
› yield from $this->load("product-action-price.twig", 148)->unwrap()->yield($context);
› // line 149
arguments: {
$context: array:37 [ …37]
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: array:23 [ …23]
$blocks: []
}
}
/var/www/html/front/cache/103188/52/5269c09c489ca45e948b2b023c261bee.php:110 {
__TwigTemplate_4cfe9522b4ad84327acfd14cc235dd76->doDisplay(array $context, array $blocks = []): iterable …
› yield " ";
› yield from $this->load("product-action.twig", 29)->unwrap()->yield($context);
› // line 30
arguments: {
$context: array:28 [ …28]
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: array:23 [ …23]
$blocks: []
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:358 {
Twig\Template->display(array $context, array $blocks = []): void …
› {
› foreach ($this->yield($context, $blocks) as $data) {
› echo $data;
arguments: {
$context: array:22 [ …22]
$blocks: []
}
}
/var/www/html/front/cache/103188/df/df6a99736bbe582a609465ca28b8fc1b.php:53 {
__TwigTemplate_4ce95c19f3450b9c3e2628063276d715->doDisplay(array $context, array $blocks = []): iterable …
› \t";
› $this->loadTemplate("@sections/product-info.twig")->display(array_merge($context, ["section" => ["settings" => ["id_erp" => false, "container" => "container", "quick_buy" => true, "mobile_zoom" => false, "image_galery" => "gallery", "text_btn_kit" => "Produtos do kit", "pre_sale_text" => "Seja o primeiro a comprar este produto. Insira seus dados abaixo para ser notificado no seu lançamento.", "product_alert" => "0", "product_brand" => true, "share_product" => false, "share_twitter" => true, "image_position" => "left", "share_facebook" => true, "share_whatsapp" => true, "customize_style" => "closed", "pre_sale_button" => "Avise-me no lançamento", "product_payment" => true, "share_pinterest" => false, "product_features" => "0", "product_quantity" => false, "product_shipping" => true, "product_reference" => true, "product_breadcrumb" => true, "product_colors_type" => "colors", "product_colors_title" => null, "product_request_text" => "Infelizmente o estoque deste item acabou :(", "share_product_colors" => false, "product_alert_message" => null, "product_atribute_type" => "select", "product_colors_slider" => false, "product_options_title" => null, "product_shipping_seals" => false, "product_main_image_zoom" => false, "variation_cheap_message" => false, "product_request_text_button" => "Avise-me quando chegar", "product_request_text_instruction" => "Insira seus dados e receba uma notificação quando este produto estiver disponível", "product_request_text_success" => "Você será notificado através do e-mail ou número de WhatsApp inserido, assim que o produto estiver disponível para venda ;)"], "blocks" => []]])); // line 6
› yield "
arguments: {
$context: array:24 [ …24]
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:402 {
Twig\Template->yield(array $context, array $blocks = []): iterable …
› try {
› yield from $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: array:23 [ …23]
$blocks: []
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:358 {
Twig\Template->display(array $context, array $blocks = []): void …
› {
› foreach ($this->yield($context, $blocks) as $data) {
› echo $data;
arguments: {
$context: array:22 [ …22]
$blocks: []
}
}
/var/www/html/front/vendor/twig/twig/src/Template.php:373 {
Twig\Template->render(array $context): string …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: array:20 [ …20]
}
}
/var/www/html/front/vendor/twig/twig/src/TemplateWrapper.php:51 {
Twig\TemplateWrapper->render(array $context = []): string …
› {
› return $this->template->render($context);
› }
arguments: {
$context: array:20 [ …20]
}
}
/var/www/html/front/classes/Controllers/BaseController.php:75 {
Core\Controllers\BaseController->output(string $html = null) …
› assign([
› 'content_for_layout' => $html->render(assign()),
› ]);
arguments: {
$context: array:20 [ …20]
}
}
/var/www/html/front/classes/Controllers/BaseController.php:297 {
Core\Controllers\BaseController->write(ResponseInterface $response) …
› {
› $response->getBody()->write($this->output());
› return $response;
}
/var/www/html/front/classes/Controllers/ProductController.php:88 {
Core\Controllers\ProductController->index(ServerRequestInterface $request, ResponseInterface $response, $product = null, string $colorSlug = null): ResponseInterface …
›
› return $this->write($response);
› }
arguments: {
$response: Slim\Psr7\Response {#451 …}
}
}
/var/www/html/front/classes/Controllers/SlugController.php:53 {
Core\Controllers\SlugController->index(ServerRequestInterface $request, ResponseInterface $response) …
› $colorSlug = $slug['data']['color']['slug'] ?? null;
› return (new ProductController($this->container))->index($request, $response, $slug['data'], $colorSlug);
› case 'blog-post':
arguments: {
$request: Slim\Psr7\Request {#433 …}
$response: Slim\Psr7\Response {#451 …}
$product: Core\Adapters\ShowcaseApiQLAdapter {#463 …}
$colorSlug: null
}
}
/var/www/html/front/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php:38 {
Slim\Handlers\Strategies\RequestResponse->__invoke(callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments): ResponseInterface …
›
› return $callable($request, $response, $routeArguments);
› }
arguments: {
$request: Slim\Psr7\Request {#433 …}
$response: Slim\Psr7\Response {#451 …}
...: {
array:1 [ …1]
}
}
}
/var/www/html/front/vendor/slim/slim/Slim/Routing/Route.php:363 {
Slim\Routing\Route->handle(ServerRequestInterface $request): ResponseInterface …
› $response = $this->responseFactory->createResponse();
› return $strategy($callable, $request, $response, $this->arguments);
› }
arguments: {
$callable: array:2 [ …2]
$request: Slim\Psr7\Request {#473 …}
$response: Slim\Psr7\Response {#451 …}
$routeArguments: array:1 [ …1]
}
}
/var/www/html/front/classes/Middlewares/AppMiddleware.php:205 {
Core\Middlewares\AppMiddleware->out(ServerRequestInterface $request, RequestHandlerInterface $handler) …
›
› $response = $handler->handle($request);
›
arguments: {
$request: Slim\Psr7\Request {#412 …}
}
}
/var/www/html/front/classes/Middlewares/AppMiddleware.php:53 {
Core\Middlewares\AppMiddleware->process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface …
›
› return $this->out($request, $handler);
› }
arguments: {
$request: Slim\Psr7\Request {#412 …}
$handler: Slim\Routing\Route {#372 …}
}
}
/var/www/html/front/vendor/slim/slim/Slim/MiddlewareDispatcher.php:177 {