Instructions for configuring the “Add to cart” button.

Turbo pages can display the Add to cart button. It opens a desktop or mobile version of the shopping cart page that shows the added product.

To configure the button, follow these steps:

  1. Go to the Turbo pages → Settings page.
  2. In the Set up product pages block, choose the Add to cart checkout method.
  3. Configure the shopping cart page URL.

    Choose the URL for adding item: 1C-Bitrix from the list. The URL generated automatically:

    {offer_url}&action=BUY&id={offer_id}
    where:
    • {offer_url} — Link to the product page on the site specified in the YML file (the url element).
    • {offer_id} — ID of the offer specified in the YML file (the id attribute of the offer element).
    Use the example of a product page in Yandex.Webmaster (Turbo pages → Settings) to check if the button opens your site's shopping cart. If it doesn't, set up a redirect to the cart page from the page the button opens. For example, using a free plugin.
    Example: configuring redirect with a free plugin
    1. In 1C-Bitrix, go to the Content → Redirect → List of redirects and click Add.
    2. In the Start page field, specify the cart page that should open after clicking the Add to cart button. For example, /personal/basket.php.
    3. In the End page, specify the shopping cart page on your site. For example, /personal/cart/.
    4. Turn on the Activity option.
    5. Save the settings.

To track how often the users click the button, as well as to track the conversion on the site, use Yandex.Metrics goals.