Cookie currency mapping doesn't work correctly in Pantheon hosted sites.

Created on 28 January 2025, 2 months ago

Problem/Motivation

When using this module with the "Cookie (currency block selector)" option in the currency mapping configuration in a Pantheon hosted site, the cookie name needs to follow the cache-varying cookies naming convention described in Pantheon's documentation: https://docs.pantheon.io/cookies

Without this prefix on the cookie name, the cookie method will not update the product price information appropiately.

Steps to reproduce

Clean drupal + commerce + currency resolver instalation in a Pantheon site, configured to use the currency block selector.

Proposed resolution

I've provided a patch which just adds the necessary prefix to the cookie name.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Downport

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024