Problem: Product Div Tab - Regular Price and Sales Price not showing automatically because 'style = display:block' no longer being added to Div.
WooCommerce plugin - woocommerce/includes/admin/meta-boxes/class-wc- meta-box-product-data.php
Hi all,
I am banging my head trying to figure out how WooCommerce is no longer adding the following to the html div in the 'General' tab of the Product meta-box :
"style = display: block"
<div class="options_group pricing show_if_simple show_if_external hidden" style="display: block;">
It allows the "Regular Price" and "Sales Price" fields to be shown. Coming into this project new, I do not know which plugins may be overriding WooCommerce's default functionality. The php for class-wc- meta-box-product-data.php is this:
echo '<div class="options_group pricing show_if_simple show_if_external hidden">';
So it is defined there as having a "hidden" class attribute, but obviously something was adding in the display:block to make sure it is visible. Could you tell me please where WooCommerce may be or may not be adding that display:block attribute? I could not find any filters that were being used that were relevant to this.
Here is a picture of what I'm talking about: