← All changes
|
includes/widgets/Compare_Table/Compare_Table.php
+3
-1
51.1.64
→
51.1.83
View file →
| @@ -90,9 +90,9 @@ | ||
| 90 | 90 | * @return array<int, string> |
| 91 | 91 | */ |
| 92 | 92 | public function get_categories(): array |
| 93 | 93 | { |
| 94 | - return ['king-addons']; | |
| 94 | + return ['king-addons-woo']; | |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | 98 | * Keywords. |
| @@ -147,8 +147,9 @@ | ||
| 147 | 147 | */ |
| 148 | 148 | public function render(): void |
| 149 | 149 | { |
| 150 | 150 | if (!class_exists('\WooCommerce')) { |
| 151 | + Core::renderEditorHint(esc_html__('Compare Table needs WooCommerce to be active.', 'king-addons')); | |
| 151 | 152 | return; |
| 152 | 153 | } |
| 153 | 154 | |
| 154 | 155 | $settings = $this->get_settings_for_display(); |
| @@ -154,8 +155,9 @@ | ||
| 154 | 155 | $settings = $this->get_settings_for_display(); |
| 155 | 156 | $products = $this->get_products($settings); |
| 156 | 157 | |
| 157 | 158 | if (empty($products)) { |
| 159 | + Core::renderEditorHint(esc_html__('Choose products (or a category) in the Content tab to build the comparison.', 'king-addons')); | |
| 158 | 160 | return; |
| 159 | 161 | } |
| 160 | 162 | |
| 161 | 163 | $rows = $this->get_rows_config($settings); |