Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows you to create rules for Drupal Commerce that are triggered based on whether specific browser cookies exist and what their values are. This is useful for personalizing promotions, pricing, and user experiences based on cookie data.

Commerce Cookie Condition provides a way to create Drupal Commerce conditions based on the presence and value of browser cookies. Useful for promotions, pricing, and personalization.

Features

The Commerce Cookie Condition module adds a new condition plugin to the Drupal Commerce ecosystem that allows site builders to:

  • Create conditions based on whether a specific cookie exists.
  • Match a cookie to a specific value (e.g., promo_code=SUMMER2025).
  • Use this condition in promotions, payment gateways, or custom order workflows.

This is especially useful for:

  • Personalizing user experience based on cookies from ad campaigns or A/B tests.
  • Targeting promotions based on UTM tracking parameters stored in cookies.

Post-Installation

Once installed, the module provides a new condition called "Current user has cookie" under the Customer category of conditions.

To use it:

  1. Go to the configuration area where conditions are supported (e.g. a Commerce Promotion).
  2. Add a new condition and choose "Current user has cookie".
  3. Enter the name of the cookie and the expected value.
  4. Save your configuration.

Activity

Total releases
2
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
1.0.0 Stable Jun 30, 2025
1.0.x-dev Dev Jun 30, 2025