Skip to content

Commit

Permalink
connect only name product title
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Feb 9, 2024
1 parent b85eace commit dd1c823
Showing 1 changed file with 3 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,12 @@ private function add_general_group_blocks() {
'blockName' => 'woocommerce/product-text-area-field',
'order' => 20,
'attributes' => array(
'label' => __( 'Summary', 'woocommerce' ),
'help' => __(
'label' => __( 'Summary', 'woocommerce' ),
'help' => __(
"Summarize this product in 1-2 short sentences. We'll show it at the top of the page.",
'woocommerce'
),
'placeholder' => __( 'Add a short summary of the product', 'woocommerce' ),
'property' => 'short_description',
'property' => 'short_description',
),
),
);
Expand Down Expand Up @@ -287,22 +286,6 @@ private function add_general_group_blocks() {
'label' => __( 'List price', 'woocommerce' ),
/* translators: PricingTab: This is a link tag to the pricing tab. */
'help' => __( 'Manage more settings in <PricingTab>Pricing.</PricingTab>', 'woocommerce' ),
'metadata' => array(
'bindings' => array(
'regularPrice' => array(
'source' => 'woo/product-entity',
'args' => array(
'prop' => 'regular_price'
),
),
'salePrice' => array(
'source' => 'woo/product-entity',
'args' => array(
'prop' => 'sale_price'
),
),
),
),
),
)
);
Expand All @@ -323,22 +306,6 @@ private function add_general_group_blocks() {
'order' => 10,
'attributes' => array(
'label' => __( 'Sale price', 'woocommerce' ),
'metadata' => array(
'bindings' => array(
'regularPrice' => array(
'source' => 'woo/product-entity',
'args' => array(
'prop' => 'regular_price'
),
),
'salePrice' => array(
'source' => 'woo/product-entity',
'args' => array(
'prop' => 'sale_price'
),
),
),
),
),
)
);
Expand Down

0 comments on commit dd1c823

Please sign in to comment.