a7ade5d2dc
* show notice on WC core about subs expired * add notice in wc core my subscription page * dismiss subscription notice * add rest api for dismiss subscription notioce * dismiss notice permanently * code refactor * fix issue in expired subs * not showing expiring subs notice if expired sub notice render not showing expiring subs notice if expired sub notice render * fix lint * added changelog * update comment * fix js lint * update response * added new endpoint for notice * update the endpoint URL * update the endpoint URL * show notice after one month * add css class for refactor * fix lint * Add missing callback after the merge * check plugin is installed on current site * add comments, and fix missing price * fix lint * remove unnecessary duplicate asset load * fix notice so that it only trigger dismiss API on notices close * localize the renew product price * track events in the wc settings page * Use the correct field product_regular_price instead of product_price * Add missing period in the notice message * add nonce to the dismiss notice API * extract dismiss notice API call to different code * extract expired and expiring component to 1 component * add track events for tsx components * fix nonce checking * fix lint * fix lint * enrich the button and hyperlink url to contains the product_id of expiring / expired subscription * fix lint * fix lint --------- Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com> Co-authored-by: prahesa.setia <prahesa.kusuma.setia@automattic.com> |
||
---|---|---|
.. | ||
add-term-tracking | ||
attributes-tracking | ||
beta-features-tracking-modal | ||
category-tracking | ||
command-palette | ||
command-palette-analytics | ||
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 | ||
shipping-settings-region-picker | ||
tags-tracking | ||
variable-product-tour | ||
wc-addons-tour | ||
woo-connect-notice | ||
woo-enable-autorenew | ||
woo-plugin-update-connect-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' ) );