insert Summary block into the Description one
This commit is contained in:
parent
5f9c5fc4d6
commit
356ac0bdb5
|
@ -254,7 +254,7 @@ class SimpleProductTemplate extends AbstractProductFormTemplate implements Produ
|
|||
),
|
||||
)
|
||||
);
|
||||
$description_section->add_block(
|
||||
$description_field_block = $description_section->add_block(
|
||||
array(
|
||||
'id' => 'product-description',
|
||||
'blockName' => 'woocommerce/product-description-field',
|
||||
|
@ -262,6 +262,18 @@ class SimpleProductTemplate extends AbstractProductFormTemplate implements Produ
|
|||
)
|
||||
);
|
||||
|
||||
$description_field_block->add_block(
|
||||
array(
|
||||
'id' => 'product-description__content',
|
||||
'blockName' => 'woocommerce/product-summary-field',
|
||||
'order' => 10,
|
||||
'attributes' => array(
|
||||
'helpText' => null,
|
||||
'label' => null,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
// External/Affiliate section.
|
||||
if ( Features::is_enabled( 'product-external-affiliate' ) ) {
|
||||
$buy_button_section = $general_group->add_section(
|
||||
|
|
Loading…
Reference in New Issue