duanbipu7601 2019-07-18 02:55
浏览 50

WooCommerce插件 - 产品元盒定价的“隐藏”css类和样式覆盖;

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:

enter image description here

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 求指导ADS低噪放设计
    • ¥15 CARSIM前车变道设置
    • ¥50 三种调度算法报错 有实例
    • ¥15 关于#python#的问题,请各位专家解答!
    • ¥200 询问:python实现大地主题正反算的程序设计,有偿
    • ¥15 smptlib使用465端口发送邮件失败
    • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
    • ¥15 对于squad数据集的基于bert模型的微调
    • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
    • ¥20 steam下载游戏占用内存