Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions classes/class-wc-connect-shipping-label.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ private function calculate_should_show_meta_box( $post ) {
* @return bool True if shipping label is enabled from the settings.
*/
public function is_shipping_label_enabled() {
// For tax-only installations, shipping labels are disabled
if ( WC_Connect_Loader::has_only_tax_functionality() ) {
return false;
}

$account_settings = $this->account_settings->get();

if ( isset( $account_settings['formData']['enabled'] ) && is_bool( $account_settings['formData']['enabled'] ) ) {
Expand Down
Loading