Theme override for a product edit form - Use 2 column template for the product add/edit form the same is for Node form.
Include also the seven altering for the NodeForm in the ProductForm.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vasike created an issue. See original summary.

vasike’s picture

Status: Active » Needs review
FileSize
6.72 KB

and there is patch for this, following @bojanz suggestions.

1) copy node.module.css to product.form.css, and add an entry in commerce_product.libraries.yml just like node does
2) integrate the changes done by seven_form_node_form_alter directly into the ProductForm
3) copy core/themes/classy/templates/content-edit/node-edit-form.html.twig to a twig file in the product module, register the hook_theme() equivalent as well

  • bojanz committed 728ec67 on 8.x-2.x authored by vasike
    Issue #2617218 by vasike: Two column template for the product add/edit...
bojanz’s picture

Status: Needs review » Fixed

Completed and committed.
Needed cleanup because the core code wasn't as clean as I'd hoped.

Thanks!

Status: Fixed » Closed (fixed)

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