5a6d8552a7
* Update woocommerce shipping promo banner [wc-shipping-188] (#50970) * Make sure the WC Shipping slug is used for installation * Make sure the check to show banner metabox work for HPOS as well * Make ShippingLabelBannerDisplayRules::order_has_shippable_products work with HPOS as well * Remove Jetpack plugin specific checks in ShippingLabelBannerDisplayRules * Use correct variable names for dotcom connection * Fix comments * Remove depenency on WCS&T for showing WC Shipping promo banner * Remove WC Tax and WC Shipping from incompatible plugins * Vary action button label if WCS&T is already installed * Inject config and render label purchase app after activation * Open the purchase modal after adding it to DOM * Render Shipment tracking metabox * Use a different headline when WCS&T is already installed * Fix UX when a none-compatible WCS&T is already active * Fix CSS linting issues * Fix Jslint issues * Improve around usage of localized variables * Fix and update JS tests * Address phpcs issues * Delete metaboxes of compatible WCS&T * Remove redundant variable assignment * Remove css and js of WCS&T if a compatible version is installed * Fix failing legacy PHPUnit tests * Only open the new label purchase modal if WCS&T is not active * Remove redundant code around TOS acceptance for showing the banner * Remove redundant test for Jetpack version checking * Make sure target passed to MutationObserver.observe is available * Add changelog file * Add openWcsModal to component's prototype * Add more js unit tests * Address PHP notice * Remove redundant variable assignments * Rename wcsPluginSlug to more clear wcShippingPluginSlug * Add a link to plugins page if incompatible WCS&T is already installed * Remove unused function parameters * Fix API resource path * Handle a case where none compatible version of WCShipping is installed * Prep for cherry pick 50970 * Remove infant use statement --------- Co-authored-by: Sam Najian <dev@najian.info> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com> Co-authored-by: Sam Najian <sam.najian@automattic.com> |
||
---|---|---|
.. | ||
add-term-tracking | ||
attributes-tracking | ||
beta-features-tracking-modal | ||
category-tracking | ||
command-palette | ||
command-palette-analytics | ||
marketing-coupons | ||
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 | ||
shipping-settings-region-picker | ||
tags-tracking | ||
variable-product-tour | ||
wc-addons-tour | ||
woo-connect-notice | ||
woo-enable-autorenew | ||
woo-plugin-update-connect-notice | ||
woo-product-usage-notice | ||
woo-renew-subscription | ||
woo-subscriptions-notice | ||
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' ) );