Allow the use of location with the currency block selector.

Created on 19 January 2021, almost 5 years ago
Updated 23 September 2025, about 1 month ago

Problem/Motivation

Needed a way for the user to be able to switch between currencies but still set the default currency using the user's country.

Proposed resolution

Add an EventSubscriber or Middleware to set the cookie the first time a user opens the site and allow it to be overridden using the currency block selector.

Remaining tasks

  • Form states issue with required fields in the Location Module form field.
  • Check the Middleware performance and other issues that might popup.

User interface changes

  • Added a checkbox in the settings form to enable or disable this module.
  • Added form states to the Location module field to be able to update it dynamically.
  • Unlocked the mapping fields in the cookie select based on the value of the checkbox.

API changes

None.

Data model changes

None.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇯🇴Jordan OthmanEmad

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024