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:
parent
59f7f4092b
commit
776d567f30
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: enhancement
|
||||
|
||||
Remove the margin bottom of the checkbox label
|
|
@ -12,6 +12,10 @@
|
|||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.components-checkbox-control__label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-product-form__checkbox-wrapper {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: enhancement
|
||||
|
||||
Create the Organization tab
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue