Implement a settings pattern for disabling partner banners

Created on 31 January 2024, 5 months ago
Updated 19 February 2024, 4 months ago

In Commerce Core and some contributed modules, we've established a pattern of linking from contextually relevant user interfaces to third-party service providers, including offers specifically granted to Drupal Commerce merchants. While I strongly believe that establishing these relationships and advertising the existence of these options for merchants is important to the platform as a whole, I also think we should make it easier for developers who don't want these to disable them all via a single setting.

As such, let's establish using a single setting called commerce_show_partner_banners as the tool for disabling these by setting it to FALSE. In Commerce Core, this will need to be respected in the tax type interface where we show the Avalara banner, and we'd need to update Commerce AvaTax accordingly. Let's also ensure we document this in README.md as:

Drupal Commerce modules occasionally link to offers from technology partners in contextually relevant portions of the administrative interface. To simplify disabling these, the project has established a pattern of all such banners respecting a setting you can set in your site's settings.php: $settings['commerce_show_partner_banners'] = FALSE;

โœจ Feature request
Status

Fixed

Version

2.0

Component

Developer experience

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States rszrama

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024