Problem/Motivation

Currently, Belgrade has hardcoded copyright text in focused checkout forms and no configurable footer message option:

  1. Focused checkout copyright: The text © @year @site_name. All rights reserved. is hardcoded in commerce-checkout-form--focused.html.twig and commerce-checkout-form--focused--with-sidebar.html.twig. There's a checkbox to show/hide it, but the text itself cannot be customized.
  2. Footer region: The footer region exists in page.html.twig but has no default copyright or footer message option. Site builders must manually add blocks to display copyright information.

Issues:

  • No customization: Site builders cannot customize copyright text to match their branding or legal requirements
  • Hardcoded text: The focused checkout copyright text is hardcoded, requiring template overrides to change
  • No footer message option: No easy way to add a default copyright or footer message
  • No footer logo: No dedicated option to display a logo/icon in the footer alongside copyright text
  • Inconsistent approach: Some sites may want different copyright text in different contexts (checkout vs. main footer)

Issue fork belgrade-3560771

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

majmunbog created an issue. See original summary.

majmunbog’s picture

Status: Active » Needs review

I've added a Footer section in theme settings with three options: a toggle for copyright text with customizable text and token support (@year, @site_name), a footer message field with text format (HTML allowed) and token support, and a footer logo toggle with file upload that supports SVG inline display. The submit handler marks uploaded footer logo files as permanent.
Updated focused checkout copyright to a customizable copyright text field with token support (@year, @site_name) that appears in both the single-column and two-column focused checkout templates.

majmunbog’s picture

Status: Needs review » Needs work
sumi’s picture

Tested the MR and all text field are working as expected for both the standard footer and for the focus checkout footer message.

The footer logo option is not working. Uploaded logo is not displaying.
For the footer logo options it would be also really good to include the "path to logo" type field as we have for the global site logo. That way we don't upload the logo through UI but point to logo in the theme or where we choose to put it.
It would also be nice if we could maybe have a boolean field where we could just choose to re-use the global site logo and not to have to re-upload or re-point to the same logo in case when we would like to show the logo in the footer but we don't need new logo file and we want to use the same global site logo.

majmunbog’s picture

Status: Needs work » Needs review

The logo should work now. Ready for another review.

sumi’s picture

Status: Needs review » Reviewed & tested by the community

Tested the updated MR and all is now working good. All new additions for footer logo are appreciated.

  • majmunbog committed b50effb9 on 3.x
    feat: #3560771 Add customizable copyright text, footer message, and...
majmunbog’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.