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:
parent
2b4ed6fe03
commit
b1a0d3177c
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: dev
|
||||
|
||||
Show a message for variable products
|
|
@ -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 {
|
||||
|
|
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue