121bfe3a29
* Record an event 'product_view_product_click' when the 'View Product' link is clicked after creating or updating a product * Add product_view_product_dismiss tracks events (WIP, not currently working) * Add changelog * Fix whitespace in addEventListener and remove console.logs * Change link tag id to be more specific and comply with CSS guidelines Move HTML code out of translation function * Run phpcs in class-wc-admin-post-types * Add tinyMCE types to add global tinymce variable in typescript code * Add additional data in getProductData TODO: I'm not sure if it's possible, or if it makes sense, to include stock_quantity_update in the object * Add code review suggestions, including: * Create isElementVisible function to backfill jQuery implementation * Fix wrong value for is_downloadable, is_virtual, manage_stock * Fix wrong radix * Update menu_order implementation * Add missing ? to weight * Add stock_quantity_update implementation which is not working as intended Since the page reloads after product update, the initialStockValue is updated as well * Remove stock_quantity_update property and adjust is_downloadable, is_virtual, and manage_stock for consistency |
||
---|---|---|
.. | ||
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 | ||
payment-method-promotions | ||
print-shipping-label-banner | ||
product-tour | ||
product-tracking | ||
tags-tracking | ||
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 neccessary 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' ) );