To set up a cookie banner:
-
Download the OroCommerceCookieBannerBundle archived file.
-
Unpack the downloaded file to {application_name}/src/Oro/Bundle.
-
Run the following commands:
For dev mode
rm -rf var/cache/*
php composer.phar install --prefer-dist --no-dev
php bin/console oro:platform:update --env=prod --force
php bin/console oro:message-queue:consume --env=dev
For prod mode
rm -rf var/cache/*
php composer.phar install --prefer-dist --no-dev
php bin/console oro:platform:update --env=prod --force
php bin/console oro:message-queue:consume --env=prod
-
Reload the application in the browser.
To set up a cookie banner:
-
Download the OroCommerceCookieBannerBundle archived file.
-
Unpack the downloaded file to {application_name}/src/Oro/Bundle.
-
Run the following commands:
For dev mode
rm -rf app/cache/*
php composer.phar install --prefer-dist --no-dev
php app/console oro:platform:update --env=prod --force
php app/console oro:message-queue:consume --env=dev
For prod mode
rm -rf app/cache/*
php composer.phar install --prefer-dist --no-dev
php app/console oro:platform:update --env=prod --force
php app/console oro:message-queue:consume --env=prod
-
Reload the application in the browser.
To add a translation to the cookie banner to present information in the desired language:
-
Run the following command (for v. 3.0 and higher):
php bin/console oro:translation:load --env=prod
Run the following command (for v. 2.6 and lower
php app/console oro:translation:load --env=prod
-
In the management console, navigate to System > Localization > Translations.
-
Using filters, locate following translation keys:
- oro_cookie_banner.text
- oro_cookie_banner.button_label
-
Add translation for the banner text and label.
-
Click Update Cache on the top right.
-
Once cache is updated, the translated banner will be displayed in the storefront.