Important

You are browsing documentation for version 5.0 of OroCommerce, OroCRM, and OroPlatform, maintained until August 2024 and supported until March 2026. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

CookieConsentBannerBundle

Cookies can be used to uniquely identify a person, which means that they represent personal data. In compliance with the General Data Protection Regulations (GDPR), it is required to let website visitors and customers know what types of cookies will be used, and allow them to choose which ones they want to agree to. Implied consents and consents given by visiting a website are not enough.

To comply with the GDPR policy, OroCommerce enables you to set up a Cookie Banner with your custom text to be displayed in the storefront of the OroCommerce website, and translate it into your preferred language.

Add a Translation

To add a translation to the cookie banner to present information in the desired language:

  1. Run the following command:

    php bin/console oro:translation:load --env=prod
    
  2. In the back-office, navigate to System > Localization > Translations.

  3. Using filters, locate following translation keys:

    • oro_cookie_banner.text

    • oro_cookie_banner.button_label

  4. Add translation for the banner text and label.

  5. Click Update Cache on the top right.

  6. Once cache is updated, the translated banner will be displayed in the storefront.

Business Tip

Do you want to use advanced technologies to drive digital transformation in manufacturing? Our guide offers relevant tips, examples, and pitfalls to avoid.

Related Topics