Create the Organization tab (#39232)

* Add Organization to the right of General tab

* Add Product catalog and Attributes sections to the Organization tab

* Add Categories and Disable product reviews blocks to Product catalog section

* Add attributes block to the attributes section

* Add changelog files

* Fix php linter error

* Remove Categories and Attributes blocks from the General tab

* Change Disable product reviews by Enable product reviews
This commit is contained in:
Maikel David Pérez Gómez 2023-07-19 10:11:03 -04:00 committed by GitHub
parent 59f7f4092b
commit 776d567f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 9 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: enhancement
Remove the margin bottom of the checkbox label

View File

@ -12,6 +12,10 @@
align-items: center;
margin-bottom: 0;
}
.components-checkbox-control__label {
margin-bottom: 0;
}
}
.woocommerce-product-form__checkbox-wrapper {

View File

@ -0,0 +1,4 @@
Significance: minor
Type: enhancement
Create the Organization tab

View File

@ -336,11 +336,20 @@ class Init {
),
),
),
),
),
array(
'woocommerce/product-tab',
array(
'id' => 'organization',
'title' => __( 'Organization', 'woocommerce' ),
'order' => 15,
),
array(
array(
'woocommerce/product-section',
array(
'title' => __( 'Organization & visibility', 'woocommerce' ),
'description' => __( 'Help customers find this product by assigning it to categories or featuring it across your sales channels.', 'woocommerce' ),
'title' => __( 'Product catalog', 'woocommerce' ),
),
array(
array(
@ -349,18 +358,19 @@ class Init {
'name' => 'categories',
),
),
array(
'woocommerce/product-checkbox-field',
array(
'label' => __( 'Enable product reviews', 'woocommerce' ),
'property' => 'reviews_allowed',
),
),
),
),
array(
'woocommerce/product-section',
array(
'title' => __( 'Attributes', 'woocommerce' ),
'description' => sprintf(
/* translators: %1$s: Attributes guide link opening tag. %2$s: Attributes guide link closing tag.*/
__( 'Add descriptive pieces of information that customers can use to filter and search for this product. %1$sLearn more%2$s', 'woocommerce' ),
'<a href="https://woocommerce.com/document/managing-product-taxonomies/#product-attributes" target="_blank" rel="noreferrer">',
'</a>'
),
'title' => __( 'Attributes', 'woocommerce' ),
),
array(
array(