Enable Gin edit form for Commerce Product

Created on 17 February 2023, over 1 year ago
Updated 29 April 2024, about 2 months ago

Problem/Motivation

Commerce product and variations add/edit forms has a different layout from content edition, which makes hard for regular users to maintain the content. Hold main sticky actions on top and additional element on sidebar helps users to work better in content maintenance.

Steps to reproduce

Create new commerce product.
Edit any commerce product.

Proposed resolution

Apply new Gin layout to commerce product and variations add/edit forms.

โœจ Feature request
Status

RTBC

Version

3.0

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain dtamajon

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

Comments & Activities

  • Issue created by @dtamajon
  • Status changed to Needs work over 1 year ago
  • ๐Ÿ‡ซ๐Ÿ‡ฎFinland sokru

    $route_names array need also following to support translations:

    'entity.commerce_product.content_translation_add'
    'entity.commerce_product_variation.content_translation_add'
    
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mrinalini9 New Delhi

    Updated patch #2 by addressing #3, please review it.

    Thanks!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States paul121 Spokane, WA

    This makes me wonder if this wouldn't be desirable for other commerce sites. Your reasoning does make sense to me but I'm just thinking more generally. Could Gin make these gin content forms configurable via a setting in the UI? In addition to allowing other modules to specify this in a hook?

  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland saschaeggi Zurich

    @paul121

    Could Gin make these gin content forms configurable via a setting in the UI?

    Not in the UI, and weโ€™re not planning in introducing lots of new settings to our UI โ€“ but thatโ€™s actually already possible via hook_gin_content_form_routes().

  • First commit to issue fork.
  • @parisek opened merge request.
  • Status changed to RTBC 5 months ago
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance NicolasGraph Strasbourg

    The only thing that is kind of weird is the blank sidebar on product variations, but I guess we can't do much here about that. Maybe an issue could be created in commerce to add some more informations there.

  • Updated patch #4 for version 3.0-rc10.

Production build 0.69.0 2024