Show message in Inventory tab for variable products (#37185)

* Add message to inventory tab

* Add styles

* Add changelog

* Fix link styles

* Fix message style without buttons

* Avoid line break

* Remove space

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
Fernando Marichal 2023-03-13 18:26:51 -03:00 committed by GitHub
parent 2b4ed6fe03
commit b1a0d3177c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Show a message for variable products

View File

@ -959,11 +959,18 @@
}
#variable_product_options #message,
#inventory_product_data .notice,
#variable_product_options .notice {
display: flex;
margin: 10px;
background-color: #ffffff;
> p {
a {
text-decoration: none;
white-space: nowrap;
}
}
> p:not( :last-child ) {
width: 85%;
}
.woocommerce-add-variation-price-container {

View File

@ -10,7 +10,11 @@ if ( ! defined( 'ABSPATH' ) ) {
}
?>
<div id="inventory_product_data" class="panel woocommerce_options_panel hidden">
<div class="inline notice woocommerce-message show_if_variable">
<p>
<?php echo esc_html_e( 'Settings below apply to all variations without manual stock management enabled.', 'woocommerce' ); ?> <a target="_blank" href="https://woocommerce.com/document/variable-product/"><?php esc_html_e( 'Learn more', 'woocommerce' ); ?></a>
</p>
</div>
<div class="options_group">
<?php
if ( wc_product_sku_enabled() ) {