ShippingLabelBanner
Shows print shipping label banner on edit order page.
Description Description
Source Source
File: packages/woocommerce-admin/src/Features/ShippingLabelBanner.php
Methods Methods
- __construct — Constructor
- add_meta_boxes — Add metabox to order page.
- add_print_shipping_label_script — Adds JS to order page to render shipping banner.
- component_settings — Return the settings for the component for wc-api to use. If onboarding is active, return its settings. Otherwise, loads "activePlugins" since that's the ones we need to get installation status for WCS and Jetpack.
- count_shippable_items — Count shippable items
- get_shipping_banner_allowed_plugins — Gets an array of plugins that can be installed & activated via shipping label prompt.
- meta_box — Render placeholder metabox.
- should_show_meta_box — Check if WooCommerce Shipping makes sense for this merchant.