Update status messages

Created on 22 March 2023, over 1 year ago

Problem

We're not able to display a status message about successfully added products and text for the unavailable product case is a static

Proposed resolution

Update the status messages system with the ability to configure each status message text

User interface changes

On the settings page provide additional text area fields for each case

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Brolad

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

Comments & Activities

  • Issue created by @Brolad
  • @brolad opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡¦Ukraine Brolad

    Changes in MR4:
    - Added ability to show a status message about added products to the cart
    - Updated status message about the unavailable product from "status" to "warning"
    - Removed "Show/Hide add to cart status message" form element.
    - Added a new "messages" form element that contains text area fields about success messages and unavailable product message
    - Added hook_update_n() to update configs based on previous logic
    - Added schema for a module
    - Replaced t() to $this->t() inside of controller (dependency injection)

Production build 0.71.5 2024