18f2de2bc4
* Always show General product tab * Add info messages for variable and grouped products * Add logic to disable/enable fields and labels based on product type * Tweak CSS and fix links * Add tracks events for links * Add filters to pricing disabled message * Tweak logic to only enable fields on certain product types instead of disabling in the opposite ones Add fallback message when pricing is disabled but it's not Variable or Grouped product * Add docblocks * Fix more lint issues * Fix last lint issues * Update selector in e2e test * Refactor PHP echo * Attach to #woocommerce-product-data instead of attaching to body |
||
---|---|---|
.. | ||
add-term-tracking | ||
attributes-tracking | ||
beta-features-tracking-modal | ||
category-tracking | ||
marketing-coupons | ||
navigation-opt-out | ||
onboarding-homepage-notice | ||
onboarding-load-sample-products-notice | ||
onboarding-product-import-notice | ||
onboarding-product-notice | ||
onboarding-tax-notice | ||
order-tracking | ||
payment-method-promotions | ||
print-shipping-label-banner | ||
product-category-metabox | ||
product-import-tracking | ||
product-tour | ||
product-tracking | ||
settings-tracking | ||
tags-tracking | ||
variable-product-tour | ||
wc-addons-tour | ||
README.md |
README.md
Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts
in the Webpack config will automatically build these scripts.
Scripts must be manually enqueued with any necessary dependencies. For example, onboarding-homepage-notice
uses the WooCommerce navigation package:
wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );