# Descontinuação do carrinho.php

Com a criação de um novo carrinho, visando melhorias para os lojistas, o antigo carrinho tende a ser descontinuado posteriormente, e com isso a orientação é a de que toda chamada **carrinho.php** presente nas lojas seja alterada para **cartService.php**.

Com isso, deve-se validar nos arquivos HTML/Twig e JavaScript todas as chamadas e altera-las.

As chamadas "padrões" da plataforma já foram alteradas previamente.

Exemplo:

```html
<form id="form_comprar" method="post" data-app="product.buy-form" data-id="{{ product.id }}" action="{{ links.cart_add ~ product.id }}">
```

<figure><img src="/files/VpR7G7Mj7LzPVBlv2Ble" alt=""><figcaption><p><strong>Utilização do cartService no formulário de adição do produto ao carrinho na pagina do produto</strong></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://partners.tray.com.br/themes/construindo-seu-template/desenvolver/descontinuacao-do-carrinho.php.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
