Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 578 Bytes

2021-11-09-prefill-product-stock.md

File metadata and controls

9 lines (9 loc) · 578 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 16
---
title: Prefill product stock
issue: NEXT-18180
author_github: @Dominik28111
---

Administration

  • Changed block sw_product_deliverability_form_stock_field in component/sw-product-deliverability-form/sw-product-deliverability-form.html.twig to no longer require a value for the field.
  • Added lifecycle hook created in component/sw-product-deliverability-form/sw-product-deliverability-form/index.js.
  • Added method createdComponent in component/sw-product-deliverability-form/sw-product-deliverability-form/index.js to prefill value product.stock with 0.