^ Twig\Error\LoaderError {#585
#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 {#586
-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/theme/snippets/customize-product/custom-ajax.twig:402 {
__TwigTemplate_880bda505f5d28696957013868cf84ee->doDisplay(array $context, array $blocks = []): iterable …
› <div class="d-none quick-buy">
› {% include 'product-action-price.twig' with { 'quick_buy': true } %}
› </div>
arguments: {
$context: array:31 [ …31]
}
}
/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/34/34cb04c2304846b213303b9b468f4593.php:95 {
__TwigTemplate_5490630a242fd19fb5eb816fbbec8622->doDisplay(array $context, array $blocks = []): iterable …
› yield " ";
› yield from $this->load("customize-product/custom-ajax.twig", 27)->unwrap()->yield($context);
› // line 28
arguments: {
$context: array:30 [ …30]
}
}
/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:85 {
__TwigTemplate_4ce95c19f3450b9c3e2628063276d715->doDisplay(array $context, array $blocks = []): iterable …
› yield "\t\t";
› $this->loadTemplate("@sections/customize-product.twig")->display(array_merge($context, ["section" => ["settings" => ["order" => "group", "title" => "Produtos do kit", "subtitle" => null, "variation_select_type" => "select", "buy_individual_products" => false, "show_price_individual_products" => false, "text_btn_kit" => "Produtos do kit", "customize_position_customize" => "after_description"], "blocks" => []]])); // line 22
› yield "\t";
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 {#428 …}
}
}
/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 {#451 …}
$response: Slim\Psr7\Response {#428 …}
$product: Core\Adapters\ShowcaseApiQLAdapter {#467 …}
$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 {#451 …}
$response: Slim\Psr7\Response {#428 …}
...: {
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 {#447 …}
$response: Slim\Psr7\Response {#428 …}
$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 {#413 …}
}
}
/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 {#413 …}
$handler: Slim\Routing\Route {#372 …}
}
}
/var/www/html/front/vendor/slim/slim/Slim/MiddlewareDispatcher.php:177 {